:root {
  color-scheme: light;
  --family-auth-bg: oklch(97% .008 88);
  --family-auth-surface: oklch(99% .004 88);
  --family-auth-soft: oklch(94% .016 160);
  --family-auth-ink: oklch(29% .018 175);
  --family-auth-muted: oklch(48% .018 175);
  --family-auth-line: oklch(86% .014 160);
  --family-auth-accent: oklch(38% .06 165);
  --family-auth-error: oklch(46% .12 30);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--family-auth-ink);
  background: var(--family-auth-bg);
}
.family-auth-root { margin: 0; min-width: 0; }
.family-auth-root *, .family-auth-root *::before, .family-auth-root *::after { box-sizing: border-box; }
.family-auth-root [hidden] { display: none !important; }
.family-auth-root button, .family-auth-root input { font: inherit; }
.family-auth-root button, .family-auth-root a { touch-action: manipulation; }
.family-auth-root :focus-visible { outline: 3px solid oklch(48% .1 165); outline-offset: 3px; }
.family-auth-root a { color: var(--family-auth-accent); text-underline-offset: 4px; }
.family-auth-shell {
  width: min(100%, 504px);
  margin-inline: auto;
  padding: max(44px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}
.family-auth-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; font-size: 20px; font-weight: 700; }
.family-auth-brand small { display: block; margin-top: 3px; color: var(--family-auth-muted); font-size: 13px; font-weight: 400; }
.family-auth-mark { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--family-auth-accent); color: var(--family-auth-surface); font-size: 25px; }
.family-auth-panel { padding: 30px; border: 1px solid var(--family-auth-line); border-radius: 16px; background: var(--family-auth-surface); }
.family-auth-heading { margin-bottom: 26px; }
.family-auth-eyebrow { margin: 0 0 8px; color: var(--family-auth-muted); font-size: 13px; }
.family-auth-heading h1 { margin: 0 0 10px; font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.family-auth-heading > p:last-child { margin: 0; color: var(--family-auth-muted); font-size: 15px; }
.family-auth-field { margin: 22px 0; min-width: 0; }
.family-auth-field > label { display: block; margin-bottom: 9px; font-size: 16px; font-weight: 600; }
.family-auth-field input { display: block; width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--family-auth-line); border-radius: 9px; padding: 12px 14px; color: var(--family-auth-ink); background: var(--family-auth-bg); font-size: 17px; }
.family-auth-field input:hover { border-color: oklch(67% .026 160); }
.family-auth-field input:focus { border-color: var(--family-auth-accent); }
.family-auth-password { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.family-auth-password > input { flex: 1; width: 0; }
.family-auth-password-toggle { flex: none; min-width: 60px; padding: 9px 10px; border: 1px solid var(--family-auth-line); border-radius: 9px; background: var(--family-auth-surface); color: var(--family-auth-accent); font-size: 15px; cursor: pointer; }
.family-auth-password-toggle:hover { background: var(--family-auth-soft); }
.family-auth-password-toggle:active { background: oklch(90% .025 165); }
.family-auth-preferences { display: grid; gap: 6px; margin: 20px 0 22px; }
.family-auth-choice { display: flex; align-items: flex-start; gap: 11px; min-height: 56px; padding-block: 6px; cursor: pointer; }
.family-auth-choice input { flex: none; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--family-auth-accent); }
.family-auth-choice strong { display: block; font-size: 16px; font-weight: 500; }
.family-auth-choice small { display: block; margin-top: 2px; font-size: 13px; color: var(--family-auth-muted); line-height: 1.6; }
.family-auth-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--family-auth-accent); border-radius: 9px; color: var(--family-auth-surface); background: var(--family-auth-accent); font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; }
.family-auth-root a.family-auth-primary { color: var(--family-auth-surface); }
.family-auth-primary:hover { background: oklch(32% .06 165); }
.family-auth-primary:active { background: oklch(29% .06 165); }
.family-auth-primary:disabled { opacity: .68; cursor: wait; }
.family-auth-error { margin: 0 0 20px; padding: 12px 14px; color: var(--family-auth-error); background: oklch(95% .018 30); border: 1px solid oklch(81% .048 30); border-radius: 8px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.family-auth-error:empty, .family-auth-status:empty { display: none; }
.family-auth-status { margin: 12px 0 0; color: var(--family-auth-muted); font-size: 14px; }
.family-auth-footnote { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--family-auth-line); font-size: 13px; color: var(--family-auth-muted); line-height: 1.8; }
.family-auth-bottom { margin: 20px 0 0; text-align: center; color: var(--family-auth-muted); font-size: 13px; line-height: 1.7; }
.family-auth-filing { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin-top: 12px; font-size: 12px; line-height: 1.8; }
.family-auth-root .family-auth-filing a { display: inline-flex; align-items: center; min-height: 36px; color: var(--family-auth-muted); text-decoration: none; }
.family-auth-root .family-auth-filing a:hover { text-decoration: underline; }
@media (min-width: 760px) { .family-auth-shell { padding-top: max(64px, env(safe-area-inset-top)); } }
@media (max-width: 480px) {
  .family-auth-shell { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); padding-top: max(28px, env(safe-area-inset-top)); }
  .family-auth-brand { margin-bottom: 24px; }
  .family-auth-panel { padding: 25px 20px; border-radius: 13px; }
  .family-auth-heading h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .family-auth-root * { scroll-behavior: auto !important; } }
