/*
 * Login / Sign up / guest gates (Phase 6) — spec: docs/mobile-design/screens/auth.md
 * Full-bleed rotating photo, Google first, "Use username & password" expands the form.
 */
.au-body { background: #0c0c0d; }
.au-page { position: relative; display: flex; flex-direction: column; min-height: 100dvh; overflow: hidden; color: #fff; }
.au-bg { position: absolute; inset: 0; z-index: 0; }
.au-bg span { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; animation: au-fade 24s infinite; }
.au-bg span:nth-child(1) { animation-delay: 0s; }
.au-bg span:nth-child(2) { animation-delay: 6s; }
.au-bg span:nth-child(3) { animation-delay: 12s; }
.au-bg span:nth-child(4) { animation-delay: 18s; }
@keyframes au-fade { 0% { opacity: 0; transform: scale(1.02); } 6% { opacity: 1; } 28% { opacity: 1; } 34% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .au-bg span { animation: none; } .au-bg span:first-child { opacity: 1; } }
.au-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.78) 70%, rgba(0, 0, 0, 0.92)); }
.au-page:has([data-au-form]:not([hidden])) .au-scrim { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.94)); }
.au-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 16px) var(--space-5) 0; }
.au-brand { font: 800 20px/1 var(--font-ui); letter-spacing: -0.04em; }
.au-skip { display: inline-flex; align-items: center; gap: 2px; color: rgba(255, 255, 255, 0.85); font: 600 14px/1 var(--font-ui); }
.au-skip svg { width: 16px; height: 16px; }
.au-copy { position: relative; z-index: 2; display: grid; gap: 8px; margin-top: auto; padding: 0 var(--space-5) var(--space-5); }
.au-copy p { margin: 0; color: #ffb3a4; font: 700 12px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; }
.au-copy h1 { margin: 0; font: 700 34px/1.1 var(--font-ui); letter-spacing: -0.02em; text-wrap: balance; }
.au-copy span { color: rgba(255, 255, 255, 0.82); font: 450 16px/1.5 var(--font-ui); }
.au-actions { position: relative; z-index: 2; display: grid; gap: var(--space-3); padding: 0 var(--space-5) calc(env(safe-area-inset-bottom) + var(--space-6)); }
.au-actions form { margin: 0; }
.au-google { display: flex; align-items: center; justify-content: center; gap: var(--space-3); width: 100%; min-height: 54px; color: #1f1f1f; font: 650 16px/1 var(--font-ui); background: #fff; border: 0; border-radius: 14px; }
.au-google svg { width: 22px; height: 22px; }
.au-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; color: #fff; font: 650 15px/1 var(--font-ui); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 14px; backdrop-filter: blur(10px); }
.au-toggle svg { width: 18px; height: 18px; transition: transform 200ms ease; }
.au-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.au-form { display: grid; gap: var(--space-3); animation: au-rise 220ms ease; }
.au-form[hidden] { display: none; }
@keyframes au-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.au-field { display: grid; gap: 6px; }
.au-field > span:first-child { color: rgba(255, 255, 255, 0.8); font: 650 13px/1 var(--font-ui); }
.au-field input { width: 100%; min-height: 50px; padding: 0 14px; color: #fff; font: 450 16px/1 var(--font-ui); background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; outline: 0; backdrop-filter: blur(10px); }
.au-field input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.2); }
.au-pass { position: relative; display: block; }
.au-pass input { padding-right: 70px; }
.au-show { position: absolute; top: 0; right: 0; bottom: 0; padding: 0 16px; color: #ffb3a4; font: 650 14px/1 var(--font-ui); background: none; border: 0; }
.au-submit { width: 100%; min-height: 52px; margin-top: var(--space-1); }
.au-switch { margin: var(--space-1) 0 0; color: rgba(255, 255, 255, 0.8); font: 450 14px/1 var(--font-ui); text-align: center; }
.au-switch a { color: #ffb3a4; font-weight: 700; }
.au-errors, .au-field .errorlist { margin: 0; padding: 0; color: #ff9b8f; font: 500 13px/1.4 var(--font-ui); list-style: none; }

/* guest gate pages */
.gate-body { background: var(--bg); }
.gate-page { display: grid; gap: var(--space-3); justify-items: center; padding: var(--space-8) var(--space-5) calc(var(--m-bottom-nav-height) + var(--space-8)); text-align: center; }
.gate-icon { display: grid; place-items: center; width: 72px; height: 72px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.gate-icon svg { width: 32px; height: 32px; }
.gate-page h1 { margin: var(--space-2) 0 0; font: 700 26px/1.2 var(--font-ui); }
.gate-page p { max-width: 300px; margin: 0; color: var(--ink-2); line-height: 1.5; }
.gate-page ul { display: grid; gap: 10px; margin: var(--space-3) 0; padding: 0; list-style: none; text-align: start; }
.gate-page li { display: flex; align-items: center; gap: var(--space-2); color: var(--ink); font: 500 15px/1.4 var(--font-ui); }
.gate-page li svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.gate-page .m-btn { width: 100%; max-width: 320px; }
.gate-explore { display: inline-flex; align-items: center; gap: 2px; margin-top: var(--space-3); color: var(--accent-ink); font: 650 14px/1 var(--font-ui); }
.gate-explore svg { width: 16px; height: 16px; }
