:root {
  color-scheme: light;
  --canvas: #f1f2f3;
  --surface: #fff;
  --ink: #0b0b0b;
  --muted: #606060;
  --border: #d8d9db;
  --field-border: #888;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100svh; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
::selection { background: var(--ink); color: var(--surface); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.page-header { max-width: 1280px; margin: 0 auto; padding: 28px 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; min-height: 40px; }
.brand img { display: block; flex: none; }
.auth-main { width: min(100% - 48px, 384px); margin: 62px auto 64px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.auth-heading { margin-bottom: 30px; }
h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.35; font-weight: 800; text-wrap: balance; }
.auth-heading p, #boot-status { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.field { margin-bottom: 20px; }
.field > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.field > input { display: block; width: 100%; min-width: 0; height: 48px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; color: var(--ink); background: var(--surface); caret-color: var(--ink); font-size: 16px; transition: border-color 160ms ease; }
.field > input { border-color: var(--field-border); }
.field > input:hover:not(:disabled) { border-color: #666; }
.field > input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.field > input::placeholder { color: #707070; opacity: 1; }
.field > input:read-only { background: #e8e9eb; color: #4c4c4c; }
.field > input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
#verification-code { font-variant-numeric: tabular-nums; }
.form-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: -4px 0 8px; }
.check-label { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.check-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.text-button { min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.text-button:active:not(:disabled) { opacity: .65; }
.form-message { margin: 4px 0 14px; color: var(--ink); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.form-message:empty { margin: 0; }
.form-message[data-kind="error"] { font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 750; transition: background 160ms ease; }
.primary { width: 100%; background: var(--ink); color: var(--surface); }
.primary:hover:not(:disabled) { background: #333; }
.primary:active:not(:disabled) { background: #505050; }
.code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 10px; }
.back-button { display: block; margin: 14px auto 0; color: var(--muted); }
.join-section { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
  .page-header { padding: 18px 24px; }
  .auth-main { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
