/* Hivecraft tokens (subset of the design kit) for the server-rendered auth pages. Neutral surfaces, ink primary. */
:root {
  --bg: #f6f6f5; --surface: #ffffff; --ink: #111111; --text: #1c1c1c; --muted: #5f5f5c; --border: #dcdcd8;
  --control: #8a8a85; --focus: #c98a00; --danger: #b42318; --radius-8: 8px; --radius-12: 12px;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111111; --surface: #1a1a1a; --ink: #f3f3f1; --text: #ececea; --muted: #a3a39e; --border: #2e2e2c; --control: #6e6e69; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); }
.shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.mark { width: 20px; height: 20px; border-radius: 6px; background: var(--ink); }
.card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-12); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
h1 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 4px 0; }
label { font-weight: 500; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input:not([type]), input[type=email], input[type=text], textarea { width: 100%; height: 44px; padding: 0 12px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--control); border-radius: var(--radius-8); }
textarea { height: auto; min-height: 96px; padding: 10px 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: var(--radius-8); border: 1px solid var(--control); background: var(--surface); color: var(--text); font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; width: 100%; }
.button.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.button:hover { filter: brightness(0.96); }
.button:active { transform: scale(.98); transition: transform 90ms ease-out; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
form { display: flex; flex-direction: column; gap: 12px; }
code { font-size: 13px; }
.error { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Phase 4: passkey step and My security */
h2 { font-size: 16px; margin: 12px 0 0; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-8); }
.row .inline { display: flex; gap: 8px; }
.row .inline .button { width: auto; }
.button.danger { color: var(--danger); border-color: var(--danger); }
.notice { padding: 10px 12px; border-radius: var(--radius-8); background: var(--subtle, rgba(0,0,0,.04)); }
.tag { font-size: 12px; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qr { align-self: center; border-radius: var(--radius-8); background: #fff; padding: 8px; }
.secret { word-break: break-all; letter-spacing: .04em; }
