:root {
  color-scheme: light;
  --navy: #101c35;
  --navy-light: #1d2d4e;
  --blue: #2e7fbd;
  --red: #ef4b4b;
  --ink: #192235;
  --muted: #687386;
  --line: #d9dfeb;
  --paper: #fff;
  --wash: #f1f4f9;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--wash);
}
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(46,127,189,.38);
  outline-offset: 3px;
}
.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(300px, .95fr) minmax(430px, 1.05fr);
}
.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 52px;
  padding: clamp(30px, 6vw, 80px);
  color: #fff;
  background:
    radial-gradient(ellipse at 9% 91%, rgba(46,127,189,.25), transparent 43%),
    linear-gradient(145deg, var(--navy-light), var(--navy) 65%);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.35;
}
.brand-logo {
  display: block;
  width: 88px;
  height: 58px;
  padding: 5px 8px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}
.brand-copy { max-width: 520px; }
.eyebrow {
  margin: 0 0 14px;
  color: #bcd8ef;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.45rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.brand-copy > p:last-child {
  max-width: 36ch;
  margin: 22px 0 0;
  color: #d7dfec;
  font-size: 1.05rem;
  line-height: 1.7;
}
.brand-footnote {
  margin: 0;
  color: #b5c0d1;
  font-size: .86rem;
  line-height: 1.6;
}
.form-panel {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(24px, 6vw, 76px);
}
.login-card {
  width: min(100%, 440px);
  padding: 8px 0;
}
.panel-mark { display: flex; gap: 6px; margin-bottom: 30px; }
.panel-mark span { width: 25px; height: 5px; border-radius: 9px; }
.panel-mark span:nth-child(1) { background: var(--blue); }
.panel-mark span:nth-child(2) { background: #39a56d; }
.panel-mark span:nth-child(3) { background: #8354bd; }
.panel-eyebrow { margin-bottom: 11px; color: #52627b; }
.login-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.intro {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.65;
}
.field { margin-bottom: 19px; }
.field label {
  display: block;
  margin: 0 0 8px;
  font-size: .9rem;
  font-weight: 650;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.label-row label { margin: 0; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
}
.field input::placeholder { color: #9aa4b3; }
.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font-weight: 720;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.primary-button:hover { background: #223959; }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.text-button {
  padding: 3px 0;
  border: 0;
  color: #275f91;
  background: transparent;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: #5a3543;
  font-size: .87rem;
  line-height: 1.5;
}
.form-message.success { color: #176644; }
.support-line {
  margin: 23px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
  text-align: center;
}
.support-line a, .account-footer a { color: #275f91; font-weight: 650; }
.back-button { margin-top: 14px; }
.hidden { display: none !important; }
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 14px clamp(20px, 5vw, 64px);
  color: #fff;
  background: var(--navy);
}
.compact-lockup .brand-logo { width: 68px; height: 46px; }
.logout-button { color: #d9e8f5; }
.account-main {
  display: grid;
  min-height: calc(100vh - 145px);
  align-items: start;
  justify-items: center;
  padding: clamp(32px, 7vw, 86px) 22px;
}
.account-card {
  width: min(100%, 740px);
  min-height: 240px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #e4e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(16,28,53,.07);
}
.account-card h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.035em; }
.account-card p { color: var(--muted); line-height: 1.7; }
.account-card .account-email { margin-top: 6px; color: #43516a; }
.empty-courses {
  margin-top: 34px;
  padding: 22px;
  border-radius: 12px;
  background: #f3f6fb;
}
.empty-courses h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.empty-courses p { margin: 0; }
.course-materials { margin-top:28px; padding:22px; border-radius:12px; background:#f3f6fb; text-align:left; }
.course-materials h2 { margin:0 0 8px; color:var(--navy); font-size:1.15rem; }
.materials-intro { margin:0 0 14px; color:#526782; }
.material-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 0; border-top:1px solid #d8e2ef; }
.material-row div { display:grid; gap:4px; }
.material-row strong { color:var(--navy); }
.material-row span { color:#526782; font-size:.93rem; }
.material-row a { color:#216db3; font-weight:700; text-decoration:none; white-space:nowrap; }
.material-row a:hover { text-decoration:underline; }
.materials-note { margin:14px 0 0; color:#6a5360; font-size:.86rem; }
.loading-mark {
  width: 30px;
  height: 30px;
  border: 3px solid #dbe3ef;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.account-footer {
  padding: 20px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
@media (max-width: 820px) {
  .page-shell { grid-template-columns: 1fr; }
  .brand-panel { gap: 34px; padding: 26px 24px 30px; }
  .brand-logo { width: 72px; height: 48px; }
  .brand-copy h1 { max-width: 14ch; font-size: clamp(2.15rem, 9vw, 3.1rem); }
  .brand-copy > p:last-child { margin-top: 14px; font-size: .98rem; }
  .brand-footnote { display: none; }
  .form-panel { padding: 35px 24px 54px; }
}
@media (max-width: 380px) {
  .label-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .login-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
