.auth-page { min-height: 100svh; margin: 0; padding: 0 max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left)); background: radial-gradient(ellipse at 28% 10%, #392531 0, #1c151d 45%, #100d12 82%); }
.auth-header { max-width: 980px; margin: 0 auto; height: 78px; display: flex; align-items: center; justify-content: space-between; }
.auth-header select { max-width: 48%; border: 1px solid #574151; border-radius: 30px; background: #211820; color: #faf1f4; padding: 9px 12px; font: inherit; }
.auth-card { max-width: 980px; min-height: 560px; margin: clamp(0px,3vh,38px) auto 0; display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); background: #1c161d; border: 1px solid #443440; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 75px #09070952; }
.auth-portrait { position: relative; min-height: 510px; margin: 0; overflow: hidden; background: #301c24; }
.auth-portrait img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 23%; }
.auth-portrait::after { content: ''; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent,#130d16a8); }
.auth-portrait figcaption { position: absolute; left: 26px; bottom: 20px; z-index: 1; color: #fff6f5; font: italic clamp(3rem,6vw,4.9rem)/1 var(--display); letter-spacing: -.055em; }
.auth-fields { align-self: center; padding: clamp(28px,5vw,66px); }
.auth-fields h1 { margin: 0 0 26px; font: 400 clamp(1.95rem,4vw,2.9rem)/1.1 var(--display); letter-spacing: -.035em; }
.auth-fields form { display: grid; gap: 17px; }
.auth-fields label { display: grid; gap: 7px; font-size: .94rem; color: #dfcdd8; }
.auth-fields input { width: 100%; height: 47px; border-radius: 10px; border: 1px solid #654d60; background: #261e28; padding: 0 13px; color: #fff4fa; font-size: 16px; }
.auth-fields input[aria-invalid="true"] { border-color: #fe9d94; }
.phone-field { display: grid; gap: 7px; }
.phone-entry { display: flex; align-items: stretch; gap: 6px; }
.phone-entry input { min-width: 0; flex: 1; }
.dial-picker { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #654d60; border-radius: 10px; color: #fff4fa; background: #261e28; font-size: 15px; white-space: nowrap; }
.dial-picker::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.dial-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dial-picker select { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; font-size: 16px; }
.auth-submit { margin-top: 5px; min-height: 46px; border: 0; border-radius: 25px; padding: 10px 16px; background: var(--accent); color: #241520; font-weight: 650; }
.auth-submit:disabled { opacity: .7; }
.auth-switch { margin: 20px 0 0; font-size: .93rem; color: var(--muted); line-height: 1.6; }
.auth-switch a { color: #ffd0df; text-underline-offset: 4px; }
#form-error { margin: 0; color: #ffbcb0; font-size: .92rem; line-height: 1.4; }
@media(max-width: 660px) {
  .auth-page { padding-left: 15px; padding-right: 15px; }
  .auth-header { height: 62px; }
  .auth-card { margin: 0 auto; grid-template-columns: 1fr; border-radius: 18px; min-height: auto; max-width: 460px; }
  .auth-portrait { min-height: 0; height: clamp(118px,22svh,182px); }
  .auth-portrait img { object-position: 50% 14%; }
  .auth-portrait figcaption { left: 18px; bottom: 8px; font-size: 2.8rem; }
  .auth-fields { padding: 22px; }
  .auth-fields h1 { margin-bottom: 18px; }
  .auth-fields form { gap: 13px; }
}
