:root { --bg: #f0f4f9; --card: #fff; --text: #1f1f1f; --muted: #444746; --primary: #0b57d0; --on-primary: #fff; --error: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1c1f; --card: #26282c; --text: #e3e3e3; --muted: #c4c7c5; --primary: #a8c7fa; --on-primary: #062e6f; --error: #f2b8b5; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.card { background: var(--card); border-radius: 28px; padding: 40px 36px 32px; width: 100%; max-width: 420px; }
.logo { display: block; border-radius: 12px; }
h1 { font-size: 32px; font-weight: 400; margin: 20px 0 4px; }
.sub { color: var(--muted); margin: 0 0 28px; }
button { width: 100%; border: 0; border-radius: 100px; padding: 16px 24px; font: inherit; font-weight: 500;
  background: var(--primary); color: var(--on-primary); cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.status { display: flex; gap: 14px; align-items: center; margin: 0 0 20px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--primary); border-right-color: transparent;
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--error); margin: 16px 0 0; }
.version { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.noscript { text-align: center; }
[hidden] { display: none !important; }
