.rd-auth-page { min-height: 100svh; display: flex; flex-direction: column; background: #f5f7fc; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; max-width: 1160px; }
.auth-brand { display: flex; align-items: center; gap: .75rem; }
.auth-brand-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; background: var(--rd-primary); border-radius: 14px; }
.auth-brand strong { display: block; font-size: 1rem; color: var(--rd-primary); font-weight: 800; }
.auth-brand small { display: block; color: var(--rd-text-secondary); font-size: .625rem; margin-top: .125rem; }
.auth-back { display: inline-flex; align-items: center; gap: .625rem; color: var(--rd-muted-strong); font-size: .75rem; min-height: 44px; }
.auth-back:hover { color: var(--rd-accent); }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 1.5rem 2rem; }
.auth-section { max-width: 1080px; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: 0; border: 1px solid var(--rd-border); border-radius: 28px; overflow: hidden; background: var(--rd-surface); box-shadow: 0 16px 60px rgb(15 39 72 / 5%); }
.auth-story { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 3rem; position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 100% 0%,#2259ad,transparent 65%),linear-gradient(145deg,#0b3a82,#092c64); }
.auth-story::before { content: ''; position: absolute; z-index: -1; width: 320px; height: 320px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; inset-inline-end: -180px; bottom: -120px; box-shadow: 0 0 0 60px rgb(255 255 255 / 3%),0 0 0 120px rgb(255 255 255 / 2%); }
.auth-story-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / 3%) 1px,transparent 1px),linear-gradient(90deg,rgb(255 255 255 / 3%) 1px,transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(180deg,#000,transparent 85%); }
.auth-overline { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; color: #c8dcff; border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 5%); padding: .5rem .75rem; border-radius: 999px; }
.auth-story h2 { font-size: 2rem; line-height: 1.85; font-weight: 750; margin-top: 1.5rem; letter-spacing: -.5px; }
.auth-story > p { font-size: .8125rem; line-height: 2.2; margin-top: 1rem; color: #d7e5ff; max-width: 340px; }
.auth-account-preview { width: 100%; padding: 1.25rem; margin-top: 2.5rem; border: 1px solid rgb(255 255 255 / 20%); border-radius: 20px; background: rgb(255 255 255 / 8%); box-shadow: 0 12px 36px rgb(0 0 0 / 8%); }
.auth-preview-user { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid rgb(255 255 255 / 16%); padding-bottom: 1rem; }
.auth-preview-user > span:last-child { color: #93c5fd; margin-inline-start: auto; }
.auth-preview-avatar { display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / 13%); border-radius: 14px; width: 44px; height: 44px; }
.auth-preview-user strong { display: block; font-size: .8125rem; font-weight: 600; }
.auth-preview-user small { display: block; font-size: .625rem; color: #bcd2f5; margin-top: .375rem; }
.auth-preview-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin-top: 1.25rem; }
.auth-preview-links > span { display: flex; flex-direction: column; align-items: center; gap: .625rem; font-size: .625rem; color: #dbeafe; }
.auth-story-foot { display: flex; align-items: center; gap: .5rem; font-size: .6875rem; margin-top: 2rem; color: #bcd2f5; }
.auth-card { min-width: 0; padding: 3rem 2.75rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.auth-card-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid #dce7fb; border-radius: 18px; background: var(--rd-accent-soft); color: var(--rd-accent); }
.auth-card-step { font-size: .6875rem; color: var(--rd-text-secondary); }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.8; }
.auth-description { font-size: .8125rem; color: var(--rd-muted-strong); line-height: 2; margin-top: .75rem; margin-bottom: 2rem; }
.auth-form { margin-top: .25rem; }
.auth-phone-input { position: relative; }
.auth-phone-input > span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--rd-text-secondary); pointer-events: none; }
.auth-phone-input > input { width: 100%; height: 56px; padding-inline: 1rem 3rem; border: 1px solid #b9c7dc; border-radius: 14px; direction: ltr; text-align: left; font-size: 1.125rem; letter-spacing: 1.5px; background: #fbfcff; }
.auth-phone-input > input:focus { border-color: var(--rd-accent); background: var(--rd-surface); box-shadow: 0 0 0 4px var(--rd-accent-soft); outline: none; }
.auth-phone-input > input[aria-invalid=true] { border-color: var(--rd-error); }
.auth-phone-input > input::placeholder { font-size: 1rem; color: #94a3b8; }
.auth-phone-field > .rd-help { font-size: .6875rem; margin-top: .625rem; color: var(--rd-muted-strong); }
.auth-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding-inline: 1.125rem; font-size: .875rem; margin-top: 1.5rem; border-radius: 14px; }
.auth-submit-status { margin-top: .75rem; font-size: .75rem; line-height: 1.9; color: var(--rd-primary); }
.auth-terms { font-size: .6875rem; line-height: 2.1; color: var(--rd-text-secondary); margin-top: 1.25rem; }
.auth-terms a { color: var(--rd-primary); text-decoration: underline; text-underline-offset: 3px; }
.auth-card-foot { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .375rem; padding-top: 1.25rem; margin-top: 2rem; border-top: 1px solid var(--rd-border); font-size: .625rem; color: var(--rd-text-secondary); }
.auth-card-foot > a { color: var(--rd-accent); min-height: 32px; display: inline-flex; align-items: center; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem 1.5rem; max-width: 1160px; background: transparent; color: var(--rd-text-secondary); font-size: .6875rem; }
.auth-footer nav { display: flex; align-items: center; gap: .75rem; }
.auth-footer a { min-height: 40px; display: inline-flex; align-items: center; }
.auth-card .rd-form-errors { margin-block: 1rem; }
.auth-card .otp-input { background: #fbfcff; }
@media (max-width: 900px) {
  .auth-story { padding: 2rem; }
  .auth-story h2 { font-size: 1.75rem; }
  .auth-card { padding: 2.5rem 1.75rem 1.5rem; }
}
@media (max-width: 639px) {
  .auth-header { padding-top: .75rem; padding-bottom: .75rem; }
  .auth-brand strong { font-size: .875rem; }
  .auth-brand small { display: none; }
  .auth-brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .auth-back { font-size: .6875rem; gap: .375rem; }
  .auth-main { justify-content: flex-start; padding-block: 1.5rem; }
  .auth-layout { grid-template-columns: minmax(0,1fr); border-radius: 24px; max-width: 440px; margin-inline: auto; }
  .auth-story { display: none; }
  .auth-card { padding: 1.75rem 1.25rem 1rem; }
  .auth-card h1 { font-size: 1.375rem; }
  .auth-card-top { margin-bottom: 1.25rem; }
  .auth-description { margin-bottom: 1.5rem; }
  .auth-card-foot { margin-top: 1.5rem; }
  .auth-footer { align-items: center; justify-content: center; flex-direction: column; gap: .25rem; padding-bottom: 1rem; }
}
