:root {
  --bg: #f6f5f2; --card: #ffffff; --text: #1d1d1b; --muted: #6b6a66; --line: #dddbd5;
  --accent: #2f5d50; --accent-text: #ffffff; --error-bg: #fbeaea; --error: #9b2c2c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615; --card: #1f1f1d; --text: #ecebe7; --muted: #a09f9a; --line: #34332f;
    --accent: #7fb8a4; --accent-text: #10201b; --error-bg: #3a1e1e; --error: #f1a7a7;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 26rem; margin: 3rem auto; padding: 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 30rem) { main { margin: 0; min-height: 100vh; border: 0; border-radius: 0; padding: 1.25rem 1rem; } }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted); }
.brand { font-weight: 600; color: var(--text); letter-spacing: .02em; }
.logout { display: flex; gap: .5rem; align-items: center; margin: 0; }
h1 { font-size: 1.375rem; margin: 0 0 1rem; }
form { display: grid; gap: 1rem; margin: 1rem 0; }
label { display: grid; gap: .35rem; font-size: .875rem; color: var(--muted); }
input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; width: 100%; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: .65rem 1rem; background: var(--accent); color: var(--accent-text); cursor: pointer; }
button.secondary { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
button.link { background: none; color: var(--muted); padding: 0; font-weight: 400; text-decoration: underline; }
.error { background: var(--error-bg); color: var(--error); padding: .6rem .75rem; border-radius: 8px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.big { font-size: 1.75rem; text-align: center; margin: 1.25rem 0; }
dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; font-size: .9375rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
