:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --bg: #10161d;
  --surface: #17212b;
  --text: #eef3f7;
  --muted: #a7b6c4;
  --border: #344452;
  --accent: #8bdfc5;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
  font-synthesis: none;
}
* { box-sizing: border-box; min-width: 0; }
body { margin: 0; min-height: 100svh; padding: 72px 24px 40px; }
main { width: min(440px, 100%); margin: 0 auto; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.brand { font-size: 14px; line-height: 1.5; color: var(--muted); font-weight: 600; margin: 0 0 28px; }
h1 { margin: 0 0 24px; font-size: 26px; letter-spacing: -.025em; line-height: 1.35; font-weight: 650; }
p { line-height: 1.65; color: var(--muted); font-size: 14px; }
.lead { margin: 12px 0 24px; }
.login-actions { display: grid; gap: 12px; }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 11px 16px; margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); text-decoration: none; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background .15s, border-color .15s; }
.login-actions .button { margin: 0; }
.button svg { flex: none; width: 21px; height: 21px; }
.button:hover { background: #22313e; border-color: #627887; }
.apple { background: var(--accent); color: #10241f; border-color: var(--accent); }
.apple:hover { background: #a8ead6; border-color: #a8ead6; }
.disabled, .button:disabled, .button:disabled:hover { cursor: not-allowed; background: #202c36; color: #8999a7; border-color: var(--border); }
.login-status { font-size: 14px; margin: 16px 0 0; min-height: 24px; overflow-wrap: anywhere; }
.login-status:empty { margin: 0; min-height: 0; }
a { color: var(--accent); }
.login-status a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-underline-offset: 4px; }
.hint { font-size: 13px; line-height: 1.75; margin: 24px 0 0; color: var(--muted); }
.recovery { margin: 12px 0 -8px; font-size: 13px; }
.recovery a { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.recovery a:hover { color: var(--text); }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 540px) {
  body { padding: 40px 20px 28px; }
  main { padding: 24px; border-radius: 16px; }
  .brand { margin-bottom: 24px; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
