/* Unlock + 404 card theming. Ships BOTH light and dark surfaces; dark follows
   prefers-color-scheme by default (Handbook P50). The dark block recomputes the
   whole neutral scale + a lightened accent; focus ring and error tint derive
   from the base via color-mix so they track the recomputed accent. */
:root { color-scheme: light dark;
  --bg: #ffffff; --panel: #f5f5f7; --ink: #1d1d1f; --sub: #5c5c61; --tert: #6e6e73;
  --line: #d2d2d7; --line-soft: #ececef; --blue: #0071e3; --red: #d70015;
  --card-bg: #ffffff;                     /* card surface, distinct from page in dark */
  --btn-ink: #ffffff;                     /* text on the filled --blue button */
  --btn-hover: #0077ed;
  --card-shadow: 0 12px 40px rgba(0,0,0,.06);
  --font: -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --panel: #171b22; --ink: #f2f4f8; --sub: #c2c8d2; --tert: #9aa2af;
    --line: #2f3542; --line-soft: #232833; --blue: #6ea8ff; --red: #f87171;
    --card-bg: #161b22;
    --btn-ink: #0e1116;                   /* dark ink on the now-light button */
    --btn-hover: #86b7ff;
    --card-shadow: 0 12px 40px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.card { width: min(94vw,420px); background: var(--card-bg); border: 1px solid var(--line-soft);
  border-radius: 22px; padding: 40px 34px 34px; box-shadow: var(--card-shadow); }
.logo { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; }
.logo img { width: 24px; height: 24px; }
.logo-text { font-size: 14px; font-weight: 600; color: var(--sub); }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -.022em; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
p.sub { color: var(--sub); font-size: 16px; line-height: 1.5; margin: 0 0 26px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin: 0 0 8px; }
.pw-wrap { position: relative; }
input { width: 100%; padding: 13px 46px 13px 14px; font: 400 16px var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0; margin: 0; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--tert); }
.pw-toggle:hover { background: var(--line-soft); color: var(--sub); }
.pw-toggle svg { width: 20px; height: 20px; display: block; }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye-on { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }
button { width: 100%; margin-top: 18px; padding: 13px; font: 600 16px var(--font);
  color: var(--btn-ink); background: var(--blue); border: 0; border-radius: 12px; cursor: pointer; }
button:hover { background: var(--btn-hover); }
.err { margin: 14px 0 0; padding: 11px 13px; border-radius: 11px;
  background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); font-size: 14px; }
