.auth-shell { max-width: 560px; padding-bottom: 0; background: rgba(255, 255, 255, .92); }
.auth-shell .topbar, .splash-shell .topbar, .welcome-shell .topbar, .splash-shell .bottom-nav { display: none; }
.auth-shell .content, .splash-shell .content { min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); }
.auth-page { width: min(100%, 460px); min-height: calc(100dvh - 52px); margin: auto; display: flex; flex-direction: column; justify-content: center; }
.auth-brand { margin-bottom: 25px; display: inline-flex; align-items: center; gap: 10px; align-self: center; color: var(--ocean-ink); text-decoration: none; }
.auth-brand .brand-mark { width: 48px; height: 48px; color: var(--ocean-aqua); }
.auth-brand-logo { width: 190px; height: 52px; display: block; object-fit: contain; }
.auth-brand .brand-word { font-size: 25px; }
.auth-heading { margin-bottom: 22px; text-align: left; }
.auth-heading h1 { margin: 5px 0 7px; font-size: clamp(30px, 9vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.auth-heading p { margin: 0; color: var(--ocean-slate); line-height: 1.5; }
.auth-card { margin: 0; padding: 22px; border-radius: 22px; }
.auth-form { gap: 14px; }
.auth-form input:not([type="checkbox"]) { min-height: 52px; }
.auth-form .button { width: 100%; margin-top: 4px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 12px; font-weight: 750; }
.auth-field input:not([type="checkbox"]) { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--ocean-line); border-radius: var(--radius-control); background: #fff; color: var(--ocean-ink); }
.auth-field input:not([type="checkbox"]):focus { border-color: var(--ocean-aqua); }
.auth-field .helptext { color: var(--ocean-slate); font-size: 11px; line-height: 1.4; }
.auth-field .errorlist { margin-top: 2px; }
.auth-check { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 9px; }
.auth-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ocean-aqua); }
.auth-check label { color: #475569; font-size: 12px; line-height: 1.5; }
.auth-check a { color: var(--ocean-aqua-deep); font-weight: 700; }
.auth-check .errorlist { grid-column: 2; }
#registration-form .auth-check { grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 8px; }
#registration-form .auth-check input[type="checkbox"] { width: 15px; height: 15px; margin: 0; }
.auth-links { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 12px; }
.auth-links a { color: var(--ocean-aqua-deep); font-weight: 700; text-decoration: none; }
.auth-switch { margin: 20px 0 0; color: var(--ocean-slate); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--ocean-aqua-deep); font-weight: 750; text-decoration: none; }
.auth-back { margin-bottom: 18px; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; color: var(--ocean-slate); font-size: 13px; font-weight: 700; text-decoration: none; }
.auth-back svg { width: 17px; height: 17px; }

