/* Sign-in and password setup pages (self-hosted server) */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); background: var(--canvas); }
.auth-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 48px; color: #eaf0fa; overflow: hidden;
  background: radial-gradient(circle at 15% 0%, rgba(201,29,50,.35), transparent 40%), radial-gradient(circle at 90% 100%, rgba(244,196,48,.12), transparent 40%), linear-gradient(160deg, #111a2a 0%, #0c1320 100%); }
.auth-hero h1 { max-width: 520px; margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
.auth-hero p { max-width: 460px; margin: 0; color: #b8c3d6; font-size: 15px; line-height: 1.55; }
.auth-hero ul { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; color: #d5ddea; font-size: 13px; font-weight: 700; }
.auth-hero li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: rgba(22,163,106,.2); color: #4ade80; font-size: 11px; }
.auth-hero small { color: #7d8aa1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--paper); }
.auth-card { width: min(380px, 100%); }
.auth-card h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-field { display: grid; gap: 7px; margin-bottom: 16px; }
.auth-field span { color: #465267; font-size: 11px; font-weight: 800; }
.auth-field input { height: 50px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 12px; color: var(--ink); background: #fff; font-size: 16px; outline: none; transition: border .15s, box-shadow .15s; }
.auth-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.auth-field small { color: var(--muted); font-size: 11px; }
.auth-actions { display: grid; gap: 10px; margin-top: 8px; }
.auth-actions .button { min-height: 50px; font-size: 14px; }
.auth-error { min-height: 20px; margin: 6px 0 4px; color: var(--red); font-size: 12px; font-weight: 800; }
.auth-note { margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--canvas); color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-show { justify-self: start; padding: 0; border: 0; background: none; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.auth-mobile-brand { display: none; margin-bottom: 28px; color: var(--ink); }
.auth-mobile-brand .brand-copy small { color: var(--muted); }
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { align-items: flex-start; padding: max(48px, env(safe-area-inset-top)) 22px 32px; }
  .auth-mobile-brand { display: flex; }
}
