/* The sign-in pages (/login, /verify and their replies) in Assist's visual
   language (plan 3.4): the same tokens as the redesigned pages, one accent
   color for actions, neutral surfaces, 15 px body text, and light or dark
   from the system setting. No boxes: a header row and one narrow column. */

:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --sunken: #f3f4f6;
  --fg: #1a1d21;
  --muted: #5a626e;
  --line: #e2e5e9;
  --field-line: #8b929c;
  --accent: #2b56cf;
  --accent-strong: #1f45b0;
  --accent-fg: #ffffff;
  --focus: #2b56cf;
  --bad: #b3261e;
  --bad-soft: #fdecea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #131518;
    --sunken: #22262b;
    --fg: #e7e9ec;
    --muted: #a1a8b3;
    --line: #2f343a;
    --field-line: #737b86;
    --accent: #86a8ff;
    --accent-strong: #a3bdff;
    --accent-fg: #0f1320;
    --focus: #a3bdff;
    --bad: #ff8f85;
    --bad-soft: #3a1d1b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.auth-header { height: 52px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.auth-brand { font-weight: 650; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.auth-brand span { color: var(--muted); font-weight: 500; }

.auth-main { width: 100%; max-width: 400px; margin: 0 auto; padding: 56px 16px 64px; }
h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 8px 0 0; }
.auth-lede { color: var(--muted); }
.auth-lede strong { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.auth-note { margin-top: 16px; color: var(--muted); font-size: 13px; }

.auth-form { display: grid; gap: 6px; margin-top: 24px; }
label { font-size: 13px; font-weight: 600; }
input {
  width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 6px;
  background: var(--sunken); color: var(--fg); font: inherit;
  box-shadow: inset 0 0 0 1px var(--field-line);
}
input:focus { outline: 2px solid var(--focus); outline-offset: 0; background: var(--canvas); }
input::placeholder { color: var(--muted); opacity: 0.85; }
.auth-code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 20px; letter-spacing: 0.3em; }

button, .auth-button {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; margin-top: 10px; padding: 0 16px;
  border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-fg);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
button:hover, .auth-button:hover { background: var(--accent-strong); }
.auth-button { margin-top: 20px; }
.auth-link { color: var(--accent); font-weight: 500; }
.auth-error { margin-top: 16px; padding: 8px 12px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
