/* Portal login / sign-up (Client Portal and Crew Portal) */
.auth-grid { align-items: stretch; gap: 40px 64px; }
.auth-aside { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #08090b; padding: clamp(28px, 4vw, 56px); min-height: 560px; display: flex; flex-direction: column; justify-content: flex-start; }
.auth-aside-copy { position: relative; z-index: 2; display: grid; gap: 22px; }
.auth-aside h1 { margin: 6px 0 0; font-size: clamp(34px, 4.4vw, 68px); max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.auth-aside .lede { margin: 0; color: #f3efe8; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.auth-aside .eyebrow { color: #f3efe8; }
.auth-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: #f3efe8; font-size: 16px; }
.auth-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t-municipal); box-shadow: 0 0 12px var(--t-municipal); flex: none; }
.auth-points li:nth-child(2)::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.auth-points li:nth-child(3)::before { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.auth-glow { position: absolute; inset: -25%; z-index: 0; filter: blur(70px) saturate(1.25); opacity: .9; pointer-events: none; }
.auth-glow i { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen; opacity: .75; animation: auth-drift 22s ease-in-out infinite alternate; }
.auth-glow .g1 { background: var(--t-municipal); top: 40%; left: 6%; }
.auth-glow .g2 { background: var(--accent); top: 22%; left: 40%; animation-duration: 26s; animation-delay: -6s; }
.auth-glow .g3 { background: var(--accent-2); top: 46%; left: 12%; animation-duration: 30s; animation-delay: -12s; }
.auth-glow .g4 { background: var(--t-documentary); top: 52%; left: 48%; animation-duration: 24s; animation-delay: -3s; }
.auth-glow .g5 { background: var(--t-government); top: 30%; left: 62%; width: 44%; animation-duration: 34s; animation-delay: -18s; opacity: .55; }
.auth-aside::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(8,9,11,.9) 0%, rgba(8,9,11,.55) 45%, rgba(8,9,11,.08) 80%); }
@keyframes auth-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(14%, -10%) scale(1.12); }
  66% { transform: translate(-10%, 12%) scale(.92); }
  100% { transform: translate(8%, 6%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .auth-glow i { animation: none; } }
.auth-panel { display: grid; gap: 32px; align-content: start; padding: clamp(24px, 3.2vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; }
.auth-tabs button, .auth-tabs a { text-align: center; text-decoration: none; padding: 13px 10px; background: none; border: 0; border-radius: 3px; color: var(--ink-2); font: 600 15px/1.2 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.auth-tabs a:hover, .auth-tabs button:hover { color: var(--ink); }
.auth-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.auth-tabs a:focus-visible, .auth-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-panel .form { gap: 32px; }
.auth-panel .form .fields { gap: 30px 28px; }
.auth-intro { display: grid; gap: 10px; }
.auth-intro h3 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); }
.auth-intro p { margin: 0; color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.auth-panel .field input { font-size: 18px; padding: 12px 0 14px; }
.form-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.form-actions .btn { min-width: 180px; justify-content: center; }
.auth-panel .thanks { border-top: 0; padding: 8px 0; }
@media (max-width: 999px) { .auth-aside { min-height: 340px; } }
.auth-tabs[hidden] { display: none; }