/* =============================================================================
   PositiveGym – Login Modal + Auth Pages  v2026-11
   ============================================================================= */

/* ── Hero CTA buttons (overrides from front-design.css context) ─────────────── */
.login-buttons { margin-top: 24px; }

/* ── Login Modal Panel ──────────────────────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 94vw);
  max-height: min(90dvh, 760px);
  padding: clamp(24px, 5vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3a4049 #15181b;
  scrollbar-width: thin;
  z-index: 9999;

  background: radial-gradient(ellipse at 92% 0%, rgba(255,215,0,.07), transparent 34%),
              linear-gradient(155deg, #1c2028, #0f1115 72%);
  border: 1px solid rgba(255,215,0,.38);
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(0,0,0,.7), inset 0 1px rgba(255,255,255,.06);

  color: #f0f1f3;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.overlay.is-open  { display: block; }
.overlay[hidden]  { display: none !important; }

/* Backdrop */
.login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  border: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.login-backdrop[hidden] { display: none; }

body.login-open { overflow: hidden; }

/* Blur hero content when modal is open */
body.login-open .info-msg > h1,
body.login-open .info-msg > h4,
body.login-open .info-msg > .login-buttons {
  filter: blur(3px) brightness(.5);
  transition: filter .2s ease;
}

/* ── Modal header ───────────────────────────────────────────────────────────── */
.login-title {
  margin: 0 0 8px;
  color: #f4d20d;
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}

.login-subtitle {
  margin-bottom: 24px;
  color: rgba(200,208,218,.72);
  font-size: .92rem;
  line-height: 1.55;
  text-align: center;
}

/* ── Form fields ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #d8dce2;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.form-group input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  color: #f0f1f3;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font: inherit;
  font-size: .94rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.form-group .password-visibility-wrap > input { min-height: 46px; }
.form-group .password-visibility-wrap { margin: 0; }

.form-group input::placeholder { color: rgba(180,188,200,.55); }

.form-group input:focus {
  outline: none;
  border-color: #f4d20d;
  background: rgba(244,210,13,.05);
  box-shadow: 0 0 0 3px rgba(244,210,13,.18);
}

/* ── OTP inputs ─────────────────────────────────────────────────────────────── */
.login-otp-group { margin-top: 20px; }
.login-otp-group > label { text-align: center; }

.login-otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}

.login-otp-inputs input {
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: #f0f1f3;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 750;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color .18s, box-shadow .18s;
}
.login-otp-inputs input:focus {
  border-color: #f4d20d;
  box-shadow: 0 0 0 3px rgba(244,210,13,.20);
  outline: none;
}

