.auth-page { background: #f5f8ff; }
.auth-page [hidden] { display: none !important; }
.auth-header { min-height: 96px; display: flex; align-items: center; gap: 32px; padding: 12px 48px; color: white; background: var(--navy); border-bottom: 1px solid #ffffff14; }
.auth-header .brand { width: 174px; }
.auth-home { margin-left: auto; padding: 0 18px; font-size: 13px; color: #bac9e0; min-height: 44px; display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); border-radius: 6px;}
.auth-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: calc(100dvh - 96px); }
.auth-visual { position: relative; display: flex; align-items: center; overflow: hidden; background: var(--navy); color: white; padding: 72px 64px; }
.auth-visual > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 62% center; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #06122566, #061225d9); }
.auth-visual-copy { position: relative; z-index: 1; max-width: 540px; }
.auth-visual-copy .eyebrow { color: var(--cyan); }
.auth-visual-copy h2 { font-size: 44px; line-height: 1.2; word-break: normal; }
.auth-visual-copy > p:last-child { font-size: 18px; color: #c4d4ed; margin-top: 24px; }
.auth-visual-foot { position: absolute; z-index: 1; left: 64px; right: 40px; bottom: 40px; display: flex; align-items: center; gap: 18px; font-weight: 800; font-size: 15px; }
.auth-visual-foot span { color: #b1c4e0; font-size: 11px; font-weight: 400; }
.auth-workspace { display: flex; align-items: center; justify-content: center; padding: 48px 64px 28px; }
.auth-content { width: 100%; max-width: 480px; }
.auth-content h1 { margin: 0; color: var(--navy); font-size: 34px; line-height: 1.25; font-weight: 800; word-break: keep-all; }
.auth-content .section-kicker { color: var(--violet); font-size: 11px; margin-bottom: 12px; }
.auth-intro { color: #60718d; margin: 12px 0 28px; font-size: 16px; line-height: 1.5; }
.auth-field { margin-bottom: 20px; min-width: 0; }
.auth-field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 8px; color: #293c57; }
.auth-field input { width: 100%; min-width: 0; height: 48px; border: 1px solid #bccadd; border-radius: 5px; color: #142842; background: white; padding: 0 14px; font: inherit; font-size: 16px; }
.auth-field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.auth-field input[aria-invalid="true"] { border-color: #b83249; }
.password-input { position: relative; }
.password-input input { padding-right: 48px; }
.password-toggle { position: absolute; inset: 2px 2px 2px auto; width: 44px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.password-toggle img { width: 20px; height: 20px; opacity: 0.6; }
.password-toggle:hover { background: #eaf0fc; }
.auth-text-button { color: var(--blue); border: 0; background: transparent; padding: 0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.forgot-row { display: flex; justify-content: flex-end; margin: -10px 0 20px; }
.forgot-row .auth-text-button { min-height: 36px; }
.auth-submit { min-height: 48px; width: 100%; border: 0; border-radius: 5px; background: var(--blue); color: white; font: inherit; font-weight: 800; font-size: 15px; padding: 12px 20px; cursor: pointer; transition: background 160ms ease; }
.auth-submit:hover { background: #1851cb; }
.auth-submit:disabled { background: #738fc2; cursor: wait; }
.auth-alternate { margin: 24px 0 0; font-size: 13px; text-align: center; color: #5d708e; line-height: 1.8; }
.auth-alternate a, .auth-inline-link { color: var(--blue); font-weight: 800; margin-left: 7px; }
.registration-preview { border-left: 2px solid var(--violet); padding-left: 12px; color: #657a99; font-size: 12px; line-height: 1.6; margin: 0 0 22px; }
.registration-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 28px; border-bottom: 1px solid #c9d6e8; }
.registration-tabs button { min-height: 64px; border: 0; background: transparent; color: #788aa5; text-align: left; cursor: pointer; padding: 8px 6px 12px; border-bottom: 2px solid transparent; }
.registration-tabs button[aria-selected="true"] { border-bottom-color: var(--blue); color: #234f9f; }
.registration-tabs span { display: block; font-size: 11px; margin-bottom: 8px; }
.registration-tabs strong { font-size: 12px; line-height: 1.3; display: block; overflow-wrap: anywhere; }
.referral-confirm, .remember-option { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #536986; min-height: 44px; line-height: 1.5; }
.referral-confirm { margin: 16px 0 24px; }
.referral-confirm input, .remember-option input { accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.step-actions { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.auth-back { min-width: 76px; min-height: 44px; color: #536986; background: transparent; border: 1px solid #bccadd; border-radius: 5px; font: inherit; font-size: 13px; cursor: pointer; }
.activation-heading { font-size: 23px; margin-bottom: 14px; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 24px; }
.login-options button { min-height: 44px; }
.auth-footer { border-top: 1px solid #dce4f0; margin-top: 40px; padding-top: 20px; color: #496181; font-size: 11px; display: flex; gap: 18px; align-items: center; }
.auth-footer span { color: #7587a2; font-size: 10px; }
.field-error { color: #a2263d; font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
.field-hint { color: #7587a2; font-size: 11px; margin: 7px 0 0; line-height: 1.5; }
.form-error { color: #93253c; background: #fff0f2; border-left: 2px solid #c13955; padding: 12px 14px; margin: 0 0 16px; font-size: 13px; line-height: 1.6; }
.referral-input { display: flex; gap: 8px; }
.referral-input button { border: 1px solid #bfcee6; border-radius: 5px; min-width: 76px; background: #eaf0fc; font: inherit; font-size: 13px; font-weight: 800; color: #234e91; cursor: pointer; }
.referrer-line { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 9px; font-size: 11px; line-height: 1.5; color: #6d7f99; }
.referrer-line strong { font-weight: 400; overflow-wrap: anywhere; }
.referrer-line.is-verified strong { color: #226b50; }
.auth-password-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.auth-consents { display: grid; gap: 10px; margin: 0 0 24px; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 9px; font-size: 12px; color: #4a5e7b; line-height: 1.6; }
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.consent-row label { cursor: pointer; }
.consent-row .auth-text-button { font-size: 12px; line-height: 1.6; }
.auth-dialog { width: min(460px, calc(100% - 32px)); padding: 52px 28px 32px; border: 0; border-radius: 8px; background: #f5f8ff; color: var(--ink); }
.auth-dialog::backdrop { background: #061225b3; backdrop-filter: blur(4px); }
.auth-dialog h2, .verification-panel h2 { font-size: 28px; line-height: 1.3; }
.auth-dialog > p { color: #60718d; line-height: 1.7; font-size: 14px; margin: 18px 0 24px; }
.verification-email { color: #294d80; overflow-wrap: anywhere; font-size: 14px; }
.resend-button { margin: 20px 0; min-height: 44px; }
body[data-auth-page="register"] .auth-workspace { padding-top: 36px; padding-bottom: 24px; }
body[data-auth-page="register"] .auth-footer { margin-top: 28px; }
body[data-auth-page="register"] .auth-field { margin-bottom: 16px; }
@media (max-width: 1100px) {
  .auth-visual { padding: 48px 36px; }
  .auth-visual-copy h2 { font-size: 36px; }
  .auth-visual-foot { left: 36px; }
  .auth-workspace { padding: 40px 36px 28px; }
  .auth-header { padding: 12px 32px; }
  .auth-content h1 { font-size: 30px; }
}
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-workspace { align-items: flex-start; padding: 48px 32px 32px; }
  .auth-content { max-width: 480px; }
}
@media (max-width: 520px) {
  .auth-header { min-height: 84px; padding: 12px 20px; gap: 12px; }
  .auth-header .brand { width: 140px; }
  .auth-header .language-switch { margin-left: auto; }
  .auth-home { display: none; }
  .auth-layout { min-height: calc(100dvh - 84px); }
  .auth-workspace, body[data-auth-page="register"] .auth-workspace { padding: 36px 24px 28px; }
  .auth-content h1 { font-size: 30px; }
  .auth-password-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-field { margin-bottom: 20px; }
  .auth-consents { gap: 14px; }
  .consent-row { font-size: 13px; }
  .consent-row .auth-text-button { font-size: 13px; }
  .auth-alternate { font-size: 14px; }
}
