.auth-shell { min-height: 100svh; display: flex; flex-direction: column; }
.auth-shell [hidden] { display: none !important; }
.auth-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 27px clamp(24px, 6.5vw, 104px); }
.auth-back { color: var(--muted); font-size: 13px; padding: 8px 0; }
.auth-back span { margin-right: 12px; }
.auth-main { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(64px, 10vw, 152px); width: min(1120px, calc(100% - 112px)); margin: 36px auto 72px; }
.auth-story { position: relative; align-self: center; padding-top: 12px; }
.auth-eyebrow { font-size: 12px; color: var(--brand); letter-spacing: .12em; margin-bottom: 22px; }
.auth-story h1 { font-size: clamp(42px, 4.4vw, 62px); line-height: 1.4; font-weight: 350; letter-spacing: .08em; }
.auth-story-copy { font-size: 14px; line-height: 2; color: var(--muted); margin-top: 22px; }
.auth-photo { width: 112%; max-width: none; height: 320px; margin: 10px 0 -8px -10%; object-fit: contain; }
.auth-image-note { font-size: 10px; color: var(--muted); }
.auth-panel { min-width: 0; max-width: 400px; width: 100%; justify-self: end; }
.auth-panel h2 { font-size: 32px; line-height: 1.4; letter-spacing: .04em; }
.auth-panel .auth-eyebrow { margin-bottom: 13px; }
.auth-subtitle { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 16px 0 30px; }
.auth-notice { background: var(--surface); border-left: 2px solid var(--brand); padding: 13px 16px; font-size: 12px; line-height: 1.9; color: var(--muted); margin-bottom: 25px; }
.auth-panel fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.auth-panel fieldset:disabled { opacity: .65; }
.auth-panel label { display: block; font-size: 13px; margin-bottom: 10px; }
.auth-panel input { font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 100%; height: 54px; padding: 13px 16px; outline-offset: 4px; min-width: 0; }
.auth-panel input::placeholder { color: var(--muted); font-size: 14px; letter-spacing: 0; }
.auth-panel input:focus-visible { outline: 2px solid var(--brand); }
.auth-panel input[aria-invalid=true] { border-color: #b95768; }
.phone-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.phone-field:focus-within { outline: 2px solid var(--brand); outline-offset: 4px; }
.phone-field:has([aria-invalid=true]) { border-color: #b95768; }
.phone-field > span { font-size: 14px; padding: 0 16px; border-right: 1px solid var(--line); line-height: 22px; }
.phone-field input { border: 0; }
.phone-field input:focus-visible { outline: none; }
.field-hint { font-size: 11px; color: var(--muted); margin: 9px 0 24px; line-height: 1.7; }
.code-label { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.auth-text-button { padding: 8px 0; background: transparent; color: var(--brand-dark); font-size: 12px; min-height: 40px; }
.auth-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
#code { letter-spacing: .24em; }
.auth-panel .auth-agreement { display: flex; gap: 10px; align-items: flex-start; margin: 25px 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.auth-agreement input { flex: 0 0 17px; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--brand-dark); }
.auth-agreement a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.auth-submit { width: 100%; min-height: 50px; font-size: 14px; }
.auth-panel button:disabled { cursor: not-allowed; transform: none; }
.auth-panel .auth-text-button:disabled { color: var(--muted); text-decoration: none; }
.auth-resend { display: block; width: 100%; margin-top: 12px; }
.auth-session-note { margin-top: 24px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.auth-feedback, .auth-error { font-size: 12px; margin-top: 14px; line-height: 1.9; }
.auth-feedback:empty, .auth-error:empty { margin: 0; }
.auth-feedback { color: var(--brand-dark); }
.auth-error { color: #9c3347; }
html[data-theme=dark] .auth-error { color: #f1a6b6; }
.account-next { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 25px 0; }
.account-next h3 { font-size: 17px; }
.account-next ul { padding-left: 1.2em; font-size: 13px; line-height: 2.2; color: var(--muted); }
.account-next p { font-size: 12px; color: var(--muted); margin-top: 14px; }
.account-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 30px 0 18px; }
.account-controls .button { width: 100%; }
.auth-footer { text-align: center; color: var(--muted); font-size: 10px; padding: 20px 24px 26px; line-height: 1.8; }
.auth-footer nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; margin: 10px 0; }
.auth-footer nav a, .auth-footer button { padding: 6px 0; font-size: 11px; background: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .auth-main { width: calc(100% - 64px); gap: 48px; } .auth-story h1 { font-size: 42px; } .auth-photo { height: 260px; } }
@media (max-width: 680px) {
  .auth-header { padding: 19px 24px; } .auth-back { font-size: 12px; }
  .auth-main { grid-template-columns: 1fr; width: min(400px, calc(100% - 48px)); margin: 30px auto 42px; gap: 34px; }
  .auth-story { padding: 0; } .auth-story h1 { font-size: 31px; } .auth-story h1 br { display: none; }
  .auth-story .auth-eyebrow, .auth-story-copy, .auth-photo, .auth-image-note { display: none; }
  .auth-panel h2 { font-size: 26px; } .auth-subtitle { margin-bottom: 24px; }
  .auth-footer { padding-bottom: 24px; } .auth-footer nav { gap: 8px 18px; }
}
