body { background: radial-gradient(ellipse at 12% 35%, #23414a66, transparent 48%), radial-gradient(ellipse at 90% 70%, #5c427326, transparent 48%), #101b2d; min-height: 100dvh; }
.auth-container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.auth-header { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.auth-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; min-width: 0; }
.auth-brand span { overflow-wrap: anywhere; }
.auth-brand img { flex: none; }
.back-link { color: var(--muted); text-decoration: none; font-size: .875rem; padding-block: .75rem; }
.back-link:hover { color: var(--text); }
.auth-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; padding-block: 2rem 3rem; }
.auth-story { min-width: 0; position: sticky; top: 3rem; padding-top: 2.5rem; }
.product-context { font-size: .875rem; color: #c3d6d8; margin-bottom: 1.5rem; }
.auth-story h1 { font-size: clamp(2.5rem, 4.3vw, 3.65rem); line-height: 1.15; font-weight: 500; letter-spacing: -.055em; }
.auth-story h1 span { color: #c1e6df; background: var(--spectrum); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.story-description { max-width: 24rem; color: var(--muted); margin-top: 1.5rem; line-height: 1.9; font-size: .9375rem; }
.access-object { height: 290px; position: relative; perspective: 1000px; margin-block: 1.5rem; }
.access-halo { width: 360px; height: 360px; position: absolute; top: -35px; left: calc(50% - 180px); }
.access-card { position: absolute; inset: 30px 12% 25px 5%; border-radius: 24px; border: 1px solid transparent; background: linear-gradient(120deg, #39545d, #1c3043 35%, #17243b 75%, #323047) padding-box, var(--edge) border-box; transform: rotateY(-15deg) rotateX(8deg) rotateZ(-8deg); box-shadow: inset 1px 1px 0 #d8faee44, 3px 7px 0 #152438, 5px 9px 0 #60768144, 12px 26px 36px -12px #030a16dc; overflow: hidden; }
.access-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, #d1f4e80a 30.2%, #d1f4e81a 50%, transparent 50.2%); }
.access-mark { position: absolute; top: 25px; left: 25px; }
.access-emblem { position: absolute; top: 25px; right: 25px; width: 84px; height: 84px; border-radius: 50%; border: 1px solid #adcccb30; display: grid; place-items: center; box-shadow: inset 1px 1px 0 #ffffff20, 0 0 0 15px #abc7c006; background: linear-gradient(145deg, #718e8840, #182c40); color: #d3eee4; }
.access-emblem .icon { width: 32px; height: 32px; stroke-width: 1; }
.access-grooves { display: flex; gap: 10px; position: absolute; bottom: 44px; left: 28px; right: 28px; }
.access-grooves span { height: 4px; width: 24%; background: linear-gradient(90deg, #b0c8c080, #8799af20); border-radius: 8px; }
.access-edge { position: absolute; inset: auto 28px 28px; height: 1px; background: linear-gradient(90deg, #c2e7da44, transparent); }
.story-footnote { display: flex; gap: 1rem; align-items: flex-start; color: var(--muted); max-width: 25rem; font-size: .8rem; }
.story-footnote .icon { color: #b4dfd5; margin-top: 3px; }
.auth-card { min-width: 0; padding: 2.5rem; border: 1px solid transparent; border-radius: 24px; background: linear-gradient(135deg, #26374b, #18263b 36%, #121e31 90%) padding-box, var(--edge) border-box; box-shadow: var(--shadow-raised); }
.auth-progress { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; font-size: .75rem; color: var(--muted); }
.auth-progress li { display: flex; align-items: center; gap: .5rem; }
.auth-progress li span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #71829a; border-radius: 50%; font-family: var(--mono); flex: none; }
.auth-progress [aria-current='step'] { color: var(--text); }
.auth-progress [aria-current='step'] span { color: #b0ffec; border-color: #71c9bb; background: #214246; }
.auth-progress .completed span { color: var(--positive); border-color: #00e87a66; }
.auth-card h2 { font-size: 1.8rem; letter-spacing: -.045em; font-weight: 500; }
.auth-intro { color: var(--muted); font-size: .875rem; margin-block: .75rem 1.75rem; line-height: 1.8; }
.auth-intro strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-card label { font-size: .875rem; }
.auth-card .field + .field { margin-top: 1.15rem; }
.optional { color: var(--muted); font-size: .8rem; font-weight: 400; }
.auth-card input { min-height: 48px; font-size: 1rem; }
.auth-card input:focus-visible { outline-offset: 3px; }
.field-help { font-size: .75rem; line-height: 1.7; color: var(--muted); }
.password-input { position: relative; }
.password-input input { padding-right: 4.5rem; }
.password-toggle { position: absolute; top: 2px; bottom: 2px; right: 3px; border: 0; border-radius: 7px; background: transparent; color: #c5d7df; font-size: .75rem; min-width: 56px; }
.password-toggle:hover { background: #ffffff08; }
.strength-bars { display: flex; gap: 5px; }
.strength-bars span { height: 3px; flex: 1; border-radius: 5px; background: #64758b55; }
.strength-bars span.filled { background: #8be1cf; }
.ref-status { font-size: .8rem; }
.ref-status.invalid { color: var(--negative); background: #0f192b; padding: .1em .3em; border-radius: 4px; }
.ref-status.valid { color: var(--positive); }
.consent-field { margin-top: 1.5rem; }
.consent { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.consent input { margin: .2rem 0 0; min-height: 20px; }
.auth-card .consent { font-size: .75rem; color: var(--muted); line-height: 1.8; }
.auth-submit { width: 100%; margin-top: 1.5rem; min-height: 52px; }
.auth-switch { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 1.75rem; }
.auth-switch a { color: var(--text); margin-left: .25rem; }
.form-alert { padding: .85rem 1rem; border-radius: 10px; border: 1px solid #ff507055; background: #10192c; color: #ff94a8; font-size: .875rem; line-height: 1.7; margin-block: 1rem; }
.verification-symbol { width: 56px; height: 56px; border-radius: 16px; color: #c1e9df; display: grid; place-items: center; background: linear-gradient(135deg, #385b5e, #233148); box-shadow: inset 1px 1px 0 #cee7df44, 0 10px 18px -10px #0009; margin-block: 2rem 1.5rem; }
.verification-symbol .icon { width: 28px; height: 28px; }
.otp-label { display: block; margin-bottom: .75rem; }
.auth-card .otp { gap: .6rem; }
.auth-card .otp input { width: 100%; flex: 1; min-height: 58px; font-size: 1.5rem; }
#otp-help { margin-top: .9rem; }
.resend-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; margin-top: 1.5rem; font-size: .8rem; }
.text-button { border: 0; background: transparent; color: var(--text); text-decoration: underline; text-underline-offset: .3em; padding: .6rem 0; min-height: 44px; }
.change-email { font-size: .8rem; width: 100%; margin-top: 2rem; }
.success-symbol { color: var(--positive); }
.success-panel { padding-bottom: 1rem; }
.auth-footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem 2rem; font-size: .75rem; color: var(--muted); }
.auth-footer > div { display: flex; gap: 1.5rem; }
.auth-dev { padding-block: 1rem 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: .75rem; color: var(--muted); }
.auth-dev select { width: auto; max-width: 100%; font-size: .8rem; }
@media (max-width: 900px) { .auth-layout { gap: 2.5rem; grid-template-columns: .9fr 1.1fr; } .auth-card { padding: 1.75rem; } .auth-story h1 { font-size: 2.65rem; } }
@media (max-width: 760px) {
  .auth-container { width: min(520px, calc(100% - 40px)); }
  .auth-header { min-height: 80px; }
  .auth-layout { grid-template-columns: 1fr; padding-top: .75rem; gap: 1.75rem; }
  .auth-story { position: static; padding-top: 0; }
  .product-context, .access-object, .story-footnote { display: none; }
  .auth-story h1 { font-size: 2rem; line-height: 1.2; }
  .auth-story h1 br { display: none; }
  .story-description { font-size: .875rem; margin-top: .75rem; max-width: none; }
  .auth-card { padding: 1.5rem; border-radius: 20px; }
  .auth-card h2 { font-size: 1.55rem; }
  .auth-progress { gap: 1rem; font-size: .7rem; }
  .auth-card .otp { gap: .35rem; }
  .auth-card .otp input { min-height: 50px; }
  .auth-footer { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .access-card { transform: none; } }
@media (forced-colors: active) { .auth-story h1 span { background: none; -webkit-text-fill-color: currentColor; } .auth-card { border: 1px solid CanvasText; } }

/* Inline login recovery; shared registration styles remain unchanged. */
.recovery-panel { margin-top: 1.5rem; padding: 1.25rem; border-radius: 14px; background: linear-gradient(135deg, #273a4b80, #0e1929b3); box-shadow: inset 1px 1px 0 #d0e9e014; }
.recovery-panel h3 { font-size: 1.125rem; font-weight: 500; }
.recovery-panel label { display: block; margin-block: 1rem .5rem; }
.recovery-success { color: var(--text); font-size: .875rem; line-height: 1.8; }
#login-submit { margin-top: .5rem; }
#forgot-open { font-size: .8rem; }
