/* The sign-in page (docs/32). Grayscale; every color comes from /s/tokens.css. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--page); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }

.si { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.si-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; }
.si-mark { width: 44px; height: 44px; margin: 0 auto 6px; border-radius: var(--r-m); background: var(--btn); color: var(--btn-fg); display: grid; place-items: center; }
.si-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.si-view { display: flex; flex-direction: column; gap: 12px; }
.si-view[hidden] { display: none; }
.si h1 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.si p { margin: 0; }

.btn { min-height: 48px; border: 1px solid var(--sep); border-radius: var(--r-m); padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: transparent; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .12s, filter .12s; }
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--btn); color: var(--btn-fg); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.quiet { border-color: transparent; color: var(--muted); }
.btn.quiet:hover { color: var(--fg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.si-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--sep); }

.si-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.si-form label { font-size: 14px; font-weight: 600; }
.si-form input { min-height: 48px; border: 1px solid var(--sep); border-radius: var(--r-m); padding: 0 14px; background: var(--card); color: var(--fg); font: inherit; }
.si-form input:focus-visible { outline-offset: 0; }
.si-form .btn { margin-top: 6px; }

.si-err { color: var(--bad-t); font-weight: 600; font-size: 14px; }
.si-err[hidden] { display: none; }
.si-foot { margin-top: 6px; }
.si-spin { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--tint-2); border-top-color: var(--fg); animation: si-turn .9s linear infinite; }
@keyframes si-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .si-spin { animation: none; border-top-color: var(--muted); } .btn { transition: none; } }
