/* The sign-in page. It is the only page served to someone who is not signed in. */
:root {
  color-scheme: light;
  --page: #f5f5f7; --surface: #ffffff; --field: rgba(118, 118, 128, 0.12); --ink: #1d1d1f; --ink-2: #6e6e73; --critical: #d70015;
  --brand: linear-gradient(135deg, #0063d1 0%, #4a47d6 52%, #9a3fd0 100%);
  --brand-text: linear-gradient(100deg, #0063d1, #4a47d6 55%, #9a3fd0);
  --brand-glow: rgba(74, 71, 214, 0.32);
  --wash-a: radial-gradient(900px 520px at 8% -8%, rgba(10, 132, 255, 0.16), transparent 62%);
  --wash-b: radial-gradient(820px 520px at 96% -4%, rgba(191, 90, 242, 0.15), transparent 62%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #000000; --surface: #1c1c1e; --field: rgba(118, 118, 128, 0.24); --ink: #f5f5f7; --ink-2: #a1a1a6; --critical: #ff6961;
    --brand-text: linear-gradient(100deg, #5aa9ff, #8d8bff 55%, #d48cff);
    --brand-glow: rgba(94, 92, 230, 0.45);
    --wash-a: radial-gradient(900px 520px at 8% -8%, rgba(10, 132, 255, 0.26), transparent 62%);
    --wash-b: radial-gradient(820px 520px at 96% -4%, rgba(191, 90, 242, 0.22), transparent 62%);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  background: var(--wash-a), var(--wash-b), var(--page); background-attachment: fixed; color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: 400px; padding: 9vh 20px 24px; display: flex; flex-direction: column; align-items: center; }
.brand {
  font: 700 64px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.04em; background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag { color: var(--ink-2); text-align: center; margin: 0 0 28px; font-size: 17px; }
.card { width: 100%; background: var(--surface); border-radius: 22px; padding: 26px 26px 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.card[hidden] { display: none; }
h1 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
label[hidden] { display: none; }
input { font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 0; border-radius: 12px; padding: 11px 14px; width: 100%; }
input:focus { outline: none; box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.45); }
button { font: inherit; font-weight: 600; font-size: 16px; color: #fff; background: var(--brand); border: 0; border-radius: 980px; padding: 12px 26px; cursor: pointer; box-shadow: 0 6px 18px var(--brand-glow); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible { outline: 3px solid rgba(10, 132, 255, 0.55); outline-offset: 2px; }
button.link { background: none; box-shadow: none; color: var(--ink-2); font-weight: 400; font-size: 14px; padding: 2px; }
.small { margin: 0; font-size: 13px; color: var(--ink-2); }
.error { margin: 0; font-size: 14px; color: var(--critical); }
footer { padding: 0 20px 28px; color: var(--ink-2); font-size: 12px; text-align: center; max-width: 520px; }
