/* Sign-in and "not on the list" pages (auth.py + templates_auth.py; copied from Nanny Tracker's auth.css). Emerald
   ledger tile, title, the emerald Google button, "or", the sign-in code box (emerald tint), a lock line. Tokens + Geist
   come from tokens.css; light and dark follow the device. No inline styles (CSP). */

.auth-body {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) calc(env(safe-area-inset-right, 0px) + 16px)
    calc(env(safe-area-inset-bottom, 0px) + 32px) calc(env(safe-area-inset-left, 0px) + 16px);
}
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 16px; }

.auth-mark { justify-self: center; width: 72px; height: 72px; border-radius: 20px; background: var(--logo); color: var(--on-logo);
  display: grid; place-items: center; }
.auth-mark svg { width: 38px; height: 38px; }
.auth-head { display: grid; gap: 8px; margin-bottom: 18px; text-align: center; }
.auth-title.auth-title { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.auth-sub, .auth-lead { font-size: 14px; line-height: 1.45; color: var(--ink2); overflow-wrap: anywhere; }
.auth-email { color: var(--ink); font-weight: 700; }

.auth-note { padding: 12px 14px; border-radius: 14px; font-size: 14px; color: var(--ink); background: var(--amber-soft); border: 1px solid var(--amber-line); }

.auth-btn {
  width: 100%; min-height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--cta); border-radius: 14px; background: var(--cta); color: var(--on-cta); box-shadow: var(--cta-shadow);
  font: 800 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation;
}
.auth-btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
/* Google's G sits on its own white disc (their brand rule), in both themes */
.auth-g { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 50%; background: #ffffff; }

.auth-or { display: flex; align-items: center; gap: 12px; height: 20px; font-size: 12px; font-weight: 600; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-code { display: grid; gap: 12px; margin: 0; padding: 16px; border-radius: 16px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); }
.auth-code-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.auth-code-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--logo); color: var(--on-logo); display: grid; place-items: center; }
.auth-code-ico svg { width: 18px; height: 18px; }
.auth-label { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.auth-code-row { display: grid; gap: 12px; }
.auth-code input[name="code"] {
  width: 100%; min-width: 0; height: 56px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px;
  background: var(--surface); color: var(--ink); outline: none; text-align: center; text-transform: uppercase;
  font: 700 22px/1 var(--font); letter-spacing: .14em; font-variant-numeric: tabular-nums;
}
.auth-code input[name="code"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.auth-code input[aria-invalid="true"] { border-color: var(--red); }
.auth-btn-quiet { min-height: 52px; background: var(--surface); color: var(--accent); box-shadow: none; font-size: 15px; font-weight: 700;
  border-color: var(--accent-line); }
.auth-btn-quiet:hover { background: var(--surface2); border-color: var(--accent-line); }
.auth-error { font-size: 13px; font-weight: 600; color: var(--red); }

.auth-foot { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-foot svg { width: 14px; height: 14px; flex: none; }

.auth-link { justify-self: center; min-height: 44px; display: inline-flex; align-items: center; font: 700 14px/1.3 var(--font); color: var(--accent); text-decoration: none; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-dev { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 8px 12px;
  border: 1px dashed var(--line2); border-radius: 12px; font-size: 13px; color: var(--muted); }
.auth-dev .auth-link { min-height: 36px; }

@media (max-width: 380px) {
  .auth-title.auth-title { font-size: 28px; }
  .auth-code input[name="code"] { font-size: 20px; letter-spacing: .1em; }
}
