:root { color-scheme: dark; font-family: var(--ocean-font, "Segoe UI", system-ui, sans-serif); color: var(--ocean-text, #edf4e8); background: var(--ocean-bg, #071c27); font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 16% 38%, #153e423d, transparent 55%), var(--ocean-bg, #071c27); }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ocean-mint, #bcedb1); outline-offset: 5px; }
[hidden] { display: none !important; }
.welcome { max-width: var(--ocean-page-width, 1232px); margin: auto; padding: 0 max(var(--ocean-page-gutter, 24px), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--ocean-page-gutter, 24px), env(safe-area-inset-left)); }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(48px, 8vw, 110px); align-items: center; padding: 56px 0 64px; }
.ocean-intro { min-width: 0; padding-bottom: 12px; }
.school-scene { height: 280px; max-width: 440px; position: relative; margin: 0 0 38px; isolation: isolate; }
.school-scene::before { content: ""; position: absolute; inset: 3% 7%; background: radial-gradient(ellipse, #80c5af1f, transparent 67%); }
.school-ring { position: absolute; border: 1px solid #7baea41c; border-radius: 50%; transform: rotate(-18deg); }
.ring-outer { width: 94%; height: 96%; top: 1%; left: 1%; }
.ring-inner { width: 73%; height: 72%; top: 12%; left: 12%; }
.school-fish { position: absolute; height: auto; object-fit: contain; filter: drop-shadow(0 18px 18px #0002); }
.school-fish-lead { width: 58%; top: 32px; right: 0; transform: rotate(-9deg); }
.school-fish-back { width: 30%; top: 115px; left: 27px; transform: rotate(-7deg); }
.school-fish-small { width: 24%; top: 4px; left: 40px; transform: rotate(5deg); }
.school-bubble { position: absolute; width: 7px; height: 7px; border: 1px solid #bcedb15c; border-radius: 50%; }
.bubble-one { top: 27px; right: 56px; }
.bubble-two { width: 4px; height: 4px; top: 10px; right: 72px; }
.bubble-three { width: 5px; height: 5px; bottom: 42px; left: 12px; }
.scene-caption { position: absolute; bottom: 1px; left: 28px; display: flex; gap: 9px; align-items: center; color: var(--ocean-muted, #9db5bd); font-size: 9px; letter-spacing: 1.8px; }
.scene-caption > span { width: 5px; height: 5px; border-radius: 50%; background: var(--ocean-mint, #bcedb1); }
.eyebrow { color: var(--ocean-mint, #bcedb1); font-size: 10px; letter-spacing: 1.8px; font-weight: 650; margin: 0 0 13px; }
h1 { font-size: clamp(36px, 4vw, 50px); font-weight: 570; line-height: 1.12; letter-spacing: -1.8px; margin: 0 0 20px; }
.intro-copy { font-size: 17px; line-height: 1.8; color: var(--ocean-muted, #9db5bd); margin: 0; }
.waters-note { display: flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--ocean-muted, #9db5bd); font-size: 12px; }
.waters-note img { padding: 3px; background: #16343e; border: 1px solid var(--ocean-line, #2b444d); border-radius: 50%; }
.waters-note img + img { margin-left: -15px; }
.waters-note span { margin-left: 2px; }
.auth-card { border: 1px solid var(--ocean-line, #2b444d); background: linear-gradient(135deg, #142f39, var(--ocean-panel, #102a35)); border-radius: 16px; padding: 32px; box-shadow: 0 24px 72px #0002; }
.auth-card > .eyebrow { font-size: 9px; margin-bottom: 11px; }
h2 { font-size: 27px; font-weight: 600; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.7px; }
#auth-title { font: 700 var(--ocean-title-size, 32px)/1.2 var(--ocean-font); letter-spacing: -.8px; }
.auth-intro { color: var(--ocean-muted, #9db5bd); margin: 0 0 26px; font-size: 13px; line-height: 1.65; }
.auth-tabs { display: flex; padding: 4px; gap: 4px; border: 1px solid var(--ocean-line, #2b444d); background: #071c275c; border-radius: 10px; margin-bottom: 24px; }
.auth-tabs button { width: 50%; min-height: 42px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ocean-muted, #9db5bd); padding: 9px 8px; font-size: 13px; }
.auth-tabs button[aria-selected="true"] { color: var(--ocean-text, #edf4e8); background: #29434b; border-color: #3b565d; font-weight: 650; box-shadow: 0 2px 6px #0001; }
form { display: grid; gap: 19px; }
label { display: grid; gap: 9px; font-size: 12px; font-weight: 600; }
input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #3a535d; background: #091f2a; color: var(--ocean-text, #edf4e8); border-radius: 10px; padding: 12px 14px; font-size: 16px; }
input:focus { outline: 2px solid var(--ocean-mint, #bcedb1); outline-offset: 2px; border-color: transparent; }
input:autofill { box-shadow: 0 0 0 1000px #102a35 inset; -webkit-text-fill-color: #edf4e8; }
.submit { min-height: 48px; border: 1px solid var(--ocean-mint, #bcedb1); border-radius: 10px; color: var(--ocean-bg, #071c27); background: var(--ocean-mint, #bcedb1); font-weight: 750; font-size: 13px; margin-top: 3px; }
.submit:hover { background: #d2f6c8; }
small { color: var(--ocean-muted, #9db5bd); font-size: 11px; line-height: 1.5; margin-top: -11px; }
#auth-status { font-size: 13px; line-height: 1.55; color: #f1cd8d; min-height: 20px; margin: 13px 0 0; overflow-wrap: anywhere; }
.guest-divider { display: flex; align-items: center; gap: 12px; color: var(--ocean-muted, #9db5bd); font-size: 11px; margin: 7px 0 17px; }
.guest-divider::before, .guest-divider::after { content: ""; height: 1px; flex: 1; background: var(--ocean-line, #2b444d); }
.guest-link { display: grid; place-items: center; min-height: 47px; padding: 12px; border: 1px solid #405d65; border-radius: 10px; color: var(--ocean-text, #edf4e8); text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; }
.guest-link:hover { border-color: var(--ocean-mint, #bcedb1); background: #bcedb10a; }
.connection-note { color: var(--ocean-muted, #9db5bd); font-size: 11px; line-height: 1.65; margin: 17px 0 0; }
footer { display: flex; justify-content: space-between; gap: 20px; color: var(--ocean-muted, #9db5bd); border-top: 1px solid #2b444d80; font-size: 11px; padding-top: 22px; }
noscript p { max-width: 440px; margin: 24px auto; padding: 16px; color: #f1cd8d; }
@media (max-width: 900px) {
    .welcome-grid { gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); }
    .school-scene { height: 225px; }
    .school-fish-lead { top: 35px; }
    .school-fish-back { left: 5px; top: 100px; }
    .auth-card { padding: 26px; }
    h1 { font-size: 38px; }
}
@media (max-width: 760px) {
    .welcome { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .welcome-grid { grid-template-columns: 1fr; gap: 28px; padding: 30px 0 32px; }
    .ocean-intro { position: relative; padding: 0 96px 0 0; }
    .school-scene { position: absolute; width: 104px; height: 100px; right: -8px; top: 0; margin: 0; }
    .school-fish-lead { width: 104px; top: -2px; right: 0; }
    .school-fish-back, .school-fish-small, .school-ring, .scene-caption, .bubble-three, .waters-note { display: none; }
    .bubble-one { top: 0; right: 15px; width: 5px; height: 5px; }
    .bubble-two { top: -8px; right: 27px; }
    .eyebrow { font-size: 8px; letter-spacing: 1.3px; margin-bottom: 10px; }
    h1 { font-size: 30px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 12px; }
    .intro-copy { font-size: 12px; line-height: 1.75; }
    .intro-copy br { display: none; }
    .auth-card { padding: 25px 23px; }
    h2 { font-size: 25px; }
    .auth-intro { margin-bottom: 23px; }
    footer { font-size: 10px; padding-top: 20px; }
}
@media (max-width: 360px) {
    .welcome { padding-left: 16px; padding-right: 16px; }
    .auth-card { padding: 23px 19px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
