/* Front Door H9: the standalone sign-in page. Tokens from DESIGN.md (light/dark). */
:root {
  color-scheme: light dark;
  --bg: #eeeae5; --box: #faf7f3; --fg: #302e2b; --fg2: #70675f; --line: #d5cdc3;
  --accent: #995044; --accent-ink: #faf7f3; --bad: #ae3845;
  --elev: 0 1px 2px rgb(48 46 43 / .06), 0 6px 18px rgb(48 46 43 / .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616; --box: #232323; --fg: #f0ece8; --fg2: #bfb8b2; --line: #494949;
    --accent: #efaa9c; --accent-ink: #232323; --bad: #ff9da5;
    --elev: inset 0 1px 0 rgb(255 255 255 / .05), 0 1px 2px rgb(0 0 0 / .5), 0 8px 24px rgb(0 0 0 / .35);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: grid; place-items: center; padding: 16px;
  background: var(--bg); color: var(--fg);
  font: 400 0.9375rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
}
.card {
  width: 100%; max-width: 380px; padding: 32px 24px;
  background: var(--box); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--elev);
}
h1 {
  margin: 0 0 8px; font: 600 clamp(1.625rem, 1.25rem + 0.8vw, 2rem)/1.18 Spectral, Georgia, serif; letter-spacing: -0.02em;
}
.lead { margin: 0 0 24px; color: var(--fg2); font-size: 0.875rem; line-height: 1.5; }
form { display: grid; gap: 8px; }
label { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; margin-top: 8px; }
input {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--fg); font: inherit; font-size: 1rem;
}
input#code { letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.message { margin: 8px 0 0; color: var(--bad); font-size: 0.875rem; line-height: 1.5; }
button {
  margin-top: 16px; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fg); color: var(--box); font: inherit; font-weight: 600; line-height: 1;
  transition: background-color 180ms cubic-bezier(.22, 1, .36, 1), transform 180ms cubic-bezier(.22, 1, .36, 1);
}
button:hover { background: var(--accent); color: var(--accent-ink); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.48; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
