/* === auth-form.css ===
   Автономные стили для страниц авторизации/регистрации.
   Единый стиль с главной: светлый фон, --primary #6E2C9E, шрифт Inter.
*/

/* ---------- Базовая страница ---------- */
body.auth-page-body {
    background: #fafbfc;
    color: #17182f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ---------- Основной контейнер формы ---------- */
.auth-form-wrap {
    flex: 1 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 60px;
}

/* ---------- Своя подвал auth-страниц ---------- */
.auth-page-footer {
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
}
.auth-page-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #718096;
}
.auth-page-footer__links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.auth-page-footer__links a {
    color: #4a5568;
    text-decoration: none;
    transition: color .15s;
}
.auth-page-footer__links a:hover {
    color: #6E2C9E;
    text-decoration: underline;
}
.auth-page-footer__copy {
    margin: 0;
    color: #718096;
}
.auth-page-footer__copy strong {
    color: #17182f;
    font-weight: 700;
}
@media (max-width: 600px) {
    .auth-page-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ---------- Карточка формы ---------- */
.auth-form-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(23, 24, 47, 0.06);
}
.auth-form-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(110, 44, 158, 0.08);
    color: #6E2C9E;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.auth-form-card__badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #6E2C9E;
}
.auth-form-card h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #17182f;
    letter-spacing: -.4px;
}
.auth-form-card__sub {
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ---------- Оповещения ---------- */
.auth-form-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.auth-form-alert--error {
    background: rgba(190, 18, 60, 0.06);
    border: 1px solid rgba(190, 18, 60, 0.22);
    color: #9f1239;
}
.auth-form-alert--success {
    background: rgba(4, 120, 87, 0.06);
    border: 1px solid rgba(4, 120, 87, 0.22);
    color: #047857;
}
.auth-form-alert__icon {
    flex-shrink: 0;
    margin-top: 1px;
    width: 18px;
    height: 18px;
}
.auth-form-alert ul {
    margin: 0;
    padding: 0 0 0 18px;
}
.auth-form-alert li + li { margin-top: 4px; }

/* ---------- Поля ---------- */
.auth-field {
    display: block;
    margin-bottom: 16px;
}
.auth-field__lbl {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}
.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #17182f;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
    border-color: #6E2C9E;
    box-shadow: 0 0 0 3px rgba(110, 44, 158, 0.12);
}
.auth-pass {
    position: relative;
}
.auth-pass .auth-input {
    padding-right: 46px;
}
.auth-pass__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}
.auth-pass__toggle:hover {
    color: #6E2C9E;
    background: rgba(110, 44, 158, 0.08);
}
.auth-pass__toggle svg { width: 18px; height: 18px; }

/* ---------- Кнопка ---------- */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #6E2C9E;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, transform .15s, box-shadow .15s;
    margin-top: 8px;
}
.auth-btn:hover {
    background: #5A2182;
    box-shadow: 0 6px 18px rgba(110, 44, 158, 0.28);
    transform: translateY(-1px);
}
.auth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Подсказка ---------- */
.auth-form-hint {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
    line-height: 1.4;
}

