.member-auth {margin: 0; min-height: 100dvh; padding: 0; background: var(--ui-bg); color: var(--ui-text); font: 16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.member-auth * {box-sizing: border-box;}
.member-auth a {color: var(--ui-accent); text-underline-offset: 4px;}
.auth-header {height: 90px; padding-inline: clamp(22px,5vw,80px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ui-line);}
.auth-header img {width: 155px; height: auto; display: block;}
.auth-layout {max-width: 1440px; margin: auto; min-height: calc(100dvh - 90px); display: grid; grid-template-columns: 1fr 1fr;}
.auth-story {display: flex; align-items: end; padding: clamp(32px,5vw,80px); position: relative; isolation: isolate; background: linear-gradient(160deg,#173b3a,#151515);}
.auth-story h2 {font-size: clamp(32px,3.6vw,54px); line-height: 1.15; letter-spacing: -.035em; max-width: 14ch; margin: 22px 0; text-wrap: balance;}
.auth-story p {max-width: 43ch; color: #eee;}
.auth-story .ui-eyebrow {color: #fff;}
.auth-panel {padding: 58px clamp(24px,5vw,90px) 30px; align-self: center; width: 100%; max-width: 660px; margin: auto;}
.auth-heading h1 {font-size: clamp(28px,3vw,40px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance;}
.auth-heading p {color: var(--ui-muted); margin-bottom: 30px;}
.auth-form {display: grid; gap: 10px;}
.auth-form label:not(.auth-terms) {font-weight: 600; font-size: 14px; margin-top: 8px; color: var(--ui-text);}
.auth-form input:not([type=checkbox]):not([type=hidden]) {font: inherit; color: var(--ui-text); background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 12px; width: 100%; min-height: 52px; padding: 12px 15px;}
.auth-form input[readonly] {color: var(--ui-muted); background: transparent;}
.auth-password {position: relative;}
.auth-password input {padding-right: 55px !important;}
.auth-password button {position: absolute; right: 5px; top: 5px; width: 44px; height: 42px; border: 0; border-radius: 9px; color: var(--ui-accent); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;}
/* The icon follows the toggle: an open eye while hidden, a crossed-out one while the password is visible. */
.auth-password button .auth-eye-off, .auth-password button[aria-pressed=true] .auth-eye {display: none;}
.auth-password button[aria-pressed=true] .auth-eye-off {display: block;}
.auth-forgot {justify-self: end; font-size: 14px; margin: 6px 0 10px;}
.auth-form .ui-button {width: 100%; margin-top: 12px;}
.auth-terms {display: flex; align-items: start; gap: 12px; font-size: 14px; line-height: 1.6; padding: 14px 0 4px; color: var(--ui-muted);}
.auth-terms input {appearance: auto; position: static; opacity: 1; width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0; accent-color: var(--ui-accent);}
.auth-feedback {padding: 14px 18px; border: 1px solid #26a69a70; border-radius: 12px; color: #b3efe9; background: #26a69a12; line-height: 1.6;}
.auth-feedback.is-error {color: #ffbfbd; border-color: #a34442; background: #501f2026;}
.auth-switch {text-align: center; color: var(--ui-muted); margin-top: 26px; font-size: 15px;}
.auth-switch a {font-weight: 600; display: inline-block;}
.auth-social {display: flex; gap: 12px; margin-top: 20px;}
.auth-social a {flex: 1;}
.auth-footer {margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ui-line); display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 12px;}
.auth-footer a {color: var(--ui-muted);}
@media(min-width:901px) {.auth-story {background: linear-gradient(180deg,#0002,#000b 75%),url('../img/hero-bg-4.jpg') 63% center/cover;}}
@media(max-width:900px) {.auth-layout {display: block;} .auth-story {display: none;} .auth-header {height: 76px;} .auth-header img {width: 135px;} .auth-panel {max-width: 520px; padding-top: 38px;} .auth-footer {margin-top: 32px; padding-bottom: env(safe-area-inset-bottom);}}
@media(prefers-reduced-motion:reduce) {.member-auth * {scroll-behavior: auto;}}
