.auth-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(9, 28, 51, .46); backdrop-filter: blur(6px); }
.auth-card { position: relative; width: min(430px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(9, 28, 51, .24); }
.recovery-zone { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.recovery-zone h3 { margin: 0 0 7px; font-size: 16px; }
.recovery-hint { color: #64748b; font-size: 12px; line-height: 1.7; margin: 8px 0; }
.recovery-preview { padding: 9px 11px; border: 1px solid #efd28c; border-radius: 8px; background: #fff8e5; color: #805512; font-size: 12px; line-height: 1.6; }
.recovery-tabs { display: flex; gap: 6px; padding: 4px; background: #f1f5f9; border-radius: 10px; margin-top: 12px; }
.recovery-tabs button { flex: 1; padding: 9px; border: 0; border-radius: 7px; background: transparent; color: #536276; cursor: pointer; font-weight: 700; }
.recovery-tabs button[aria-pressed=true] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px #14284b14; }
.recovery-code-row { display: flex; gap: 8px; }
.recovery-code-row input { min-width: 0; flex: 1; letter-spacing: 3px; }
.recovery-code-row button, .recovery-contact-item button { flex-shrink: 0; padding: 10px 12px; border: 1px solid #c9daf7; border-radius: 9px; background: #f3f7ff; color: #235bbd; cursor: pointer; font-weight: 700; }
.recovery-code-row button:disabled { opacity: .55; cursor: default; }
.recovery-notice { margin: 8px 0 0; color: #17654b; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.recovery-error:empty, .recovery-notice:empty { display: none; }
.recovery-forgot { display: block; margin: 12px 0 0 auto; padding: 5px 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 13px; }
.recovery-contact-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recovery-contact-item strong { font-size: 13px; display: block; }
.recovery-contact-item span { display: block; font-size: 13px; color: #64748b; margin-top: 5px; overflow-wrap: anywhere; }
.recovery-overlay.auth-overlay { z-index: 200; }
.recovery-account { padding: 10px; border-radius: 8px; background: #f4f7fb; color: #526176; font-size: 13px; }
@media (min-width: 700px) {
  .register-card { width: min(760px, 100%); }
  .register-card .auth-form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 22px; }
  .register-card .auth-account-fields > label:first-child { margin-top: 0; }
  .register-card .recovery-zone { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 26px; margin: 0; }
}
@media (max-width: 480px) { .auth-overlay { padding: 12px; } .auth-card { padding: 22px; max-height: calc(100dvh - 24px); } }
.auth-card h2 { margin: 7px 0 8px; font-size: 26px; }
.auth-help { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-card label { display: block; margin: 15px 0 7px; color: #526176; font-size: 12px; font-weight: 850; }
.auth-card input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; outline: none; }
.auth-role { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-role-option { position: relative; display: block; margin: 0 !important; border: 1px solid var(--line); border-radius: 10px; padding: 12px 0; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.auth-role-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-role-option span { color: #526176; font-size: 14px; font-weight: 800; }
.auth-role-option:has(input:checked) { border-color: var(--blue); background: #f0f6ff; }
.auth-role-option:has(input:checked) span { color: var(--blue); }
.auth-role-option:hover { border-color: #9bb9f4; }
.auth-card input:focus { border-color: #8cb1ff; box-shadow: 0 0 0 3px rgba(47,111,237,.1); }
.auth-card input:focus-visible { outline: none; outline-offset: 0; }
.auth-close { position: absolute; top: 13px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; line-height: 1; border: 0; border-radius: 50%; background: #f0f3f7; color: #607086; cursor: pointer; font-size: 21px; }
.auth-submit, .auth-switch { width: 100%; border-radius: 10px; padding: 11px 14px; cursor: pointer; font-weight: 850; }
.auth-submit { margin-top: 20px; border: 0; background: var(--blue); color: #fff; }
.auth-submit:disabled { opacity: .55; cursor: wait; }
.auth-switch { margin-top: 9px; border: 0; background: transparent; color: var(--blue); }
.auth-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: #fff0f0; color: #b34545; font-size: 12px; line-height: 1.5; }