/* ── Validation states ───────────────────────────────────────────────────────── */
.input-error {
  border-color: #ef5959 !important;
  box-shadow: 0 0 0 3px rgba(239,89,89,.18) !important;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 10px 13px;
  background: rgba(239,89,89,.12);
  border: 1px solid rgba(239,89,89,.30);
  border-radius: 8px;
  color: #ffabab;
  font-size: .82rem;
  font-weight: 600;
  animation: loginShake .25s ease;
}
@keyframes loginShake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  75%  { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.login-submit,
.close-button button {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1.5px solid #f4d20d;
  border-radius: 10px;
  background: transparent;
  color: #f4d20d;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s, transform .15s;
}
.login-submit:hover,
.close-button button:hover {
  background: #f4d20d;
  color: #111314;
  transform: translateY(-1px);
}
.login-submit:active,
.close-button button:active { transform: none; }

.close-button { display: grid; gap: 8px; }

/* OTP resend */
.login-otp-resend { margin-top: 14px; text-align: center; }
.login-otp-resend button {
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #f4d20d;
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
}
.login-otp-resend button:hover:not(:disabled) { text-decoration: underline; }
.login-otp-resend button:disabled { color: rgba(244,210,13,.5); cursor: default; }
.login-otp-resend small {
  display: block;
  min-height: 1.2em;
  color: rgba(200,208,218,.65);
  font-size: .78rem;
}

/* Links */
.login-forgot-link,
.login-terms-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: rgba(244,210,13,.82);
  font: inherit;
  font-size: .82rem;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.login-forgot-link:hover,
.login-terms-link:hover { color: #f4d20d; }

.login-cancel-form { margin: 0; }

/* ── Email security page ─────────────────────────────────────────────────────── */
.email-security-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0d0f11;
  color: #f0f1f3;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.email-security-card {
  box-sizing: border-box;
  width: min(100%, 480px);
  padding: 32px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: #171a1e;
  box-shadow: 0 20px 56px rgba(0,0,0,.35);
}

.email-security-card > span {
  display: inline-block;
  color: #f4d20d;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.email-security-card h1 {
  margin: 10px 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.email-security-card p {
  color: rgba(200,208,218,.72);
  font-size: .88rem;
  line-height: 1.6;
}

.email-security-card form {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.email-security-card label {
  color: #d4d8e0;
  font-size: .78rem;
  font-weight: 700;
}

.email-security-card input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #f0f1f3;
  font: inherit;
  font-size: .9rem;
  transition: border-color .18s, box-shadow .18s;
}
.email-security-card input:focus-visible {
  outline: none;
  border-color: #f4d20d;
  box-shadow: 0 0 0 3px rgba(244,210,13,.18);
}
.email-security-card input[aria-invalid="true"] {
  border-color: #ff8585;
  box-shadow: 0 0 0 2px rgba(255,133,133,.14);
}
.email-security-card [hidden] { display: none !important; }

.email-security-card button {
  min-height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: #f4d20d;
  color: #111;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s, transform .15s;
}
.email-security-card button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.email-security-card .password-visibility-toggle {
  min-height: 34px !important;
  margin-top: 0 !important;
  padding: 6px !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.07) !important;
  color: #f0f1f3 !important;
  font-size: 0 !important;
  box-shadow: none !important;
}
.email-security-card .password-visibility-toggle:hover {
  background: rgba(255,255,255,.12) !important;
}

.email-security-card > a {
  color: #f4d20d;
  font-size: .84rem;
}

.email-security-message,
.email-security-error {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .84rem;
  line-height: 1.55;
}
.email-security-message {
  background: rgba(120,199,154,.10);
  border: 1px solid rgba(120,199,154,.30);
  color: #9deabc;
}
.email-security-error {
  background: rgba(239,89,89,.10);
  border: 1px solid rgba(239,89,89,.28);
  color: #ffabab;
}
.email-security-message::before {
  content: "";
  display: inline-block;
  width: 7px; height: 12px;
  margin: 0 11px 0 4px;
  border: solid #8fd6ac;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Student application dialog ─────────────────────────────────────────────── */
.student-application-open {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe45c, #f4d20d);
  color: #111314;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s, transform .15s;
  box-shadow: 0 6px 20px rgba(244,210,13,.26);
}
.student-application-open:hover { filter: brightness(1.06); transform: translateY(-1px); }

.student-application-dialog {
  width: min(560px, 94vw);
  max-width: 94vw;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid rgba(102,89,0,.7);
  border-radius: 20px;
  background: #111315;
  color: #f4f5f7;
  box-shadow: 0 24px 90px rgba(0,0,0,.7);
}
.student-application-dialog.student-application-dialog--otp {
  width: min(430px, 94vw);
}
.student-application-dialog::backdrop {
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(5px);
}

.student-application-dialog .pass-dialog__panel {
  max-height: 94dvh;
  overflow-y: auto;
  padding: 30px;
}

.student-application-dialog .pass-form { display: grid; gap: 9px; }

.student-application-details { display: grid; gap: 9px; width: 100%; }
.student-application-details[hidden] { display: none !important; }

.student-application-dialog .student-application-details > label {
  margin-top: 4px;
  color: #d8dce2;
  font-size: .8rem;
  font-weight: 750;
}

.student-application-dialog .pass-form input,
.student-application-dialog .pass-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  color: #f4f5f7;
  font: inherit;
  transition: border-color .18s;
}
.student-application-dialog .pass-form input:focus,
.student-application-dialog .pass-form select:focus {
  outline: none;
  border-color: #f4d20d;
  box-shadow: 0 0 0 3px rgba(244,210,13,.18);
}

.student-application-evidence {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 10px 0;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.student-application-evidence legend { padding: 0 7px; color: #f4d20d; font-weight: 800; }
.student-application-evidence label { color: #d8dce2; font-size: .8rem; font-weight: 750; }

.student-application-evidence video,
.student-application-evidence canvas {
  display: block;
  width: 100%;
  height: min(62vw, 280px);
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  background: #060708;
}
.student-application-evidence [hidden] { display: none !important; }

.student-application-evidence button,
.student-application-evidence input[type="file"] {
  min-height: 42px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  color: #f4f5f7;
  font: inherit;
}

.student-application-evidence small { color: rgba(180,188,200,.70); line-height: 1.5; }

.student-application-status { margin: 0; color: #d8dce2; font-size: .84rem; line-height: 1.5; }
.student-application-status[data-state="error"]   { color: #ffabab; }
.student-application-status[data-state="success"] { color: #9deabc; }

.student-application-form [data-application-submit] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe45c, #f4d20d);
  color: #111314;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: filter .18s, transform .15s;
}
.student-application-form [data-application-submit]:hover { filter: brightness(1.06); transform: translateY(-1px); }
.student-application-form [data-application-submit]:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* OTP variant */
.student-application-dialog--otp .pass-dialog__eyebrow,
.student-application-dialog--otp [data-close-student-application] { display: none !important; }
.student-application-dialog--otp .pass-dialog__panel { padding: 30px 27px; }
.student-application-dialog--otp #student-application-title {
  margin: 0 0 9px;
  color: #f4d20d;
  font-size: clamp(1.9rem, 7vw, 2.3rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.student-application-dialog--otp .pass-dialog__intro { max-width: none; margin-bottom: 18px; text-align: center; }
.student-application-dialog--otp .student-application-otp-step { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; background: transparent; }
.student-application-dialog--otp .student-application-otp-step[hidden] { display: none !important; }
.student-application-dialog--otp .student-application-otp-step > label { text-align: center; }
.student-application-dialog--otp .student-application-otp-step > small { text-align: center; }
.student-application-dialog--otp .pass-form__otp-digits { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.student-application-dialog--otp .pass-form__otp-digits input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  color: #f2f3f5;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 750;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.student-application-dialog--otp .pass-form__otp-digits input:focus {
  border-color: #f4d20d;
  box-shadow: 0 0 8px rgba(244,210,13,.30);
  outline: 2px solid rgba(244,210,13,.30);
  outline-offset: 2px;
}
.student-application-dialog--otp .pass-form__otp-actions { display: block; }
.student-application-dialog--otp .pass-form__otp-actions button,
.student-application-dialog--otp [data-application-otp-continue],
.student-application-dialog--otp [data-application-otp-back] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1.5px solid #f4d20d;
  border-radius: 8px;
  background: transparent;
  color: #f4d20d;
  font: inherit;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.student-application-dialog--otp .pass-form__otp-actions button:hover,
.student-application-dialog--otp [data-application-otp-continue]:hover:not(:disabled),
.student-application-dialog--otp [data-application-otp-back]:hover {
  background: #f4d20d;
  color: #111314;
}
.student-application-dialog--otp [data-application-otp-continue]:disabled { opacity: .58; cursor: not-allowed; }
.student-application-dialog--otp [data-application-otp-continue][hidden],
.student-application-dialog--otp [data-application-otp-back][hidden] { display: none !important; }
.student-application-dialog--otp .student-application-status:empty { display: none; }

/* Success dialog */
.student-application-success-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  padding: 0;
  border: 1px solid rgba(102,89,0,.7);
  border-radius: 20px;
  background: #111315;
  color: #f4f5f7;
  box-shadow: 0 24px 90px rgba(0,0,0,.7);
}
.student-application-success-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }

.student-application-success-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 30px 28px;
  text-align: center;
}
.student-application-success-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border: 1.5px solid rgba(244,210,13,.4);
  border-radius: 50%;
  background: rgba(244,210,13,.10);
  color: #f4d20d;
  font-size: 2rem;
  font-weight: 900;
}
.student-application-success-panel .pass-dialog__eyebrow { margin: 4px 0 0; color: #f4d20d; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.student-application-success-panel h2 { margin: 0; color: #fff; font-size: clamp(1.3rem, 5vw, 1.75rem); line-height: 1.2; }
.student-application-success-panel p:not(.pass-dialog__eyebrow) { margin: 0; color: rgba(200,208,218,.75); font-size: .94rem; line-height: 1.6; }
.student-application-success-panel button {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe45c, #f4d20d);
  color: #111314;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: filter .18s, transform .15s;
}
.student-application-success-panel button:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .student-application-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .student-application-dialog .pass-dialog__panel {
    max-height: 100dvh;
    padding: 24px 18px max(20px, env(safe-area-inset-bottom));
  }
  .student-application-success-dialog { width: calc(100vw - 28px); border-radius: 18px; }
  .student-application-success-panel  { padding: 28px 20px 22px; }
}

@media (max-width: 480px) {
  .overlay { max-height: 92dvh; padding: 22px 18px; }
  .login-otp-inputs { gap: 7px; }
  .login-otp-inputs input { height: 50px; font-size: 1.25rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .login-submit, .close-button button { transition: none; }
  @keyframes loginShake { 0%, 100% { transform: none; } }
}

/* ── Light mode ─────────────────────────────────────────────────────────────── */
html[data-theme="light"] .overlay {
  background: radial-gradient(ellipse at 92% 0%, rgba(244,210,13,.06), transparent 34%),
              linear-gradient(155deg, #ffffff, #f4f6f9 72%);
  border-color: rgba(244,210,13,.35);
  box-shadow: 0 32px 90px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.8);
  color: #1a1f2b;
}
html[data-theme="light"] .login-backdrop {
  background: rgba(0,0,0,.45);
}
html[data-theme="light"] .login-title {
  color: #c8a200;
}
html[data-theme="light"] .login-subtitle {
  color: rgba(55,65,81,.72);
}
html[data-theme="light"] .form-group label {
  color: #374151;
}
html[data-theme="light"] .form-group input {
  background: rgba(0,0,0,.04);
  color: #1a1f2b;
  border-color: rgba(0,0,0,.14);
}
html[data-theme="light"] .form-group input::placeholder {
  color: rgba(55,65,81,.45);
}
html[data-theme="light"] .form-group input:focus {
  background: rgba(244,210,13,.04);
  border-color: #c8a200;
  box-shadow: 0 0 0 3px rgba(244,210,13,.18);
}
html[data-theme="light"] .login-otp-inputs input {
  border-color: rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
  color: #1a1f2b;
}
html[data-theme="light"] .login-submit,
html[data-theme="light"] .close-button button {
  border-color: #c8a200;
  color: #c8a200;
}
html[data-theme="light"] .login-submit:hover,
html[data-theme="light"] .close-button button:hover {
  background: #f4d20d;
  color: #111314;
}
html[data-theme="light"] .login-forgot-link,
html[data-theme="light"] .login-terms-link {
  color: rgba(180,140,0,.85);
}
html[data-theme="light"] .login-forgot-link:hover,
html[data-theme="light"] .login-terms-link:hover {
  color: #c8a200;
}
html[data-theme="light"] .login-otp-resend button {
  color: #c8a200;
}
html[data-theme="light"] .login-otp-resend small {
  color: rgba(55,65,81,.65);
}
html[data-theme="light"] .field-error {
  color: #c0392b;
}
/* Student application dialog – light mode */
html[data-theme="light"] .student-application-dialog,
html[data-theme="light"] .student-application-success-dialog {
  background: #ffffff;
  color: #1a1f2b;
  border-color: rgba(244,210,13,.35);
}
html[data-theme="light"] .student-application-dialog .pass-form input,
html[data-theme="light"] .student-application-dialog .pass-form select {
  background: rgba(0,0,0,.04);
  color: #1a1f2b;
  border-color: rgba(0,0,0,.14);
}
html[data-theme="light"] .student-application-dialog .pass-form input:focus,
html[data-theme="light"] .student-application-dialog .pass-form select:focus {
  border-color: #c8a200;
  box-shadow: 0 0 0 3px rgba(244,210,13,.18);
}
html[data-theme="light"] .student-application-dialog .student-application-details > label,
html[data-theme="light"] .student-application-evidence label {
  color: #374151;
}
html[data-theme="light"] .student-application-evidence {
  border-color: rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
}
html[data-theme="light"] .student-application-dialog--otp .pass-form__otp-digits input {
  border-color: rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
  color: #1a1f2b;
}
html[data-theme="light"] .student-application-success-panel p:not(.pass-dialog__eyebrow) {
  color: rgba(55,65,81,.75);
}
html[data-theme="light"] .student-application-success-panel h2 { color: #111; }
/* Evidence section buttons & file input */
html[data-theme="light"] .student-application-evidence button,
html[data-theme="light"] .student-application-evidence input[type="file"] {
  background: #f4f5f7;
  border-color: rgba(0,0,0,.14);
  color: #1a1f2b;
}
html[data-theme="light"] .student-application-evidence button:hover {
  background: #eaecef;
}
html[data-theme="light"] .student-application-evidence label {
  color: #374151;
}
html[data-theme="light"] .student-application-evidence small {
  color: rgba(55,65,81,.65);
}
html[data-theme="light"] .student-application-evidence {
  border-color: rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
}
html[data-theme="light"] .student-application-evidence video,
html[data-theme="light"] .student-application-evidence canvas {
  background: #e8eaed;
}
/* Status text */
html[data-theme="light"] .student-application-status { color: #374151; }
html[data-theme="light"] .student-application-status[data-state="error"]   { color: #c0392b; }
html[data-theme="light"] .student-application-status[data-state="success"] { color: #1a7a45; }
/* Placeholder & select invalid */
html[data-theme="light"] .student-application-dialog .pass-form input::placeholder { color: rgba(55,65,81,.45); }
html[data-theme="light"] .student-application-dialog .pass-form select:invalid { color: rgba(55,65,81,.55); }
/* Dialog panel h2 / intro / close in light mode (student-application uses pass-dialog__panel) */
html[data-theme="light"] .student-application-dialog .pass-dialog__panel {
  background: #ffffff;
}
html[data-theme="light"] .student-application-dialog .pass-dialog__panel h2 { color: #0f1217; }
html[data-theme="light"] .student-application-dialog .pass-dialog__intro   { color: #4a5260; }
html[data-theme="light"] .student-application-dialog .pass-dialog__close {
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  color: #5a6270;
}
html[data-theme="light"] .student-application-dialog .pass-dialog__close:hover {
  color: #0f1217;
  background: rgba(0,0,0,.09);
}
/* OTP digits in student app */
html[data-theme="light"] .student-application-dialog--otp .pass-form__otp-digits input {
  background: #f4f5f7;
  border-color: rgba(0,0,0,.14);
  color: #1a1f2b;
}
html[data-theme="light"] .student-application-dialog--otp #student-application-title { color: #c8a200; }
html[data-theme="light"] .student-application-dialog--otp .pass-dialog__intro { color: #4a5260; }
/* OTP action buttons */
html[data-theme="light"] .student-application-dialog--otp .pass-form__otp-actions button,
html[data-theme="light"] .student-application-dialog--otp [data-application-otp-continue],
html[data-theme="light"] .student-application-dialog--otp [data-application-otp-back] {
  border-color: #c8a200;
  color: #c8a200;
}
html[data-theme="light"] .student-application-dialog--otp .pass-form__otp-actions button:hover,
html[data-theme="light"] .student-application-dialog--otp [data-application-otp-continue]:hover:not(:disabled),
html[data-theme="light"] .student-application-dialog--otp [data-application-otp-back]:hover {
  background: #f4d20d;
  color: #111314;
}
/* Success dialog */
html[data-theme="light"] .student-application-success-dialog {
  background: #ffffff;
  border-color: rgba(201,160,0,.35);
}
html[data-theme="light"] .student-application-success-panel p:not(.pass-dialog__eyebrow) { color: rgba(55,65,81,.80); }
/* Email security page – light mode */
html[data-theme="light"] .email-security-page {
  background: #f0f2f5;
  color: #1a1f2b;
}
html[data-theme="light"] .email-security-card {
  background: #ffffff;
  border-color: rgba(0,0,0,.09);
  box-shadow: 0 20px 56px rgba(0,0,0,.08);
}
html[data-theme="light"] .email-security-card h1 { color: #111; }
html[data-theme="light"] .email-security-card p { color: rgba(55,65,81,.75); }
html[data-theme="light"] .email-security-card label { color: #374151; }
html[data-theme="light"] .email-security-card input {
  border-color: rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
  color: #1a1f2b;
}
html[data-theme="light"] .email-security-card input:focus-visible {
  border-color: #c8a200;
  box-shadow: 0 0 0 3px rgba(244,210,13,.18);
}
