@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Lexend:wght@500;600;700;800&display=swap");

:root{
  --bg:#070911;
  --panel:#101522;
  --panel-2:#171d2b;
  --line:#2e394e;
  --text:#f6f4ed;
  --muted:#9ba5b6;
  --hot:#ff3d81;
  --ice:#4de4ff;
  --acid:#d8ff3e;
  --yellow:#ffdc58;
  --shadow:0 24px 70px rgba(0,0,0,.32);
  --field:#0d111c;
}
*{box-sizing:border-box}
html{min-width:320px}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-ui);
}
button,input{font:inherit}
a{color:inherit}
svg{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cut{clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px))}
.theme-switch-input{position:fixed;opacity:0;pointer-events:none}
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(430px,1.03fr) minmax(520px,.97fr);overflow:hidden}

/* LEFT / VISUAL */
.visual-panel{
  position:relative;
  min-height:100vh;
  padding:32px clamp(34px,5vw,76px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  background:
    linear-gradient(140deg,rgba(255,61,129,.16),transparent 42%),
    radial-gradient(circle at 78% 28%,rgba(77,228,255,.14),transparent 30%),
    #0b0e17;
  border-right:1px solid var(--line);
}
.visual-panel:after{
  content:"";
  position:absolute;
  right:-110px;bottom:10%;
  width:430px;height:430px;
  border:1px solid rgba(77,228,255,.18);
  transform:rotate(45deg);
  box-shadow:0 0 80px rgba(77,228,255,.08),inset 0 0 80px rgba(255,61,129,.06);
}
.visual-grid{
  position:absolute;inset:0;opacity:.2;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to bottom,black,transparent 88%);
}
.visual-glow{position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none}
.visual-glow-a{width:280px;height:280px;background:rgba(255,61,129,.18);left:-100px;top:35%}
.visual-glow-b{width:240px;height:240px;background:rgba(77,228,255,.14);right:-70px;top:8%}
.brand,.hero-copy,.rank-strip{position:relative;z-index:2}
.brand{display:flex;align-items:center;gap:14px}
.brand-mark,.mobile-brand span{
  width:48px;height:48px;display:grid;place-items:center;text-decoration:none;
  background:var(--hot);color:#111;border:3px solid #fff;
  box-shadow:5px 5px 0 var(--ice);font-family:var(--font-display);
  transform:rotate(-4deg);
}
.brand strong,.brand span{display:block}
.brand strong{font-family:var(--font-display);font-size:15px;letter-spacing:.04em}
.brand span{margin-top:3px;color:var(--muted);font-size:9px;letter-spacing:.18em;font-weight:700}
.hero-copy{max-width:650px;margin:68px 0 50px}
.eyebrow{display:block;color:var(--hot);font-size:10px;font-weight:800;letter-spacing:.2em}
.hero-copy h1{
  margin:15px 0 18px;
  font-family:var(--font-display);
  font-size:clamp(46px,5.4vw,82px);
  line-height:.98;letter-spacing:-.035em;
}
.hero-copy h1 em{font-style:normal;color:var(--acid);text-shadow:6px 6px 0 rgba(255,61,129,.38)}
.hero-copy>p{max-width:570px;margin:0;color:#b8c0cc;font-size:15px;line-height:1.7}
.streak-card{
  width:min(530px,100%);margin-top:34px;padding:18px 20px;
  display:grid;grid-template-columns:auto auto 1fr;gap:15px;align-items:center;
  border:1px solid #334057;background:rgba(16,21,34,.86);box-shadow:var(--shadow);
}
.streak-icon{width:48px;height:48px;display:grid;place-items:center;background:#292315;color:var(--yellow);font-size:22px;border:1px solid #665d2e}
.streak-card span,.streak-card strong{display:block}
.streak-card span{color:var(--muted);font-size:8px;letter-spacing:.16em}
.streak-card strong{margin-top:3px;color:var(--yellow);font-family:var(--font-display);font-size:17px}
.streak-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.streak-bars i{height:8px;background:#293040;transform:skew(-12deg)}
.streak-bars i.active{background:linear-gradient(90deg,var(--hot),var(--yellow))}
.rank-strip{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding-top:22px}
.rank-strip>div{padding-left:17px;border-left:3px solid #273145}
.rank-strip>div:first-child{border-color:var(--acid)}
.rank-strip span,.rank-strip strong{display:block}
.rank-strip span{color:var(--muted);font-size:8px;letter-spacing:.16em}
.rank-strip strong{margin-top:5px;font-family:var(--font-display);font-size:12px;color:#fff}

/* RIGHT / FORM */
.form-panel{position:relative;min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
.form-panel:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.28;
  background:radial-gradient(circle at 70% 10%,rgba(216,255,62,.08),transparent 24%);
}
.form-topbar{position:relative;z-index:2;min-height:80px;padding:22px clamp(28px,5vw,62px);display:flex;justify-content:flex-end;align-items:center}
.mobile-brand{display:none;align-items:center;gap:13px;text-decoration:none}
.mobile-brand span{width:39px;height:39px;font-size:11px;box-shadow:4px 4px 0 var(--ice)}
.mobile-brand b{font-family:var(--font-display);font-size:12px}
.theme-switch{
  width:62px;height:32px;padding:3px;display:grid;grid-template-columns:1fr 1fr;align-items:center;
  border:1px solid #344057;background:#111722;cursor:pointer;
}
.theme-switch span{display:grid;place-items:center;height:24px;font-size:14px}
.theme-moon{background:var(--ice);color:#081018}
.login-card{
  position:relative;z-index:2;width:min(500px,calc(100% - 56px));
  margin:auto;padding:18px 0 36px;
}
.card-heading{margin-bottom:30px}
.card-heading h2{margin:9px 0 8px;font-family:var(--font-display);font-size:clamp(34px,4vw,48px);letter-spacing:-.02em}
.card-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.field{margin-bottom:18px}
.field>label{display:block;margin-bottom:8px;color:#c7ced9;font-size:10px;font-weight:800;letter-spacing:.12em}
.input-wrap{position:relative}
.input-wrap input{
  width:100%;height:58px;padding:0 50px;
  color:var(--text);background:var(--field);border:1px solid #344057;outline:none;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.input-wrap input::placeholder{color:#687386}
.input-wrap input:focus{border-color:var(--ice);box-shadow:0 0 0 3px rgba(77,228,255,.12);background:#111826}
.input-icon{position:absolute;left:17px;top:50%;translate:0 -50%;color:var(--ice);display:grid}
.password-button{
  position:absolute;right:10px;top:50%;translate:0 -50%;
  width:38px;height:38px;display:grid;place-items:center;
  border:0;background:transparent;color:var(--muted);cursor:pointer;
}
.password-button:hover{color:var(--ice)}
.form-options{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:3px 0 24px;font-size:12px}
.form-options>a,.signup-line a,.legal a{color:var(--ice);font-weight:700;text-decoration:none}
.form-options>a:hover,.signup-line a:hover,.legal a:hover{text-decoration:underline}
.remember{display:flex;align-items:center;gap:9px;color:var(--muted);cursor:pointer}
.remember input{position:absolute;opacity:0}
.custom-check{width:18px;height:18px;display:grid;place-items:center;border:1px solid #526079;background:#111722}
.remember input:checked+.custom-check{background:var(--acid);border-color:var(--acid)}
.remember input:checked+.custom-check:after{content:"";width:8px;height:4px;border-left:2px solid #111;border-bottom:2px solid #111;transform:rotate(-45deg) translateY(-1px)}
.login-button{
  width:100%;height:58px;padding:0 22px;display:flex;align-items:center;justify-content:center;gap:12px;
  border:0;background:var(--acid);color:#10130a;font-family:var(--font-display);
  font-size:14px;letter-spacing:.06em;cursor:pointer;box-shadow:8px 8px 0 var(--hot);
  transition:transform .18s,box-shadow .18s,filter .18s;
}
.login-button:hover{transform:translate(-2px,-2px);box-shadow:11px 11px 0 var(--hot);filter:saturate(1.1)}
.login-button:active{transform:translate(3px,3px);box-shadow:4px 4px 0 var(--hot)}
.login-button svg{width:20px;height:20px}
.divider{position:relative;margin:34px 0 22px;text-align:center}
.divider:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line)}
.divider span{position:relative;padding:0 13px;background:var(--bg);color:var(--muted);font-size:9px;letter-spacing:.15em;font-weight:700}
.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.social-button{
  height:50px;display:flex;align-items:center;justify-content:center;gap:10px;
  border:1px solid #344057;background:#111722;color:var(--text);font-weight:800;font-size:11px;letter-spacing:.08em;cursor:pointer;
}
.social-button:hover{border-color:var(--ice);background:#151e2d}
.social-button svg{width:18px;height:18px;fill:currentColor;stroke:none}
.signup-line{margin:27px 0 0;text-align:center;color:var(--muted);font-size:13px}
.signup-line a{margin-left:5px;color:var(--acid)}
.legal{margin:22px auto 0;max-width:430px;text-align:center;color:#667184;font-size:10px;line-height:1.6}
.legal a{color:#9da8b9;font-weight:600}
.form-footer{
  position:relative;z-index:2;padding:18px clamp(28px,5vw,62px);display:flex;justify-content:space-between;
  border-top:1px solid var(--line);color:#667184;font-size:9px;letter-spacing:.12em;
}
.server-status{display:flex;align-items:center;gap:7px;color:#8fa39a}
.server-status i{width:7px;height:7px;border-radius:50%;background:var(--success,#59df88);box-shadow:0 0 10px #59df88}

/* CSS-only light mode */
.theme-switch-input:checked~.login-shell{
  --bg:#f4f0fa;--panel:#fffdf8;--panel-2:#f0eaf7;--line:#d7cede;--text:#251d2f;
  --muted:#6e6577;--field:#fff;--shadow:0 22px 60px rgba(67,45,82,.15);
}
.theme-switch-input:checked~.login-shell .form-panel{background:var(--bg)}
.theme-switch-input:checked~.login-shell .visual-panel{background:linear-gradient(140deg,rgba(255,61,129,.18),transparent 42%),radial-gradient(circle at 78% 28%,rgba(77,228,255,.2),transparent 30%),#fffaf3}
.theme-switch-input:checked~.login-shell .visual-grid{background-image:linear-gradient(rgba(60,36,70,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(60,36,70,.07) 1px,transparent 1px)}
.theme-switch-input:checked~.login-shell .brand span,
.theme-switch-input:checked~.login-shell .hero-copy>p{color:#655c6d}
.theme-switch-input:checked~.login-shell .rank-strip strong{color:#2b2335}
.theme-switch-input:checked~.login-shell .streak-card{background:rgba(255,253,248,.9);border-color:#d6ccde}
.theme-switch-input:checked~.login-shell .theme-switch{background:#fff;border-color:#d6ccde}
.theme-switch-input:checked~.login-shell .theme-sun{background:var(--yellow);color:#241d2d}
.theme-switch-input:checked~.login-shell .theme-moon{background:transparent;color:#73697c}
.theme-switch-input:checked~.login-shell .field>label{color:#51475a}
.theme-switch-input:checked~.login-shell .input-wrap input{background:#fff;color:#251d2f;border-color:#d6ccde}
.theme-switch-input:checked~.login-shell .input-wrap input:focus{background:#fff;border-color:#38bdd5}
.theme-switch-input:checked~.login-shell .password-button{color:#6e6577}
.theme-switch-input:checked~.login-shell .custom-check,
.theme-switch-input:checked~.login-shell .social-button{background:#fff;color:#2b2335;border-color:#d6ccde}
.theme-switch-input:checked~.login-shell .divider span{background:var(--bg)}
.theme-switch-input:checked~.login-shell .social-button:hover{background:#f7f1fb;border-color:#38bdd5}
.theme-switch-input:checked~.login-shell .legal{color:#7b7183}

/* RESPONSIVE */
@media (max-width:980px){
  .login-shell{grid-template-columns:1fr}
  .visual-panel{display:none}
  .form-topbar{justify-content:space-between}
  .mobile-brand{display:flex}
  .login-card{padding-top:28px}
}
@media (max-width:580px){
  .form-topbar{min-height:72px;padding:18px 20px}
  .login-card{width:calc(100% - 40px);padding-top:24px}
  .card-heading{margin-bottom:25px}
  .card-heading h2{font-size:34px}
  .form-options{align-items:flex-start}
  .social-grid{grid-template-columns:1fr}
  .form-footer{padding:16px 20px}
}
@media (max-width:390px){
  .form-options{flex-direction:column;gap:13px}
  .login-card{width:calc(100% - 30px)}
  .form-topbar{padding-inline:15px}
  .mobile-brand b{display:none}
}
@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important}
}

/* LIGHT MODE TEXT CONTRAST HOTFIX */
.theme-switch-input:checked ~ .login-shell,
.theme-switch-input:checked ~ .login-shell .form-panel,
.theme-switch-input:checked ~ .login-shell .visual-panel {
  color: var(--text);
}
.theme-switch-input:checked ~ .login-shell .brand strong,
.theme-switch-input:checked ~ .login-shell .mobile-brand b,
.theme-switch-input:checked ~ .login-shell .hero-copy h1,
.theme-switch-input:checked ~ .login-shell .card-heading h2,
.theme-switch-input:checked ~ .login-shell .rank-strip strong,
.theme-switch-input:checked ~ .login-shell .signup-line,
.theme-switch-input:checked ~ .login-shell .form-footer {
  color: #251d2f;
}
.theme-switch-input:checked ~ .login-shell .card-heading p,
.theme-switch-input:checked ~ .login-shell .remember,
.theme-switch-input:checked ~ .login-shell .field > label {
  color: #51475a;
}
.theme-switch-input:checked ~ .login-shell .input-wrap input,
.theme-switch-input:checked ~ .login-shell .social-button {
  color: #251d2f;
}
/* Keep intentionally colored accent text unchanged in light mode. */
.theme-switch-input:checked ~ .login-shell .hero-copy h1 em,
.theme-switch-input:checked ~ .login-shell .eyebrow,
.theme-switch-input:checked ~ .login-shell .streak-card strong,
.theme-switch-input:checked ~ .login-shell .form-options > a,
.theme-switch-input:checked ~ .login-shell .signup-line a {
  color: inherit;
}
.theme-switch-input:checked ~ .login-shell .hero-copy h1 em { color: var(--acid); }
.theme-switch-input:checked ~ .login-shell .eyebrow { color: var(--hot); }
.theme-switch-input:checked ~ .login-shell .streak-card strong { color: #9a6b00; }
.theme-switch-input:checked ~ .login-shell .form-options > a { color: #087f99; }
.theme-switch-input:checked ~ .login-shell .signup-line a { color: #667f00; }

/* AUTH HUB: LOGIN / REGISTER / FORGOT */
.auth-state{position:fixed;opacity:0;pointer-events:none}
.auth-card{width:min(560px,calc(100% - 56px));padding-top:4px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;margin-bottom:26px;border-bottom:1px solid var(--line)}
.auth-tabs label{position:relative;padding:15px 10px;text-align:center;color:var(--muted);font-family:var(--font-display);font-size:11px;letter-spacing:.05em;cursor:pointer;transition:color .2s,background .2s}
.auth-tabs label:after{content:"";position:absolute;left:12%;right:12%;bottom:-1px;height:3px;background:transparent;transition:.2s}
#screen-login:checked~.login-shell .auth-tabs label[for="screen-login"],#screen-register:checked~.login-shell .auth-tabs label[for="screen-register"]{color:var(--text);background:rgba(77,228,255,.04)}
#screen-login:checked~.login-shell .auth-tabs label[for="screen-login"]:after,#screen-register:checked~.login-shell .auth-tabs label[for="screen-register"]:after{background:var(--ice);box-shadow:0 0 16px rgba(77,228,255,.5)}
.auth-viewport{position:relative;min-height:610px}
.auth-screen{position:absolute;inset:0;visibility:hidden;opacity:0;transform:translateX(28px) scale(.985);pointer-events:none;transition:opacity .28s ease,transform .32s ease,visibility .32s}
#screen-login:checked~.login-shell .login-screen,#screen-register:checked~.login-shell .register-screen,#screen-forgot:checked~.login-shell .forgot-screen{visibility:visible;opacity:1;transform:translateX(0) scale(1);pointer-events:auto}
#screen-register:checked~.login-shell .login-screen,#screen-forgot:checked~.login-shell .login-screen{transform:translateX(-28px) scale(.985)}
#screen-forgot:checked~.login-shell .auth-tabs{opacity:.45;pointer-events:none}
.text-link,.signup-line label{color:var(--ice);font-weight:700;cursor:pointer;text-decoration:none}
.signup-line label{margin-left:5px;color:var(--acid)}
.text-link:hover,.signup-line label:hover{text-decoration:underline}
.input-icon{font-weight:800;font-size:13px}
.password-button{font-size:15px}
.login-button b{font-size:21px;font-family:inherit}
.compact-heading{margin-bottom:22px}
.compact-heading h2{font-size:clamp(30px,3.6vw,43px)}
.register-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.full-field{grid-column:1/-1}
.register-screen .field{margin-bottom:14px}
.register-screen .input-wrap input{height:54px;padding-left:47px}
.password-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;align-items:center;margin:-3px 0 15px}
.password-rules>span{height:3px;background:#303b4f}
.password-rules>span:first-child{background:var(--hot)}
.password-rules small{grid-column:1/-1;color:var(--muted);font-size:9px;letter-spacing:.08em}
.terms-check{align-items:flex-start;margin:4px 0 20px;font-size:11px;line-height:1.45}
.terms-check a{color:var(--ice);text-decoration:none}
.register-button{background:var(--ice);box-shadow:8px 8px 0 var(--hot)}
.back-button{padding:0;margin:2px 0 28px;border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em;cursor:pointer}
.back-button label{cursor:pointer}
.back-button:hover{color:var(--ice)}
.reset-emblem{width:70px;height:70px;margin-bottom:22px;display:grid;place-items:center;border:1px solid var(--ice);background:rgba(77,228,255,.08);color:var(--ice);font-family:var(--font-display);font-size:30px;box-shadow:8px 8px 0 rgba(255,61,129,.35);transform:rotate(-3deg)}
.reset-heading{max-width:500px}
.recovery-note{margin:25px 0 0;padding:14px 16px;border-left:3px solid var(--yellow);background:rgba(255,220,88,.06);color:var(--muted);font-size:11px;line-height:1.55}
.feature-list{display:grid;gap:10px;margin-top:30px;max-width:570px}
.feature-list>div{display:grid;grid-template-columns:42px 1fr;gap:13px;align-items:center;padding:12px 14px;border:1px solid rgba(255,255,255,.11);background:rgba(11,14,23,.58)}
.feature-list i{display:grid;place-items:center;width:36px;height:36px;background:var(--hot);color:#111;font-family:var(--font-display);font-size:9px;font-style:normal}
.feature-list strong,.feature-list small{display:block}
.feature-list strong{color:#fff;font-size:11px;letter-spacing:.08em}
.feature-list small{margin-top:3px;color:#aeb7c5;font-size:10px}

/* Light-mode contrast for new auth components */
.theme-switch-input:checked~.login-shell .auth-tabs label{color:#6e6577}
.theme-switch-input:checked~.login-shell .auth-tabs label[for="screen-login"],.theme-switch-input:checked~.login-shell .auth-tabs label[for="screen-register"]{color:#251d2f}
.theme-switch-input:checked~.login-shell .feature-list>div{background:rgba(255,253,248,.82);border-color:#d6ccde}
.theme-switch-input:checked~.login-shell .feature-list strong{color:#251d2f}
.theme-switch-input:checked~.login-shell .feature-list small{color:#655c6d}
.theme-switch-input:checked~.login-shell .password-rules>span{background:#d4cadb}
.theme-switch-input:checked~.login-shell .back-button,.theme-switch-input:checked~.login-shell .recovery-note{color:#51475a}
.theme-switch-input:checked~.login-shell .recovery-note{background:rgba(255,220,88,.18)}
.theme-switch-input:checked~.login-shell .text-link{color:#087f99}
.theme-switch-input:checked~.login-shell .signup-line label{color:#667f00}

@media (max-width:580px){
  .auth-card{width:calc(100% - 40px)}
  .auth-viewport{min-height:670px}
  .register-grid{grid-template-columns:1fr}
  .full-field{grid-column:auto}
  .register-screen .field{margin-bottom:13px}
}
@media (max-width:390px){.auth-card{width:calc(100% - 30px)}.auth-tabs label{font-size:10px}.auth-viewport{min-height:700px}}

.server-alert{margin:0 0 18px;padding:13px 15px;border:1px solid;font-size:13px;line-height:1.5}.server-alert--error{border-color:#ff3d81;background:rgba(255,61,129,.1);color:#ffc0d5}.server-alert--success{border-color:#d8ff3e;background:rgba(216,255,62,.08);color:#eaff9a}

/* === TOEIC RIFT AUTH UI COHERENCE V3 ==================================== */
:root{
  --font-display:"Lexend","Be Vietnam Pro",sans-serif;
  --font-ui:"Be Vietnam Pro","Segoe UI",Arial,sans-serif;
  --font-reading:"Be Vietnam Pro","Segoe UI",Arial,sans-serif;
}
body{font-family:var(--font-ui)}
.hero-copy>p,.card-heading p,.signup-line,.legal,.recovery-note,.feature-list small,
.server-alert,.input-wrap input{font-family:var(--font-reading);line-height:1.58}
.hero-copy h1{font-size:clamp(42px,4.8vw,68px)}
.hero-copy{margin:48px 0 38px}.hero-copy>p{font-size:15px}
.streak-card{max-width:500px;padding:15px 17px}.streak-icon{width:42px;height:42px}
.login-card{width:min(470px,calc(100% - 50px));padding-bottom:28px}
.auth-card{width:min(520px,calc(100% - 50px))}.card-heading{margin-bottom:24px}.card-heading h2{font-size:clamp(31px,3.5vw,43px)}
.input-wrap input{height:54px}.login-button{height:54px}.social-button{height:47px}
.auth-viewport{min-height:570px}.register-screen .input-wrap input{height:50px}
.form-footer{color:var(--muted)}
.theme-switch-input:checked~.login-shell .form-footer{color:#5d5466}
.theme-switch-input:checked~.login-shell .server-alert--error{color:#8f183f}
.theme-switch-input:checked~.login-shell .server-alert--success{color:#4f6900}
@media(max-width:580px){
  .login-card,.auth-card{width:calc(100% - 34px)}
  .auth-viewport{min-height:640px}.card-heading h2{font-size:31px}
}


/* === LIGHT THEME CONTRAST HARDENING V4 ================================ */
.theme-switch-input:checked~.login-shell .input-icon,
.theme-switch-input:checked~.login-shell .reset-emblem{
  color:#087f99;
}
.theme-switch-input:checked~.login-shell .reset-emblem{border-color:#087f99;background:rgba(8,127,153,.08)}
.theme-switch-input:checked~.login-shell .streak-icon{background:#fff8d8;color:#6f5a00;border-color:#c9a82c}
.theme-switch-input:checked~.login-shell .server-alert--error{background:#fff0f5;color:#9f234d;border-color:#d6678e}
.theme-switch-input:checked~.login-shell .server-alert--success{background:#f2f8d9;color:#4e5f00;border-color:#93ad35}
.theme-switch-input:checked~.login-shell .server-status{color:#3d6650}

/* === EDUCATION TYPOGRAPHY REFRESH V5 ===================================== */
:root{
  --font-display:"Lexend","Be Vietnam Pro",sans-serif;
  --font-ui:"Be Vietnam Pro","Segoe UI",Arial,sans-serif;
  --font-reading:"Be Vietnam Pro","Segoe UI",Arial,sans-serif;
}
body,button,input,textarea,select{font-family:var(--font-ui)}
.brand-mark,.mobile-brand span,.brand strong,.hero-copy h1,.streak-card strong,
.rank-strip strong,.mobile-brand b,.card-heading h2,.login-button,.auth-tabs label,
.reset-emblem{font-family:var(--font-display)}
.hero-copy>p,.card-heading p,.signup-line,.legal,.recovery-note,.feature-list small,
.server-alert,.input-wrap input{font-family:var(--font-reading)}
.hero-copy h1,.card-heading h2{letter-spacing:-.025em}

@media(max-width:580px){
  html,body{max-width:100%;overflow-x:hidden}
  button,a,input{max-width:100%}
  .login-shell{min-height:100dvh}
  .login-card,.auth-card{width:calc(100% - 20px);padding-inline:17px}
  .hero-copy{margin:25px 0 22px}.hero-copy h1{font-size:clamp(30px,9.5vw,39px);line-height:1.04;overflow-wrap:anywhere}.hero-copy>p{font-size:13px}
  .card-heading{margin-bottom:18px}.card-heading h2{font-size:27px;line-height:1.1;overflow-wrap:anywhere}.card-heading p{font-size:13px}
  .auth-tabs{grid-template-columns:1fr 1fr}.auth-tabs label{min-width:0;padding-inline:5px;overflow-wrap:anywhere}
  .auth-viewport{min-height:640px}
  .input-wrap input,.login-button{height:50px}
  .form-footer{align-items:flex-start;flex-direction:column;gap:7px}
  .server-alert{overflow-wrap:anywhere}
}

@media(max-width:360px){.login-card,.auth-card{width:calc(100% - 12px);padding-inline:14px}.auth-tabs label{font-size:9px}}