/* ---------- Чекбоксы согласий ---------- */
.auth-consent {
    margin: 14px 0 4px;
    padding: 0;
}
.auth-consent.has-error {
    padding: 12px;
    border-radius: 10px;
    background: rgba(190, 18, 60, 0.04);
    border: 1px solid rgba(190, 18, 60, 0.18);
}
.auth-consent__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #2d3748;
    cursor: pointer;
}
.auth-consent__row:last-child { margin-bottom: 0; }
.auth-consent__row input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #6E2C9E;
    cursor: pointer;
}
.auth-consent__row a {
    color: #6E2C9E;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-consent__row a:hover { color: #5A2182; }
.auth-consent__star {
    color: #C93A3A;
    font-weight: 700;
}

/* ---------- Ссылки внизу формы ---------- */
.auth-form-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
    text-align: center;
}
.auth-form-links a {
    color: #6E2C9E;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}
.auth-form-links a:hover {
    color: #5A2182;
    text-decoration: underline;
}
.auth-form-debug {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(180, 83, 9, 0.06);
    border: 1px solid rgba(180, 83, 9, 0.24);
    color: #92400e;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

@media (max-width: 600px) {
    .auth-form-wrap { padding: 24px 12px 40px; }
    .auth-form-card { padding: 24px 20px; border-radius: 14px; }
    .auth-form-card h1 { font-size: 21px; }
}

/* ============================================================
   OVERRIDES: перебиваем глобальные стили theme-main и др.
   ============================================================ */

/* --- Кнопка Войти / Создать аккаунт — фиолетовая, не оранжевая --- */
html body button.auth-btn,
html body .auth-form-card button.auth-btn,
html body button.auth-btn[type="submit"],
html body .auth-form-card button.auth-btn[type="submit"] {
    background: #6E2C9E !important;
    background-color: #6E2C9E !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #6E2C9E !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    padding: 0 22px !important;
    text-shadow: none !important;
}
html body button.auth-btn:hover,
html body button.auth-btn:focus,
html body button.auth-btn[type="submit"]:hover,
html body button.auth-btn[type="submit"]:focus {
    background: #5A2182 !important;
    background-color: #5A2182 !important;
    border-color: #5A2182 !important;
    color: #ffffff !important;
}
html body button.auth-btn svg,
html body button.auth-btn svg.icon,
html body button.auth-btn svg use {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* --- Кнопка показать/скрыть пароль — прозрачная, не тёмная --- */
html body button.auth-pass__toggle,
html body .auth-form-card button.auth-pass__toggle {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #718096 !important;
    -webkit-text-fill-color: #718096 !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    position: absolute !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    text-shadow: none !important;
}
html body button.auth-pass__toggle:hover,
html body button.auth-pass__toggle:focus {
    background: rgba(110,44,158,0.08) !important;
    color: #6E2C9E !important;
    -webkit-text-fill-color: #6E2C9E !important;
    outline: 0 !important;
}
html body button.auth-pass__toggle svg,
html body button.auth-pass__toggle svg.icon {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    color: inherit !important;
}

/* --- Описание под заголовком — без рамки, без фона --- */
html body .auth-form-card__sub,
html body .auth-form-card p.auth-form-card__sub,
html body .auth-form-card h1 + p {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    outline: 0 !important;
    max-width: none !important;
    width: auto !important;
}

/* --- Оформление логотипа в шапке auth (как на главной) --- */
html body 
html body 
html body 
html body 
html body 
@media (max-width: 520px) {
    html body 
    html body 
    html body 
}

/* --- Кнопка «На главную» в шапке auth --- */
html body a
html body a
html body a

/* ============================================================
   Стили переключателя темы (.theme-toggle) для auth-шапки.
   Скопированы из blocks/header/header.php (там они инлайн).
   ============================================================ */

html body.light-theme .auth-page-header .theme-toggle .theme-toggle__track {
    background-color: rgba(255, 255, 255, 0.96) !important;
    background-image: none !important;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.14), inset 0 -1px 1px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}
html body.light-theme .auth-page-header .theme-toggle .theme-toggle__knob {
    left: 4px !important;
}
html body.light-theme .auth-page-header .theme-toggle .theme-toggle__knob-icon--sun {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}
html body.light-theme .auth-page-header .theme-toggle .theme-toggle__knob-icon--moon {
    opacity: 0 !important;
    transform: rotate(-90deg) scale(0.5) !important;
}
html body.light-theme .auth-page-header .theme-toggle .theme-toggle__bg-icon--sun  { color: rgba(20, 20, 50, 0.30) !important; }
html body.light-theme .auth-page-header .theme-toggle .theme-toggle__bg-icon--moon { color: rgba(20, 20, 50, 0.55) !important; }
html body:not(.light-theme) .auth-page-header .theme-toggle .theme-toggle__knob {
    left: 38px !important;
    background-color: #6a4ee0 !important;
    background-image: linear-gradient(135deg, #8c7bff 0%, #5a45d8 100%) !important;
}
html body:not(.light-theme) .auth-page-header .theme-toggle .theme-toggle__knob-icon--sun {
    opacity: 0 !important;
    transform: rotate(90deg) scale(0.5) !important;
}
html body:not(.light-theme) .auth-page-header .theme-toggle .theme-toggle__knob-icon--moon {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}
html body:not(.light-theme) .auth-page-header .theme-toggle .theme-toggle__bg-icon--sun  { color: rgba(255, 255, 255, 0.85) !important; }
html body:not(.light-theme) .auth-page-header .theme-toggle .theme-toggle__bg-icon--moon { color: rgba(255, 255, 255, 0.45) !important; }

/* ============================================================
   ФИНАЛЬНЫЕ ПРАВКИ: центрирование формы, подвал как на главной
   ============================================================ */

/* --- Форма вертикально и горизонтально по центру экрана --- */
html body .auth-form-wrap {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 16px !important;
    min-height: calc(100vh - 260px) !important;
    box-sizing: border-box !important;
}
@media (max-width: 900px) {
    html body .auth-form-wrap {
        min-height: auto !important;
        padding: 24px 12px !important;
    }
}

/* --- Заголовок и описание — по центру карточки --- */
html body .auth-form-card h1,
html body .auth-form-card h1.auth-form-title {
    text-align: center !important;
    margin: 4px 0 10px !important;
}
html body .auth-form-card__sub,
html body .auth-form-card p.auth-form-card__sub,
html body .auth-form-card h1 + p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 340px !important;
}

/* --- Скрываем badge авторизации (в PHP тоже убран) --- */
html body .auth-form-card__badge {
    display: none !important;
}

/* --- Подвал главной страницы на auth — минимальная поправка отступов --- */
html body.auth-page-body .footer {
    margin-top: auto !important;
}

/* ============================================================
   ТЁМНАЯ ТЕМА: белый текст и корректные цвета для auth-форм
   ============================================================ */

/* --- Карточка формы — тёмный фон, светлый текст --- */
html body:not(.light-theme) .auth-form-card {
    background: #2a2a3a !important;
    border-color: #3a3a4a !important;
    color: #f0f0f5 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}
html body:not(.light-theme) .auth-form-card h1,
html body:not(.light-theme) .auth-form-card h2 {
    color: #ffffff !important;
}
html body:not(.light-theme) .auth-form-card__sub,
html body:not(.light-theme) .auth-form-card p {
    color: #c9c9d6 !important;
}
html body:not(.light-theme) .auth-field__lbl {
    color: #e8e8f0 !important;
}
html body:not(.light-theme) .auth-form-hint {
    color: #9a9aa8 !important;
}

/* --- Поля ввода — тёмный фон, белый текст --- */
html body:not(.light-theme) .auth-input {
    background: #1e1e2e !important;
    border-color: #3a3a4a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #b794f6 !important;
}
html body:not(.light-theme) .auth-input:focus {
    border-color: #b794f6 !important;
    box-shadow: 0 0 0 3px rgba(183, 148, 246, 0.18) !important;
}
html body:not(.light-theme) .auth-input::placeholder {
    color: #7a7a88 !important;
    -webkit-text-fill-color: #7a7a88 !important;
    opacity: 1 !important;
}
html body:not(.light-theme) .auth-pass__toggle {
    color: #9a9aa8 !important;
}
html body:not(.light-theme) .auth-pass__toggle:hover,
html body:not(.light-theme) .auth-pass__toggle:focus {
    background: rgba(183, 148, 246, 0.15) !important;
    color: #d6bcfa !important;
}

/* --- КНОПКА «Войти» — фиолетовая, без белых полос --- */
html body:not(.light-theme) button.auth-btn,
html body:not(.light-theme) .auth-form-card button.auth-btn,
html body:not(.light-theme) button.auth-btn[type="submit"],
html body:not(.light-theme) .auth-form-card button.auth-btn[type="submit"] {
    background-color: #6E2C9E !important;
    background: #6E2C9E !important;
    background-image: none !important;
    border: 1px solid #6E2C9E !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-shadow: none !important;
}
html body:not(.light-theme) button.auth-btn:hover,
html body:not(.light-theme) button.auth-btn:focus,
html body:not(.light-theme) button.auth-btn[type="submit"]:hover,
html body:not(.light-theme) button.auth-btn[type="submit"]:focus {
    background-color: #5A2182 !important;
    background: #5A2182 !important;
    background-image: none !important;
    border-color: #5A2182 !important;
    color: #ffffff !important;
}
html body:not(.light-theme) button.auth-btn::before,
html body:not(.light-theme) button.auth-btn::after,
html body:not(.light-theme) .auth-form-card button.auth-btn::before,
html body:not(.light-theme) .auth-form-card button.auth-btn::after {
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    content: none !important;
}
html body:not(.light-theme) button.auth-btn svg,
html body:not(.light-theme) button.auth-btn svg.icon,
html body:not(.light-theme) button.auth-btn svg use {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* --- Ссылки внизу формы — фиолетовые в тёмной теме --- */
html body:not(.light-theme) .auth-form-links {
    border-top-color: #3a3a4a !important;
}
html body:not(.light-theme) .auth-form-links a {
    color: #b794f6 !important;
    -webkit-text-fill-color: #b794f6 !important;
}
html body:not(.light-theme) .auth-form-links a:hover {
    color: #d6bcfa !important;
    -webkit-text-fill-color: #d6bcfa !important;
}

/* --- Чекбоксы согласий в тёмной теме --- */
html body:not(.light-theme) .auth-consent__row {
    color: #e8e8f0 !important;
}
html body:not(.light-theme) .auth-consent__row a {
    color: #b794f6 !important;
    -webkit-text-fill-color: #b794f6 !important;
}
html body:not(.light-theme) .auth-consent__row input[type="checkbox"] {
    accent-color: #b794f6 !important;
}

/* --- Оповещения --- */
html body:not(.light-theme) .auth-form-alert--error {
    background: rgba(190, 18, 60, 0.14) !important;
    border-color: rgba(190, 18, 60, 0.42) !important;
    color: #fecdd3 !important;
}
html body:not(.light-theme) .auth-form-alert--success {
    background: rgba(4, 120, 87, 0.14) !important;
    border-color: rgba(4, 120, 87, 0.42) !important;
    color: #a7f3d0 !important;
}
html body:not(.light-theme) .auth-form-alert ul li a {
    color: #b794f6 !important;
}

/* --- Фон страницы auth в тёмной теме --- */
html body:not(.light-theme).auth-page-body {
    background: #1e1e2e !important;
}
html body:not(.light-theme) 
html body:not(.light-theme) 
html body:not(.light-theme) 

/* === PRIVACY-NOTICE: подпись под формами с персональными данными (152-ФЗ) === */
.privacy-notice {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted, #718096);
    text-align: center;
}
.privacy-notice a {
    color: var(--neon-cyan, #94adae);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
}
.privacy-notice a:hover { color: #7dd3fc; }
body.light-theme .privacy-notice { color: #718096; }
body.light-theme .privacy-notice a { color: #6c5ce7; }
/* === /PRIVACY-NOTICE === */




/* === C1: SMS-верификация телефона в форме регистрации (v2) === */
.sms-verify-block {
    display: block;
    margin-top: 8px;
}
.sms-verify-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
.sms-verify-row .sms-verify-phone {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}
.sms-verify-btn {
    flex: 0 0 auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    min-height: 46px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(188, 239, 10, 0.14));
    color: var(--text-primary, #e8eaf6);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    line-height: 1;
}
.sms-verify-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(188, 239, 10, 0.24));
    border-color: rgba(188, 239, 10, 0.5);
}
.sms-verify-btn:disabled { opacity: 0.55; cursor: wait; }

.sms-verify-code-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}
.sms-verify-code-row .sms-verify-code {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    letter-spacing: 4px;
    text-align: center;
    font-size: 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sms-verify-status {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-muted, #9aa0c3);
    min-height: 18px;
}
.sms-verify-status--ok    { color: #9be89b; }
.sms-verify-status--error { color: #f8a5a5; }
.sms-verify-status--info  { color: #a9c5e5; }
.sms-verify-ok {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #9be89b;
}

/* Тёмная тема — оставляем как есть, светлая — с корректировкой контраста */
body.light-theme .sms-verify-btn { color: #17182f; background: #f3e8ff; border-color: #c4b5fd; }
body.light-theme .sms-verify-btn:hover:not(:disabled) { background: #e9d5ff; border-color: #a78bfa; }
body.light-theme .sms-verify-status { color: #64748b; }
body.light-theme .sms-verify-status--ok, body.light-theme .sms-verify-ok { color: #16a34a; }
body.light-theme .sms-verify-status--error { color: #dc2626; }

/* Мобильная адаптация: кнопка на всю ширину под полем */
@media (max-width: 480px) {
    .sms-verify-row,
    .sms-verify-code-row {
        flex-wrap: wrap;
    }
    .sms-verify-btn {
        width: 100%;
        padding: 12px 18px;
    }
}
/* === C1: Специфичный override для кнопки «Получить код» / «Подтвердить» === */
/* Базовый .auth-btn имеет html body button.auth-btn { width:100%; padding: 0 22px !important; margin-top:8px; }
   Мы перебиваем его более специфичными селекторами, чтобы кнопка не растягивалась. */

html body button.sms-verify-btn,
html body .auth-form-card button.sms-verify-btn,
html body form button.sms-verify-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 18px !important;
    margin-top: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(188, 239, 10, 0.14)) !important;
    background-image: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(188, 239, 10, 0.14)) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: var(--text-primary, #e8eaf6) !important;
    -webkit-text-fill-color: var(--text-primary, #e8eaf6) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 46px !important;
    white-space: nowrap !important;
    letter-spacing: .2px !important;
}

html body button.sms-verify-btn:hover:not(:disabled),
html body .auth-form-card button.sms-verify-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(188, 239, 10, 0.24)) !important;
    background-image: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(188, 239, 10, 0.24)) !important;
    border-color: rgba(188, 239, 10, 0.5) !important;
    color: var(--text-primary, #e8eaf6) !important;
    box-shadow: none !important;
    transform: none !important;
}

html body button.sms-verify-btn:disabled {
    opacity: 0.55 !important;
    cursor: wait !important;
}

/* .sms-verify-btn__text — убеждаемся, что текст имеет правильный цвет */
html body button.sms-verify-btn .sms-verify-btn__text {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Светлая тема — кнопка в светло-фиолетовой гамме */
html body.light-theme button.sms-verify-btn,
body.light-theme html body button.sms-verify-btn {
    background: #f3e8ff !important;
    background-image: none !important;
    border-color: #c4b5fd !important;
    color: #17182f !important;
    -webkit-text-fill-color: #17182f !important;
}
html body.light-theme button.sms-verify-btn:hover:not(:disabled) {
    background: #e9d5ff !important;
    border-color: #a78bfa !important;
}

/* Поле телефона — при flex:auto ширина не должна наследовать 100% */
html body .sms-verify-row .sms-verify-phone,
html body input.sms-verify-phone {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Поле кода — то же */
html body .sms-verify-code-row .sms-verify-code,
html body input.sms-verify-code {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    html body button.sms-verify-btn {
        width: 100% !important;
        padding: 12px 18px !important;
    }
}
/* === C1: ВЫРАВНИВАНИЕ ВЫСОТЫ полей телефона и кнопки (v3) === */
/* Проблема: .auth-input = 44px, .sms-verify-btn = 46px → разные высоты.
   Решение: все элементы строки — ровно 46px, box-sizing border-box. */

html body .sms-verify-row,
html body .sms-verify-code-row {
    align-items: stretch !important;
    height: 46px !important;
}

html body .sms-verify-row .sms-verify-phone,
html body input.sms-verify-phone,
html body .sms-verify-code-row .sms-verify-code,
html body input.sms-verify-code {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    line-height: 44px !important;
    display: block !important;
    align-self: stretch !important;
}

/* Для code — letter-spacing и центрирование, но с явной высотой */
html body .sms-verify-code-row .sms-verify-code,
html body input.sms-verify-code {
    padding: 0 12px !important;
    line-height: 44px !important;
}

html body button.sms-verify-btn,
html body .auth-form-card button.sms-verify-btn,
html body form button.sms-verify-btn {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-self: stretch !important;
}

/* Убираем возможные визуальные "полосы" от псевдоэлементов базовой кнопки */
html body button.sms-verify-btn::before,
html body button.sms-verify-btn::after {
    display: none !important;
    content: none !important;
}

/* --- Светлая тема --- */
body.light-theme html body .sms-verify-row .sms-verify-phone,
body.light-theme html body .sms-verify-row .sms-verify-code,
body.light-theme html body input.sms-verify-phone,
body.light-theme html body input.sms-verify-code {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #17182f !important;
    -webkit-text-fill-color: #17182f !important;
}
body.light-theme html body button.sms-verify-btn {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border: 1.5px solid #c4b5fd !important;
}

/* --- Мобильный вариант: колонка, высота кнопки тоже 46, но ширина 100% --- */
@media (max-width: 480px) {
    html body .sms-verify-row,
    html body .sms-verify-code-row {
        height: auto !important;
        flex-wrap: wrap !important;
    }
    html body button.sms-verify-btn {
        width: 100% !important;
        height: 46px !important;
        margin-top: 8px !important;
    }
    html body .sms-verify-row .sms-verify-phone,
    html body input.sms-verify-phone {
        width: 100% !important;
    }
}