.splash-shell { max-width: 100%; padding-bottom: 0; overflow: hidden; background: #f7ffff; }
.splash-shell .content { padding: 0; }
.splash-screen { position: relative; min-height: 100dvh; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 72% 18%, rgba(0, 123, 255,.22), transparent 28rem), linear-gradient(155deg,#fff 10%,#eafafa 65%,#dff8f8); }
.splash-screen::before, .splash-screen::after { content: ""; position: absolute; width: 60vw; height: 1px; background: linear-gradient(90deg,transparent,rgba(20, 212, 196,.34),transparent); transform: rotate(-28deg); }
.splash-screen::before { top: 22%; left: -15%; }.splash-screen::after { right: -14%; bottom: 18%; }
.splash-content { position: relative; z-index: 2; padding: 32px; text-align: center; animation: splash-in .55s ease-out both; }
.splash-logo { width: 102px; height: 102px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 28px; background: #fff; color: var(--ocean-aqua); box-shadow: 0 20px 45px rgba(11, 29, 54,.14); }
.splash-logo .brand-mark { width: 68px; height: 68px; }
.splash-word { font-family: var(--font-heading); font-size: 32px; font-weight: 800; letter-spacing: -.045em; }.splash-word em { color: var(--pickleup-lime); font-style: normal; }
.splash-tagline { margin: 5px 0 0; color: var(--ocean-slate); font-size: 14px; }
.court-loader { width: 46px; height: 3px; margin: 34px auto 0; overflow: hidden; border-radius: 99px; background: #cdecef; }
.court-loader span { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--ocean-gradient); animation: court-line 1s ease-in-out infinite alternate; }
.splash-fallback { position: absolute; bottom: max(24px,env(safe-area-inset-bottom)); color: var(--ocean-aqua-deep); font-size: 12px; }

.welcome-shell { max-width: 100%; background: #e9f8fa; }
.welcome-shell .content { padding: 0; }
.welcome-page { min-height: 100dvh; display: grid; grid-template-rows: minmax(300px, 56vh) auto; background: #fff; }
.welcome-visual { position: relative; overflow: hidden; padding: max(35px,env(safe-area-inset-top)) 24px 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(155deg,var(--ocean-blue) 0%,var(--ocean-aqua) 100%); }
.welcome-visual::before { content: ""; position: absolute; inset: 0; opacity: .52; background: radial-gradient(circle at 78% 20%,rgba(255,255,255,.5),transparent 20rem), linear-gradient(175deg,transparent 58%,rgba(3,57,77,.28)); }
.welcome-court { position: absolute; inset: 58% -15% -45%; opacity: .55; transform: perspective(520px) rotateX(58deg); border: 3px solid rgba(255,255,255,.7); background: linear-gradient(90deg,transparent 49.7%,rgba(255,255,255,.75) 50%,transparent 50.3%),linear-gradient(transparent 49.7%,rgba(255,255,255,.75) 50%,transparent 50.3%); }
.welcome-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 17px; font-weight: 800; }.welcome-brand .brand-mark{width:34px;height:34px}.welcome-brand em{font-style:normal;color:#D7FF3B}
.welcome-copy { position: relative; z-index: 2; max-width: 420px; padding-bottom: 22px; animation: welcome-up .45s ease-out; }
.welcome-copy h1 { max-width: 350px; margin: 0 0 12px; font-size: clamp(38px,11vw,54px); line-height: 1.03; letter-spacing: -.045em; }
.welcome-copy p { max-width: 390px; margin: 0; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.5; }
.welcome-actions { position: relative; z-index: 3; margin-top: -22px; padding: 26px 20px max(28px,env(safe-area-inset-bottom)); display: grid; gap: 12px; border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -12px 34px rgba(11, 29, 54,.12); }
.welcome-actions .button { width: min(100%, 430px); margin: auto; }
.welcome-note { margin: 6px 0 0; color: var(--ocean-slate); font-size: 11px; text-align: center; }

.auth-state { min-height: calc(100dvh - 52px); padding: 30px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.auth-state .status-icon svg { width: 34px; height: 34px; }
.auth-state h1 { max-width: 420px; }
.auth-state p { max-width: 430px; }
.auth-state form { margin-top: 10px; }
.legal-page { justify-content: flex-start; padding-top: max(26px,env(safe-area-inset-top)); }
.legal-card h2 { margin-top: 24px; font-size: 18px; }.legal-card h3{margin:18px 0 5px;font-size:15px}.legal-card p,.legal-card li{color:#475569;font-size:14px;line-height:1.62}.legal-card ul{padding-left:20px}.legal-meta{margin:0 0 18px;padding:11px 13px;border-radius:12px;background:var(--ocean-soft-aqua);color:var(--ocean-aqua-deep);font-size:12px;font-weight:750}.legal-reader{width:min(100%,680px);height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#f7fbfc}.legal-reader::backdrop{background:rgba(4,30,38,.34)}.legal-reader header{height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;border-bottom:1px solid var(--ocean-line);background:rgba(255,255,255,.96)}.legal-reader header strong{text-align:center}.legal-reader-close{width:44px;height:44px;border:0;background:transparent;color:var(--ocean-ink);font-size:32px;cursor:pointer}.legal-reader iframe{width:100%;height:calc(100% - 58px - env(safe-area-inset-top));border:0;background:#f7fbfc}

/* Court loading experience. The official logo image moves as one unchanged asset. */
.splash-screen{isolation:isolate;position:relative;min-height:100dvh;overflow:hidden;display:block;background:#72c7ed var(--splash-court) center/cover no-repeat}
.splash-screen::before{content:"";position:absolute;z-index:1;inset:0;width:auto;height:auto;background:linear-gradient(180deg,rgba(5,55,72,.04),transparent 48%,rgba(3,44,58,.2));transform:none}
.splash-screen::after{content:"";position:absolute;z-index:1;inset:auto 0 0;height:31%;width:auto;background:linear-gradient(transparent,rgba(3,35,48,.26));transform:none}
.splash-motion{position:absolute;z-index:2;inset:8% 7% 15%;pointer-events:none}
.splash-orbit{position:absolute;left:50%;top:38%;width:34%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);animation:splash-logo-orbit 5.6s linear infinite}
.splash-orbit img{position:absolute;left:50%;top:-27px;width:54px;height:54px;display:block;object-fit:contain;clip-path:inset(2% round 23%);filter:none;transform:translateX(-50%);animation:splash-logo-counter-orbit 5.6s linear infinite}
.splash-ball{position:absolute;left:80%;bottom:7%;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 32% 26%,#e9ff67 0 10%,#D7FF3B 42%,#82b900 100%);box-shadow:inset -3px -4px 6px rgba(65,104,0,.25),0 6px 10px rgba(8,43,51,.2);animation:splash-ball-bounce 1.15s cubic-bezier(.42,0,.58,1) infinite}
.splash-ball i{position:absolute;width:3px;height:3px;border-radius:50%;background:#376e1c}.splash-ball i:nth-child(1){left:5px;top:5px}.splash-ball i:nth-child(2){right:5px;top:6px}.splash-ball i:nth-child(3){left:10px;top:10px}.splash-ball i:nth-child(4){left:5px;bottom:4px}.splash-ball i:nth-child(5){right:4px;bottom:4px}
.splash-ball-shadow{position:absolute;left:79.5%;bottom:5.5%;width:26px;height:7px;border-radius:50%;background:rgba(4,35,44,.3);filter:blur(2px);animation:splash-shadow-travel 1.15s ease-in-out infinite}
.splash-brand-lockup{position:absolute;z-index:4;left:50%;bottom:max(34px,calc(env(safe-area-inset-bottom) + 24px));width:min(88%,360px);padding:14px 20px;border:1px solid rgba(255,255,255,.62);border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 14px 36px rgba(5,55,72,.18);text-align:center;transform:translateX(-50%);backdrop-filter:blur(14px)}
.splash-brand-lockup img{display:block;width:142px;height:42px;margin:0 auto;object-fit:contain}.splash-brand-lockup span{display:block;margin-top:2px;color:var(--ocean-slate);font-size:11px}
.splash-preview-controls{position:absolute;z-index:5;left:50%;bottom:max(8px,env(safe-area-inset-bottom));width:92%;display:flex;align-items:center;justify-content:center;gap:12px;transform:translateX(-50%);color:#fff;font-size:10px;text-shadow:0 1px 3px rgba(0,0,0,.35)}.splash-preview-controls a{color:#fff;font-weight:800}.splash-preview .splash-brand-lockup{bottom:58px}

@keyframes splash-logo-orbit{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes splash-logo-counter-orbit{from{transform:translateX(-50%) rotate(0)}to{transform:translateX(-50%) rotate(-360deg)}}
@keyframes splash-ball-bounce{0%,100%{bottom:7%;transform:translateY(0) rotate(0)}50%{bottom:22%;transform:translateY(-4px) rotate(180deg)}}
@keyframes splash-shadow-travel{0%,100%{opacity:.4;transform:scale(1)}50%{opacity:.12;transform:scale(.55)}}

@keyframes splash-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes court-line { from { transform: translateX(-55%); } to { transform: translateX(65%); } }
@keyframes welcome-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) {
  .welcome-page { width: min(100%,560px); margin: 24px auto; min-height: calc(100dvh - 48px); overflow: hidden; grid-template-rows:minmax(390px,58vh) auto; border-radius:34px; box-shadow:var(--ocean-shadow-float) }
}
@media (max-height: 680px) { .auth-page { justify-content: flex-start; }.welcome-page{grid-template-rows:minmax(300px,52vh) auto}.welcome-copy h1{font-size:36px} }
@media (prefers-reduced-motion:reduce){.splash-orbit,.splash-orbit img,.splash-ball,.splash-ball-shadow{animation:none}.splash-orbit{transform:translate(-50%,-50%)}.splash-ball{left:50%;bottom:13%}.splash-ball-shadow{left:50%;bottom:11%}}
