/* The sign-in page: the app's palette and wordmark, nothing else. Same tokens as app.css. */
@font-face { font-family: 'Sofia Sans'; src: url('fonts/sofia-sans-latin.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('fonts/sofia-sans-extra-condensed-latin.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; }

:root {
  --bg: #f3f1f4; --raise: #ffffff; --line: #dcd6e0; --ink: #1d1823; --muted: #675f70; --accent: #a82a56; --accent-ink: #ffffff; --bad: #b3261e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1a1620; --raise: #241f2b; --line: #342d3c; --ink: #f2ece6; --muted: #b0a7b8; --accent: #f08ba8; --accent-ink: #2a0d18; --bad: #ff8a80; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #1a1620; --raise: #241f2b; --line: #342d3c; --ink: #f2ece6; --muted: #b0a7b8; --accent: #f08ba8; --accent-ink: #2a0d18; --bad: #ff8a80; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15px/1.45 'Sofia Sans', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.door {
  max-width: 400px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12vh) max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px));
}
.wordmark { margin: 0; font: 800 76px/0.85 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif; letter-spacing: -0.01em; }
.lede { margin: 14px 0 28px; color: var(--muted); font-size: 16px; }
.sign-in { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 14px; }
input { font: inherit; font-size: 17px; color: inherit; width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--raise); outline: none; }
input:focus { border-color: var(--accent); }
.secret { position: relative; }
.secret input { padding-right: 76px; }
.secret button { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 14px/1 'Sofia Sans', ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.go { height: 50px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 16px/1 'Sofia Sans', ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.go:disabled { opacity: 0.6; cursor: default; }
.error { margin: 0; color: var(--bad); font-weight: 600; }
.note { margin: 0; color: var(--muted); font-size: 13.5px; }
