.auth-page { min-height:100svh; background:#f8f7f4; color:var(--text); }
.auth-layout { width:100%; min-height:max(900px,100svh); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; }
.auth-panel { position:relative; min-height:max(900px,100svh); padding:0 100px; background:#f8f7f4; }
.auth-back { position:absolute; left:100px; top:50px; display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; line-height:18px; text-decoration:none; }
.auth-back span { font-size:20px; }
.auth-brand { display:flex; align-items:center; gap:14px; width:max-content; padding-top:100px; color:var(--text); text-decoration:none; }
.auth-brand img { width:64px; height:64px; border-radius:15px; box-shadow:0 6px 22px #76634418; }
.auth-brand strong { font-size:20px; line-height:28px; letter-spacing:-.04em; }
.auth-form-area { width:404px; max-width:100%; margin-top:49px; }
.auth-kicker { display:inline-flex; align-items:center; min-height:20px; border-radius:5px; padding:2px 12px; background:#dfddcc; color:var(--muted); font-size:10px; line-height:14px; }
.auth-form-area h1 { margin:8px 0 0; font-size:30px; line-height:32px; font-weight:600; letter-spacing:-.04em; }
.auth-form { display:flex; flex-direction:column; gap:10px; margin-top:50px; }
.login-area .auth-form { margin-top:50px; }
.register-area .auth-form { margin-top:50px; }
.auth-field { display:block; color:var(--muted); font-size:10px; line-height:14px; }
.auth-field > span[aria-hidden="true"], .code-field legend span { color:#c93a1a; }
.auth-input { position:relative; display:flex; align-items:center; height:36px; margin-top:4px; border:1px solid #cbd3dc; border-radius:11px; background:var(--bg); color:var(--muted); }
.auth-input:focus-within { border-color:#7e8a95; outline:3px solid #c06c0033; }
.auth-input > svg { width:22px; height:22px; margin-left:10px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.auth-input input, .auth-input select { width:100%; min-width:0; height:100%; border:0; outline:0; background:transparent; color:var(--text); padding:7px 10px; font:500 14px/20px Manrope,Arial,sans-serif; }
.auth-input > svg + input { padding-left:8px; }
.auth-input input::placeholder { color:#97a5b5; opacity:1; }
.select-input select { appearance:none; padding-right:38px; }
.select-input::after { display:none; }
.password-toggle { width:38px; height:34px; display:grid; place-items:center; flex:0 0 auto; padding:0; color:var(--muted); cursor:pointer; }
.password-toggle .password-eye-icon { display:block; width:24px; height:24px; }
.auth-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.field-error-message { min-height:0; display:block; color:#bc2c16; font-size:10px; line-height:13px; font-style:normal; }
.field-error-message:not(:empty) { margin-top:3px; }
.auth-field.invalid .auth-input, .legal-check.invalid > span, .code-field.invalid input { border-color:#bc2c16; }
.auth-options { display:flex; align-items:center; justify-content:space-between; margin:12px 0 10px; }
.check-label { display:flex; align-items:flex-start; gap:8px; color:var(--muted); font-size:12px; line-height:18px; cursor:pointer; }
.check-label input { position:absolute; width:1px; height:1px; opacity:0; }
.check-label > span { width:18px; height:18px; border:2px solid var(--muted); border-radius:4px; flex:0 0 auto; display:grid; place-items:center; }
.check-label input:checked + span { border-color:var(--orange); background:var(--orange); }
.check-label input:checked + span::after { content:"✓"; color:white; font:700 13px/1 Arial,sans-serif; }
.check-label input:focus-visible + span { outline:3px solid #c06c00; outline-offset:2px; }
.check-label em { font-style:normal; }
.auth-link, .legal-check button { padding:0; color:var(--orange); font-size:12px; line-height:18px; }
.legal-check { margin-top:13px; }
.legal-check button { font-size:10px; }
.legal-check em { font-size:10px; line-height:18px; }
.terms-error { margin-top:-8px; }
.auth-submit { width:230px; min-height:36px; margin-top:0; align-self:flex-start; }
.form-status { min-height:16px; margin:0; color:var(--muted); font-size:11px; line-height:16px; }
.form-status.error { color:#b3261e; }
.social-auth { margin-top:28px; }
.social-auth.compact { margin-top:24px; }
.social-divider { display:flex; align-items:center; gap:20px; color:var(--muted); font-size:10px; line-height:14px; }
.social-divider::before, .social-divider::after { content:""; height:1px; background:var(--border); flex:1; }
.social-divider span { white-space:nowrap; }
.social-buttons { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:30px; }
.social-buttons button { min-width:0; height:38px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--muted); border-radius:10px; color:var(--muted); font-weight:600; }
.social-buttons .social-brand-icon { display:block; width:16px; height:16px; flex:0 0 16px; }
.social-buttons .yandex-icon { width:18px; height:18px; flex-basis:18px; }
.login-area .social-buttons { grid-template-columns:repeat(3,132px); gap:4px; }
.login-area .social-buttons button { width:132px; height:36px; border-color:#4b5662; background:transparent; color:#4b5662; }
.login-area .social-buttons button:hover { background:#f3f4f5; }
.auth-visual { position:relative; min-width:0; min-height:max(900px,100svh); overflow:hidden; background:#b8e5f3; }
.auth-visual img { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:cover; object-position:right center; }
.verify-area .auth-form { margin-top:49px; gap:22px; }
.verify-copy { margin:14px 0 0; color:var(--muted); font-size:14px; line-height:18px; }
.verify-copy strong { font-weight:500; }
.code-field { border:0; margin:0; padding:0; }
.code-field legend { padding:0; color:var(--muted); font-size:10px; line-height:14px; }
.code-inputs { display:flex; gap:5px; margin-top:4px; }
.code-inputs input { width:36px; height:36px; border:1px solid #cbd3dc; border-radius:11px; background:transparent; text-align:center; color:var(--text); font:600 18px/1 Manrope,Arial,sans-serif; }
.resend-button { width:max-content; display:flex; align-items:center; gap:8px; padding:0; color:var(--muted); font-size:12px; }
.resend-button span { font-size:26px; }
.auth-page dialog { max-width:430px; }
@media(max-width:1050px) {
  .auth-panel { padding:0 60px; }
  .auth-back { left:60px; }
}
@media(max-width:760px) {
  .auth-layout { display:block; height:auto; min-height:100svh; }
  .auth-panel { min-height:100svh; padding:0 24px 40px; }
  .auth-visual { display:none; }
  .auth-back { left:24px; top:20px; }
  .auth-brand { padding-top:62px; }
  .auth-brand img { width:54px; height:54px; }
  .auth-brand strong { font-size:19px; }
  .auth-form-area { width:100%; margin-top:38px; }
  .auth-form-area h1 { font-size:28px; line-height:31px; }
  .auth-form, .login-area .auth-form, .register-area .auth-form { margin-top:38px; }
  .auth-input { height:44px; }
  .auth-input input, .auth-input select { font-size:16px; }
  .auth-grid { grid-template-columns:1fr; gap:10px; }
  .auth-submit { width:100%; min-height:44px; }
  .social-buttons { grid-template-columns:1fr; margin-top:20px; }
  .social-buttons button { height:44px; }
  .login-area .social-buttons { grid-template-columns:1fr; gap:8px; }
  .login-area .social-buttons button { width:100%; height:44px; }
  .verify-area .auth-form { margin-top:38px; }
  .code-inputs { justify-content:space-between; gap:4px; }
  .code-inputs input { width:min(46px,14vw); height:46px; }
}
@media(max-width:370px) {
  .auth-panel { padding-left:16px; padding-right:16px; }
  .auth-back { left:16px; }
  .auth-options { align-items:flex-start; gap:10px; }
  .check-label, .auth-link { font-size:11px; }
}
