.auth-page { position: relative; min-height: 100svh; overflow: hidden; background: var(--cream); color: var(--navy); }
.auth-page::before, .auth-page::after { display: none; }
.auth-page > * { position: relative; z-index: 1; }
.auth-content { width: min(100%, 52rem); margin: 0 auto; padding: 3rem 1rem 2rem; text-align: center; }
.back-button { position: absolute; top: 1.5rem; left: 1rem; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.65); color: var(--navy); cursor: pointer; }
.back-button svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }
.auth-brand { justify-content: center; margin-bottom: 1.25rem; }
.auth-brand .brand-name { font-size: clamp(3.1rem, 12vw, 5.3rem); }
.auth-heading h1 { margin: 0; font-size: clamp(2.3rem, 8vw, 4.2rem); line-height: 1.05; letter-spacing: -.06em; }
.auth-heading h1:focus { outline: none; }
.auth-heading p { margin: .75rem 0 0; color: var(--muted); font-size: clamp(1rem, 3.8vw, 1.45rem); line-height: 1.25; }
.auth-hero { height: clamp(8rem, 27vw, 15rem); margin-top: .4rem; overflow: hidden; }
.auth-mascot { width: min(100%, 28rem); height: 165%; object-fit: contain; object-position: center bottom; }
.auth-card { position: relative; margin: -1px auto 0; padding: 2rem 1rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-card); }
.auth-card::before { content: ''; position: absolute; inset: -2px 0 auto; height: 3px; border-radius: 50%; background: rgba(255,255,255,.9); }
.auth-card form { display: grid; gap: .9rem; }
.field { text-align: left; }
.field-control { position: relative; display: flex; align-items: center; min-height: 3.7rem; border: 2px solid #d7d8de; border-radius: 1.6rem; background: rgba(255,255,255,.2); }
.field-control { border-radius: 10px; background: var(--white); }
.field-control > svg { width: 1.7rem; height: 1.7rem; margin-left: 1rem; flex: 0 0 auto; fill: none; stroke: #5f6670; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.field-control input { min-width: 0; width: 100%; border: 0; outline: 0; padding: .75rem .9rem; background: transparent; color: var(--navy); font: inherit; font-size: 1rem; }
.field-control input::placeholder { color: #66707d; opacity: 1; }
.password-toggle { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-right: .45rem; border: 0; border-radius: 50%; background: transparent; color: #5f6670; cursor: pointer; }
.password-toggle svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.field--error .field-control { border-color: #c94f42; }
.field-error { min-height: 1rem; margin: .25rem .9rem 0; color: #b33e32; font-size: .8rem; }
.auth-submit { min-height: 3.8rem; margin-top: .25rem; border: 0; border-radius: var(--radius-pill); background: var(--coral); color: white; box-shadow: var(--shadow-button); font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.auth-submit:hover { background: var(--coral-dark); }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .1rem .3rem .25rem; color: var(--navy); font-size: .95rem; }
.login-options label { display: flex; align-items: center; gap: .35rem; }
.login-options input { width: 1.2rem; height: 1.2rem; accent-color: var(--coral); }
.login-options a { color: var(--coral-dark); font-weight: 700; }
.auth-status { min-height: 1.2rem; margin: .5rem 0 0; color: var(--muted); font-size: .85rem; }
.auth-switch { display: grid; gap: .55rem; margin-top: 1.25rem; color: var(--muted); font-size: 1rem; }
.auth-switch button { min-height: 3.25rem; border: 2px solid #a8b7c8; border-radius: var(--radius-pill); background: transparent; color: var(--navy); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.auth-switch button:hover { border-color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-page button:focus-visible, .auth-page a:focus-visible, .auth-page input:focus-visible { outline: 3px solid rgba(72,217,190,.9); outline-offset: 3px; }
@media (min-width: 600px) { .auth-content { padding-top: 3.5rem; } .auth-card { padding: 2.3rem 2.5rem 1.8rem; } .auth-card form { gap: 1rem; } .field-control { min-height: 4.1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
