/* Shared sign-in, registration and recovery shell; authentication logic unchanged. */
html body .auth-screen {
  padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));
  overscroll-behavior:contain;
}
html body .auth-screen::before {
  background:rgba(12,28,20,.42);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
html body .auth-screen .auth-card {
  --auth-ink:#243f26;--auth-muted:#4b6351;--auth-line:rgba(88,110,82,.25);
  --auth-surface:rgba(255,250,240,.94);--auth-field:rgba(255,255,255,.45);--auth-shine:rgba(255,255,255,.5);
  width:min(480px,100%);max-height:calc(100dvh - 32px);overflow:auto;
  overscroll-behavior:contain;padding:32px;border:1px solid var(--auth-line);border-radius:30px;
  background:linear-gradient(140deg,var(--auth-shine),transparent 65%),var(--auth-surface);
  color:var(--auth-ink);box-shadow:0 28px 80px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.3);
}
html body.dark-mode .auth-screen .auth-card {
  --auth-ink:#edf4ec;--auth-muted:#b6c8b9;--auth-line:rgba(204,232,210,.24);
  --auth-surface:rgba(23,45,34,.96);--auth-field:rgba(8,25,16,.35);--auth-shine:rgba(237,244,236,.07);
}
html body .auth-screen .auth-head { margin-bottom:28px;gap:12px; }
html body .auth-screen .auth-brand { color:var(--auth-ink);gap:10px; }
html body .auth-screen .auth-brand strong { font-size:22px;letter-spacing:-.5px; }
html body .auth-screen .auth-brand small { font-size:11px;color:var(--auth-muted); }
html body .auth-screen .auth-brand .brandmark { width:36px;height:36px;min-width:36px;padding:0;background:transparent; }
html body .auth-screen .auth-title { font-size:30px;line-height:1.15;letter-spacing:-.035em;font-weight:500;color:var(--auth-ink);text-wrap:balance; }
html body .auth-screen .auth-copy { font-size:15px;line-height:1.7;color:var(--auth-muted);margin-bottom:24px; }
html body .auth-screen .auth-form { gap:18px; }
html body .auth-screen .auth-form label { font-size:13px;color:var(--auth-muted);margin-bottom:8px; }
html body .auth-screen .auth-form input {
  min-height:48px;border:1px solid var(--auth-line);border-radius:15px;
  padding:12px 14px;font-size:16px;line-height:1.4;background:var(--auth-field);color:var(--auth-ink);
  box-shadow:inset 0 1px rgba(255,255,255,.06);
}
html body .auth-screen .auth-form input::placeholder { color:var(--auth-muted);opacity:.85; }
html body .auth-screen :is(button,input,a):focus-visible { outline:3px solid #88b77d;outline-offset:3px; }
html body .auth-screen .auth-form .button {
  min-height:48px;padding:12px 18px;border-radius:999px;border:1px solid #a9d39b;
  background:#a9d39b;color:#142619;font-size:15px;font-weight:600;box-shadow:inset 0 1px rgba(255,255,255,.3);
}
html body .auth-screen .auth-form .button:hover { background:#bce1b0;transform:none; }
html body .auth-screen .auth-form .button:disabled { opacity:.65;cursor:wait; }
html body .auth-screen :is(.auth-close,.auth-language-toggle) {
  min-width:44px;min-height:44px;width:auto;height:44px;padding:8px 12px;border:1px solid var(--auth-line);
  border-radius:999px;background:var(--auth-field);color:var(--auth-ink);
}
html body .auth-screen .auth-close { width:44px;padding:0; }
html body .auth-screen .auth-switch { min-height:44px;padding:10px 4px;font-size:13px;color:var(--auth-ink);text-underline-offset:4px; }
html body .auth-screen .auth-note { padding-top:16px;border-top:1px solid var(--auth-line);font-size:12px;line-height:1.7;color:var(--auth-muted); }
html body .auth-screen .auth-message { font-size:13px;line-height:1.6;color:var(--auth-ink); }
html body .auth-screen .auth-message.error { color:#9d372d; }
html body.dark-mode .auth-screen .auth-message.error { color:#f2b4a3; }
@media(max-width:420px) {
 html body .auth-screen .auth-card { padding:24px 20px;border-radius:26px; }
 html body .auth-screen .auth-head { gap:8px; }
 html body .auth-screen .auth-head-actions { gap:5px; }
 html body .auth-screen .auth-brand strong { font-size:19px; }
 html body .auth-screen .auth-brand small { white-space:normal;font-size:10px; }
 html body .auth-screen .auth-title { font-size:27px; }
}
@media(prefers-reduced-transparency:reduce) {
 html body .auth-screen::before { backdrop-filter:none;-webkit-backdrop-filter:none; }
 html body .auth-screen .auth-card { --auth-surface:#f3ead9; }
 html body.dark-mode .auth-screen .auth-card { --auth-surface:#172d22; }
}
