/* Цвета и поверхности клиентской формы не зависят от темы админки. */
.auth-body{--brand:#168fc7;--brand-2:#52b6df;--brand-text:#117eaf;--bg:#f4f8fb;--surface:#fff;--surface-2:#edf6fc;--ink:#082b4e;--muted:#607d95;--line:#d5e2ec;--line-soft:#e4edf4;--shadow:0 18px 55px rgb(18 64 96 / 10%);--bs-primary:#168fc7;--bs-primary-rgb:22,143,199;color:var(--ink)}
/* Авторизация и регистрация фронта: отдельное оформление в палитре сайта. */
.auth-body { min-height:100vh; background:radial-gradient(60% 50% at 0% 0%,color-mix(in srgb,var(--brand) 10%,transparent),transparent 70%),radial-gradient(50% 40% at 100% 100%,color-mix(in srgb,var(--brand-2) 14%,transparent),transparent 70%),var(--bg); }
.auth-body .auth-workspace { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; padding:40px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
.auth-body .auth-card { width:100%; max-width:440px; padding:36px 36px 28px; border:1px solid var(--line-soft); border-radius:24px; background:var(--surface); box-shadow:var(--shadow); text-align:center; }
.auth-logo { display:flex; justify-content:center; margin:0 0 26px; }
.auth-logo .brand-mark { display:block; width:48px; height:48px; }
.auth-heading { margin-bottom:26px; }
.auth-body .auth-heading h1 { margin:0 0 8px; color:var(--ink); font-size:26px; font-weight:650; letter-spacing:-.025em; line-height:1.25; }
.auth-heading p { margin:0; font-size:14px; color:var(--muted); line-height:1.6; }
.auth-code-title { display:none; }
.auth-card:has([data-login-request][hidden]) .auth-request-title { display:none; }
.auth-card:has([data-login-request][hidden]) .auth-code-title { display:inline; }
.auth-body .form-label { display:block; text-align:left; margin-bottom:8px; font-size:12px; }
.auth-body .form-control { height:48px; border-radius:13px; background:var(--surface); border-color:var(--line); text-align:left; font-size:16px; }
.auth-body .btn { min-height:46px; border-radius:13px; }
.auth-body .auth-submit { margin-top:18px; }
.auth-submit .ui-icon { width:18px; height:18px; }
.auth-body .admin-otp { height:62px; text-align:center; font-size:28px; font-weight:600; letter-spacing:.35em; padding-left:calc(12px + .35em); font-variant-numeric:tabular-nums; }
.auth-body .admin-otp::placeholder { color:var(--muted); opacity:.55; }
.auth-resend { margin-top:16px; }
.auth-resend p { margin:0; min-height:46px; padding:12px 10px; border-radius:13px; background:var(--surface-2); color:var(--muted); font-size:12px; line-height:1.6; }
.auth-body .auth-change-email { margin-top:12px; min-height:36px; padding:6px 12px; font-size:13px; }
.auth-help { margin:24px 0 0; padding-top:20px; border-top:1px solid var(--line-soft); color:var(--muted); font-size:12px; line-height:1.6; }
.auth-footer { margin:0; color:var(--muted); font-size:10px; letter-spacing:.1em; text-align:center; }
@media (max-width:575.98px) { .auth-body .auth-card { padding:28px 24px 24px; } .auth-body .auth-workspace { padding-top:28px; } .auth-body .auth-heading h1 { font-size:24px; } }
@media (max-height:650px) { .auth-body .auth-workspace { justify-content:flex-start; } }

/* Верхнее свечение из lock-screen; остальные поверхности следуют теме. */
.auth-body .auth-workspace { background:radial-gradient(70% 60% at 50% 0%,color-mix(in srgb,var(--brand) 26%,transparent),transparent 70%); }
.auth-otp { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.auth-otp input { min-width:0; width:100%; height:56px; padding:0; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); font-family:inherit; font-size:24px; font-weight:650; line-height:1; text-align:center; caret-color:var(--brand); }
.auth-otp input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent); }
@media (max-width:375px) { .auth-otp { gap:6px; } .auth-otp input { height:50px; font-size:22px; } }

.auth-footer .auth-developer { display:block; width:fit-content; margin:3px auto 0; color:inherit; font-size:11px; letter-spacing:normal; text-transform:none; text-decoration:none; }
.auth-footer .auth-developer:hover,.auth-footer .auth-developer:focus-visible { color:var(--brand-text); text-decoration:none; }

.auth-developer a,.auth-developer a:hover,.auth-developer a:focus-visible { color:inherit; text-decoration:none; }

/* Кнопки, ссылки и фокус полей используют основной синий цвет сайта. */
.auth-body .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600;padding:10px 16px;box-shadow:none}
.auth-body .btn-primary{--bs-btn-bg:#168fc7;--bs-btn-border-color:#168fc7;--bs-btn-hover-bg:#117eaf;--bs-btn-hover-border-color:#117eaf;--bs-btn-active-bg:#0e6c97;--bs-btn-active-border-color:#0e6c97;--bs-btn-disabled-bg:#168fc7;--bs-btn-disabled-border-color:#168fc7;background:#168fc7;border-color:#168fc7;color:#fff}
.auth-body .btn-primary:hover{background:#117eaf;border-color:#117eaf}
.auth-body .btn-primary:active{background:#0e6c97;border-color:#0e6c97}
.auth-body .btn-light{background:#edf6fc;border:1px solid #d5e6f1;color:#24516d}
.auth-body .btn-light:hover{background:#e0f0fa;border-color:#badced}
.auth-body .btn-link{color:#168fc7;text-decoration:none}
.auth-body .btn-link:hover{color:#117eaf;text-decoration:underline}
.auth-body .form-control:focus{border-color:#168fc7;background:#fff;color:#082b4e;box-shadow:0 0 0 3px rgb(22 143 199 / 16%)}
.auth-body .btn:focus-visible,.auth-body a:focus-visible{outline:3px solid rgb(22 143 199 / 35%);outline-offset:3px}
.auth-body .auth-logo img{display:block;object-fit:contain}
.auth-body .ui-icon{flex-shrink:0;vertical-align:middle;pointer-events:none}
.auth-body .auth-developer a:hover{color:#168fc7}

/* Ссылки остаются без подчёркивания во всех состояниях, фокус виден по обводке. */
.auth-body a,.auth-body a:hover,.auth-body a:focus-visible{ text-decoration:none; }
.auth-body .auth-company-hint{margin:8px 0 18px;text-align:left;font-size:12px;line-height:1.55;color:var(--muted)}
.auth-body .auth-logo a{display:block;border-radius:8px}
.auth-body .auth-card a,.auth-body .auth-card a:hover,.auth-body .auth-card a:focus-visible,.auth-body .btn-link:hover,.auth-body .btn-link:focus-visible{text-decoration:none}
