:root {
  color-scheme: light dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  --page: #ffffff;
  --ink: #202124;
  --muted: #62636a;
  --field: #ffffff;
  --border: #d4d4d8;
  --hover: #f5f5f7;
  --accent: #6256db;
  --accent-hover: #5346ca;
  --link: #5b4cc4;
  --error-background: #fff0ef;
  --error-ink: #9c302c;
  background: var(--page);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #111113;
    --ink: #ededf0;
    --muted: #b0b0b7;
    --field: #0d0d0f;
    --border: #39393e;
    --hover: #1c1c20;
    --accent: #685ce8;
    --accent-hover: #786df0;
    --link: #b4aaff;
    --error-background: #321c20;
    --error-ink: #ffb4ac;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 3px; }
main { width: min(100% - 48px, 360px); margin: 0 auto; padding: 48px 0 40px; flex: 1; }
.brand { display: block; width: 44px; height: 44px; margin: 0 auto 20px; }
.brand img { display: block; }
h1, h2 { margin: 0 0 46px; font-size: 24px; line-height: 1.3; font-weight: 600; text-align: center; letter-spacing: -.5px; }
.status { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; overflow-wrap: anywhere; }
.status:empty { display: none; }
button, input, select { font: inherit; }
button, .primary { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button, .primary { min-height: 44px; border-radius: 6px; font-size: 15px; font-weight: 600; }
label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 8px; }
input, select { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; min-height: 44px; width: 100%; background: var(--field); color: var(--ink); margin-bottom: 24px; font-size: 16px; }
input::placeholder { color: var(--muted); opacity: .8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary { display: flex; align-items: center; justify-content: center; width: 100%; padding: 10px 12px; border: none; background: var(--accent); color: #fff; text-decoration: none; }
.primary:hover { background: var(--accent-hover); }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--border); background: transparent; color: var(--ink); }
.google:hover { background: var(--hover); }
.account-prompt { margin: 24px 0 0; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.6; }
.text-button { background: none; border: 0; color: var(--link); font-size: 14px; padding: 0; font-weight: 400; min-height: auto; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal { padding: 24px; font-size: 13px; text-align: center; line-height: 1.6; color: var(--muted); }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.code { font-size: 26px; letter-spacing: 10px; text-align: center; }
.secondary-actions { display: flex; justify-content: space-between; margin-top: 20px; gap: 12px; }
.error { border-radius: 6px; padding: 12px; background: var(--error-background); color: var(--error-ink); font-size: 13px; line-height: 1.5; margin: 18px 0 0; }
.desktop { text-align: center; font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) { main { padding-top: 40px; } }
