:root {
  color-scheme: light;
  --ink: #15172f;
  --muted: #5d6176;
  --subtle: #888ca0;
  --line: #dfe2f2;
  --surface: rgba(255, 255, 255, 0.97);
  --page: #f4f7fc;
  --brand: #383dc7;
  --brand-dark: #292eaa;
  --brand-soft: #efefff;
  --teal: #14b8aa;
  --teal-dark: #087c6e;
  --teal-soft: #e6f8f5;
  --orange: #ff9f18;
  --orange-soft: #fff4e5;
  --danger: #b42c36;
  --danger-soft: #fff0f1;
  --shadow: rgba(27, 30, 82, 0.13);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 15%, rgba(73, 205, 197, 0.2), transparent 27rem),
    radial-gradient(circle at 90% 86%, rgba(255, 169, 46, 0.16), transparent 28rem),
    linear-gradient(135deg, #f7fbff 0%, #f2f3ff 52%, #fdf8f2 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(120deg, transparent 48%, rgba(56, 61, 199, 0.08) 49%, rgba(56, 61, 199, 0.08) 50%, transparent 51%),
    linear-gradient(30deg, transparent 48%, rgba(20, 184, 170, 0.07) 49%, rgba(20, 184, 170, 0.07) 50%, transparent 51%);
  background-size: 72px 72px;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { cursor: pointer; }

[hidden] { display: none !important; }

.student-shell {
  width: min(100%, 1480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 52px);
  display: grid;
  place-items: center;
}

.entry-card {
  width: min(100%, 1140px);
  min-height: min(750px, calc(100dvh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  overflow: hidden;
  border: 1px solid rgba(56, 61, 199, 0.12);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 32px 90px var(--shadow), 0 4px 18px rgba(56, 61, 199, 0.08);
}

.entry-card__intro {
  position: relative;
  padding: clamp(44px, 6vw, 76px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 85%, rgba(20, 184, 170, 0.55), transparent 15rem),
    radial-gradient(circle at 92% 8%, rgba(255, 159, 24, 0.4), transparent 17rem),
    linear-gradient(145deg, #272ca6 0%, #3d43d1 58%, #2f34b7 100%);
}

.entry-card__intro::after {
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.045), 0 0 0 98px rgba(255, 255, 255, 0.035);
  content: "";
}

.brand-logo {
  width: min(270px, 76%);
  height: auto;
  margin-bottom: clamp(58px, 9vh, 100px);
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 17, 76, 0.2);
}

.eyebrow, .panel-kicker {
  margin: 0 0 9px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-card__intro .eyebrow { color: #aef4ea; }

h1, h2, p { margin-top: 0; }

.entry-card__intro h1 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.58;
}

.entry-card__intro .lead {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
}

.journey {
  position: relative;
  z-index: 1;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  list-style: none;
}

.journey li { display: flex; align-items: center; gap: 15px; }
.journey li > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
}
.journey strong, .journey small { display: block; }
.journey strong { margin-bottom: 3px; font-size: 0.98rem; }
.journey small { color: rgba(255, 255, 255, 0.67); font-size: 0.85rem; }

.entry-card__forms {
  padding: clamp(38px, 6vw, 78px) clamp(32px, 5vw, 66px);
  align-self: center;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 42px;
  padding: 5px;
  border-radius: 15px;
  background: #f0f1f8;
}

.mode-tab {
  min-height: 46px;
  padding: 8px 14px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  background: transparent;
}

.mode-tab.is-active {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 3px 12px rgba(25, 28, 81, 0.11);
}

.access-panel h2, .access-code-dialog h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.panel-intro {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.field { display: block; }
.field + .field { margin-top: 18px; }
.field > span {
  display: block;
  margin: 0 0 8px 2px;
  font-size: 0.88rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1.5px solid #d6d9e9;
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  font-size: 1.02rem;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder { color: #9b9dae; }
.field input:hover { border-color: #aeb1ca; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(56, 61, 199, 0.12); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field small { display: block; margin: 7px 4px 0; color: var(--subtle); font-size: 0.75rem; line-height: 1.45; }

.primary-button, .secondary-button, .launch-button {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 130ms ease, box-shadow 130ms ease, opacity 130ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(100deg, #474ceb 0%, #3439c8 100%);
  box-shadow: 0 12px 24px rgba(56, 61, 199, 0.23);
}

.primary-button span, .launch-button span { font-size: 1.35rem; font-weight: 400; }
.primary-button:not(:disabled):hover, .launch-button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(56, 61, 199, 0.28); }
.primary-button:disabled, .launch-button:disabled { cursor: wait; opacity: 0.66; }

.secondary-button {
  border: 1.5px solid var(--line);
  color: var(--brand-dark);
  background: #fff;
}

.button-row { display: grid; grid-template-columns: 0.62fr 1fr; gap: 12px; margin-top: 22px; }
.button-row .primary-button { margin: 0; }

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  font-size: 0.86rem;
  line-height: 1.45;
  background: var(--danger-soft);
}

.form-error.form-message--progress {
  border-left-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.programme-preview {
  margin-bottom: 24px;
  padding: 17px 18px;
  border: 1px solid #bfe8e2;
  border-radius: 15px;
  background: var(--teal-soft);
}

.programme-preview span, .programme-preview small { display: block; color: var(--teal-dark); }
.programme-preview span { margin-bottom: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.programme-preview strong { display: block; margin-bottom: 5px; font-size: 1.05rem; }
.programme-preview small { font-size: 0.8rem; }

.code-help { display: flex; gap: 12px; margin-top: 26px; padding: 14px; border-radius: 13px; background: var(--brand-soft); }
.code-help > span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; background: var(--brand); }
.code-help p { margin: 0; color: var(--muted); font-size: 0.79rem; line-height: 1.45; }

.dashboard {
  width: min(100%, 1360px);
  align-self: start;
  padding-bottom: 36px;
}

.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 46px; }
.dashboard-logo { width: min(230px, 58vw); height: auto; }
.text-button { padding: 10px 2px; border: 0; color: var(--brand-dark); font-weight: 750; background: transparent; }

.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.welcome-row h1 { margin-bottom: 8px; font-size: clamp(2.35rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -0.055em; }

.personal-code { min-width: 230px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,0.78); }
.personal-code span { grid-column: 1 / -1; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.personal-code strong { font-size: 1.03rem; letter-spacing: 0.06em; }
.personal-code button { padding: 0; border: 0; color: var(--brand); font-size: 0.8rem; font-weight: 800; background: transparent; }

.programme-banner {
  min-height: 132px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid #bde4df;
  border-radius: 22px;
  background: linear-gradient(110deg, #e6f8f5 0%, #eef9f8 70%, #f5fcfb 100%);
}

.programme-banner__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: #fff; font-size: 2rem; background: linear-gradient(145deg, #17c2b3, #0b8f82); box-shadow: 0 10px 20px rgba(20,184,170,0.23); }
.programme-banner span { color: var(--teal-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.programme-banner h2 { margin: 4px 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.programme-banner p { margin: 0; color: var(--muted); }
.programme-meta { min-width: 190px; display: grid; gap: 7px; justify-items: end; }
.programme-meta span { padding: 7px 10px; border-radius: 9px; color: var(--muted); letter-spacing: 0; text-transform: none; background: rgba(255,255,255,0.72); }

.progress-panel { margin: 20px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.9); }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 12px; }
.progress-copy span { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e8e9f2; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #40aaf0); transition: width 350ms ease; }

.next-course {
  margin-bottom: 30px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(56,61,199,0.19);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,159,24,0.38), transparent 14rem),
    linear-gradient(105deg, #3439c8, #464be0);
  box-shadow: 0 15px 34px rgba(56,61,199,0.2);
}
.next-course .panel-kicker { color: #aef4ea; }
.next-course h2 { margin: 0 0 5px; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.next-course p:last-child { margin: 0; color: rgba(255,255,255,0.75); }
.launch-button { min-width: 185px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; color: var(--brand-dark); background: #fff; box-shadow: 0 10px 22px rgba(22,24,75,0.2); }
.next-course.is-complete { background: linear-gradient(105deg, #087c6e, #12a896); }

.course-path { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,0.94); box-shadow: 0 15px 38px rgba(29,32,80,0.07); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 0.84rem; text-align: right; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.course-card { min-height: 104px; padding: 15px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.course-card__number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--brand); font-size: 1.05rem; font-weight: 850; background: var(--brand-soft); }
.course-card h3 { margin: 0 0 5px; font-size: 1rem; }
.course-card p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.course-card__meta { display: grid; justify-items: end; gap: 7px; }
.status-pill { padding: 5px 9px; border-radius: 999px; font-size: 0.69rem; font-weight: 850; }
.course-card--completed .status-pill { color: var(--teal-dark); background: var(--teal-soft); }
.course-card--available { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(56,61,199,0.08); }
.course-card--available .status-pill { color: var(--brand-dark); background: var(--brand-soft); }
.course-card--locked { opacity: 0.64; background: #fafafd; }
.course-card--locked .status-pill { color: var(--muted); background: #eff0f5; }
.course-card__button { padding: 5px 0; border: 0; color: var(--brand); font-size: 0.75rem; font-weight: 850; background: transparent; }
.course-card__button:disabled { color: var(--subtle); cursor: default; }

.access-code-dialog {
  width: min(calc(100% - 32px), 490px);
  padding: 38px;
  border: 0;
  border-radius: 25px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 90px rgba(20,22,63,0.31);
}
.access-code-dialog::backdrop { background: rgba(20,22,52,0.66); backdrop-filter: blur(5px); }
.success-mark { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 17px; color: #fff; font-size: 1.8rem; font-weight: 900; background: var(--teal); }
.access-code-dialog p:not(.panel-kicker) { color: var(--muted); line-height: 1.5; }
.access-code-dialog > strong { display: block; margin: 24px 0 10px; padding: 16px; border: 2px dashed rgba(56,61,199,0.35); border-radius: 13px; color: var(--brand-dark); font-size: 1.6rem; letter-spacing: 0.08em; background: var(--brand-soft); }
.access-code-dialog .copy-button { min-height: 42px; padding: 0 17px; }
.access-code-dialog .primary-button { margin-top: 20px; }

@media (max-width: 900px) {
  .student-shell { padding: 0; display: block; }
  .entry-card { min-height: 100dvh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .entry-card__intro { padding: 28px 28px 34px; }
  .brand-logo { width: 220px; margin-bottom: 40px; }
  .entry-card__intro h1 { max-width: 680px; font-size: clamp(2.25rem, 8vw, 3.6rem); }
  .journey { display: none; }
  .entry-card__forms { padding: 38px 28px 48px; }
  .dashboard { padding: 24px 20px 36px; }
  .dashboard-header { margin-bottom: 38px; }
  .welcome-row { align-items: stretch; flex-direction: column; }
  .personal-code { width: 100%; }
  .programme-banner { grid-template-columns: auto 1fr; }
  .programme-meta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; justify-items: stretch; }
  .programme-meta span { text-align: center; }
}

@media (max-width: 650px) {
  .entry-card__intro { padding: 24px 22px 30px; }
  .entry-card__intro .lead { font-size: 0.97rem; }
  .brand-logo { margin-bottom: 30px; }
  .entry-card__forms { padding: 30px 20px 42px; }
  .mode-tabs { margin-bottom: 32px; }
  .access-panel h2 { font-size: 1.75rem; }
  .dashboard { padding: 20px 14px 32px; }
  .dashboard-logo { width: 195px; }
  .dashboard-header { align-items: flex-start; gap: 14px; }
  .text-button { font-size: 0.8rem; }
  .programme-banner { padding: 20px; gap: 15px; }
  .programme-banner__icon { width: 48px; height: 48px; }
  .progress-panel { padding: 18px; }
  .next-course { align-items: stretch; flex-direction: column; padding: 24px 22px; }
  .launch-button { width: 100%; }
  .course-path { padding: 20px 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading > p { text-align: left; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: auto 1fr; }
  .course-card__meta { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; width: 100%; }
  .course-card__button { justify-self: end; }
  .access-code-dialog { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
