.fr_welcome {min-height: 100vh;min-height: 100dvh;background-color: #fff;}
body.night-mode .fr_welcome {background-color: #0f1112;}

/*Sign Form*/
.fr_welcome_mid {margin: auto 0;}
.fr_welcome_sign {max-width: 540px;}
.fr_welcome_sign_head {text-align: center;}
.fr_welcome_sign_head h5 {display: none;}
.fr_welcome_sign .logo-wrapper {font-size: 20px;font-weight: 500;text-transform: uppercase;}
.fr_welcome_sign .logo-wrapper img {max-width: 150px;max-height: 45px;transform: translateZ(0px);}
.fr_welcome_sign img.logo-light {display: inline-block;}
body.night-mode .fr_welcome_sign img.logo-light {display: none;}
.fr_welcome_sign img.logo-dark {display: none;}
body.night-mode .fr_welcome_sign img.logo-dark {display: inline-block;}
.fr_auth_form {background-color: #fff;padding: 20px;border-radius: 30px;}
body.night-mode .fr_auth_form {background-color: #0f1112;}
.fr_welcome_title {font-family: 'Gilroy', Roboto, sans-serif;font-weight: 700;}
.fr_welcome_social .btn {border-radius: 14px;border: 2px solid #EFEFEF;padding: 10px 18px;gap: 14px;font-size: 14px;font-weight: 500;transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;}
.fr_welcome_social .btn:hover {background-color: #EFEFEF;}
body.night-mode .fr_welcome_social .btn {border-color: #323637;color: #fff;}
body.night-mode .fr_welcome_social .btn:hover {background-color: #323637;}
.fr_welcome_social .btn svg, .fr_welcome_social .btn img {width: 23px;height: 23px;flex: 0 0 auto;}
.fr_welcome_field {position: relative;display: block;margin: 0 0 20px;}
.fr_welcome_field input, .fr_welcome_field select {border-radius: 14px;border: 2px solid #EFEFEF;background-color: #EFEFEF;padding: 10px 55px;font-size: 14px;width: 100%;height: 56px;display: block;margin: 0;-webkit-appearance: none;-moz-appearance: none;appearance: none;transition: background-color .15s ease-in-out, border-color .15s ease-in-out;outline: none;}
.fr_welcome_field input:focus, .fr_welcome_field select:focus {border-color: var(--main-btn);background-color: #fff;}
body.night-mode .fr_welcome_field input, body.night-mode .fr_welcome_field select {border-color: #323637;background-color: #323637;color: #fff;}
body.night-mode .fr_welcome_field input:focus, body.night-mode .fr_welcome_field select:focus {border-color: var(--main-btn);background-color: #0f1112;}
.fr_welcome_field svg {top: 0;margin: 16px;opacity: 0.5;pointer-events: none;transition: color .15s ease-in-out, opacity .15s ease-in-out;width: 24px;height: 24px;}
.fr_welcome_field input:focus+svg, .fr_welcome_field select:focus+svg {opacity: 1;color: var(--main-btn);}
body.night-mode .custom-control-label::before {background-color: #0f1112;border-color: #6c7782;}
.fr_welcome_btn {border-radius: 14px;font-size: 17px;font-weight: 500;padding: 15px 18px;border: 0;}
.fr_welcome_switch {font-weight: 500;}
.fr_welcome_switch a {text-decoration: underline;text-underline-offset: 6px;}
.fr_welcome_field > .js_toggle-password {top: 0;right: 0;}

/*Right Side*/
.fr_welcome_bg {position: relative;}
.fr_welcome_bg_img {top: 0;right: 0;bottom: 0;left: 0;border-radius: 70px 0 0 70px;width: 100%;height: 100%;object-fit: cover;opacity: 1;}
.fr_welcome_img {position: relative;overflow: hidden;border-radius: 70px 0 0 70px;min-height: 700px;box-shadow: 0 0 30px 0 rgb(0 0 0 / 6%);}
.fr_welcome_img:before {content: '';position: absolute;top: 0;right: 0;bottom: 0;left: 0;background-color: var(--main-btn);opacity: 0.2;border-radius: 70px 0 0 70px;opacity: 0;}
.fr_welcome_img > .svg_blur {position: absolute;top: 0;left: 0;right: 0;opacity: 0.15;width: 100%;pointer-events: none;user-select: none;}
.fr_welcome_img > .svg_lines {position: absolute;bottom: 0;left: 0;right: 0;opacity: 0.2;width: 100%;pointer-events: none;user-select: none;color: #fff;height: auto;}
.fr_welcome_img_innr {background: linear-gradient(transparent, rgb(0 0 0 / 80%));padding: 150px 60px 60px;color: #fff;font-family: 'Gilroy', Roboto, sans-serif;}
.fr_welcome_img_innr h2 {line-height: 1.5;font-weight: 600;}
.fr_welcome_img_innr p {font-size: 16px;}
.mx-n2 {margin-left: -0.5rem;margin-right: -0.5rem;}

/*Footer*/
.fr_welcome_bottom .container {max-width: none;width: 100%;}
.fr_welcome_bottom .footer {margin: 0;border: 0;padding: 0;}
.fr_welcome_apps .huwei svg {background: #fff;border-radius: 6px;}

@media (max-width: 992px) {
.fr_welcome_img, .fr_welcome_bg_img {border-radius: 40px 0 0 40px;}
.fr_welcome_img, .fr_welcome_bg_img {min-height: 560px;}
.fr_welcome_img_innr {padding: 90px 30px 30px;}
}

@media (max-width: 900px) {
.fr_welcome_mid .row .col-md-6 {-ms-flex: 0 0 100%;flex: 0 0 100%;max-width: 100%;position: static;}
.fr_welcome_sign {position: relative;z-index: 1;max-width: none;padding: 0 !important;}
.fr_welcome_sign_head {padding: 20px;}
.fr_welcome_sign_head h5 {display: block;margin: 20px 0 16px;font-size: 1.5rem;}
.fr_welcome_bg {position: static;}
.fr_welcome_bg_img, .fr_welcome_img > .svg_blur, .fr_welcome_img_innr h5, .fr_welcome_img_innr h2, .fr_welcome_img_innr p {display: none;}
.fr_welcome_img {min-height: auto;border-radius: 0;position: static;box-shadow: none;}
.fr_welcome_img:before {opacity: 0.2;border-radius: 0;margin-top: -1.5rem;bottom: auto;height: 180px;}
.fr_welcome_img > .svg_lines {bottom: auto;top: 0;color: var(--main-btn);margin-top: -1.5rem;height: 180px;width: auto;opacity: 0.3;}
.fr_welcome_img_innr {padding: 20px;background: transparent;color: inherit;}
.fr_welcome_apps {text-align: center;scale: 0.85;margin: 0 !important;}
}

/* ============================================
   АВТОРИЗАЦИЯ (ВХОД, РЕГИСТРАЦИЯ, ВОССТАНОВЛЕНИЕ)
   ПОЛНАЯ ПОДДЕРЖКА НОЧНОЙ ТЕМЫ
   ============================================ */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e8eaed 100%);
}

body.night-mode .auth-page {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
}

.auth-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 520px;
}

body.night-mode .auth-container {
    background: #1e1e1e;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.auth-forms {
    flex: 1;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

body.night-mode .auth-forms {
    background: #1e1e1e;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* ===== ЛОГОТИП ===== */
.auth-card-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card-logo .logo-text {
    font-size: 30px;
    font-weight: 800;
    color: #2c2c2c;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

body.night-mode .auth-card-logo .logo-text {
    color: #e8e8e8;
}

.auth-card-logo .logo-text .sun {
    font-size: 26px;
    display: inline-block;
    animation: spin 20s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-card-logo .logo-text .highlight {
    color: #f5a623;
}

body.night-mode .auth-card-logo .logo-text .highlight {
    color: #f5a623;
}

.auth-card-logo .logo-sub {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.night-mode .auth-card-logo .logo-sub {
    color: #8a8a8a;
}

/* ===== ПАНЕЛИ ===== */
.auth-panel {
    display: block;
}
.auth-panel.x-hidden {
    display: none !important;
}

/* ===== ПОЛЯ ВВОДА ===== */
.auth-input-group {
    position: relative;
    margin-bottom: 14px;
}

.auth-input-group input,
.auth-input-group select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 44px;
    font-size: 16px;
    border: 2px solid #e8e8ed;
    border-radius: 14px;
    background: #fafafc;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    height: 52px;
    color: #2c2c2c;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

body.night-mode .auth-input-group input,
body.night-mode .auth-input-group select {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

.auth-input-group input:focus,
.auth-input-group select:focus {
    border-color: #f5a623;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

body.night-mode .auth-input-group input:focus,
body.night-mode .auth-input-group select:focus {
    background: #2d2d2d;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

.auth-input-group input::placeholder {
    color: #b0b8c0;
}

body.night-mode .auth-input-group input::placeholder {
    color: #6a6a6a;
}

.auth-input-group .field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.4;
    pointer-events: none;
}

body.night-mode .auth-input-group .field-icon {
    opacity: 0.5;
}

/* ===== КНОПКА ПОКАЗА ПАРОЛЯ ===== */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    opacity: 0.4;
    transition: opacity 0.2s;
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.toggle-password:hover {
    opacity: 0.8;
}

body.night-mode .toggle-password {
    opacity: 0.5;
    color: #e0e0e0;
}

body.night-mode .toggle-password:hover {
    opacity: 0.8;
}

/* ===== ЗАПОМНИТЬ МЕНЯ ===== */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.remember-row .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-row .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #f5a623;
    cursor: pointer;
}

body.night-mode .remember-row .form-check input[type="checkbox"] {
    accent-color: #f5a623;
    background: #2a2a2a;
}

.remember-row .form-check label {
    color: #6b6b6b;
    cursor: pointer;
    font-size: 14px;
}

body.night-mode .remember-row .form-check label {
    color: #8a8a8a;
}

.forgot-link {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
}

.forgot-link:hover {
    color: #f5a623;
    text-decoration: underline;
}

body.night-mode .forgot-link {
    color: #8a8a8a;
}

body.night-mode .forgot-link:hover {
    color: #f5a623;
}

/* ===== РАЗДЕЛЁННАЯ КНОПКА ===== */
.auth-split-btn {
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.25);
}

body.night-mode .auth-split-btn {
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.15);
}

.auth-split-btn .btn-half {
    flex: 1;
    padding: 14px 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.25s;
    font-family: inherit;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-split-btn .btn-half .icon {
    font-size: 16px;
}

.auth-split-btn .btn-half:first-child {
    background: linear-gradient(135deg, #f5a623, #f7c948);
    color: #ffffff;
    border-radius: 14px 0 0 14px;
}

.auth-split-btn .btn-half:first-child:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

body.night-mode .auth-split-btn .btn-half:first-child {
    background: linear-gradient(135deg, #e0951a, #e6b830);
}

.auth-split-btn .btn-half:last-child {
    background: #1a1a2e;
    color: #ffffff;
    border-radius: 0 14px 14px 0;
}

.auth-split-btn .btn-half:last-child:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.night-mode .auth-split-btn .btn-half:last-child {
    background: #2a2a3e;
}

.auth-split-btn .btn-half:active {
    transform: scale(0.97);
}

/* ===== КНОПКА ОТПРАВКИ (ОДИНОЧНАЯ) ===== */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #f5a623, #f7c948);
    color: #ffffff;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.25);
    margin-top: 6px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.auth-submit-btn:active {
    transform: scale(0.97);
}

.auth-submit-btn .icon {
    font-size: 18px;
}

body.night-mode .auth-submit-btn {
    background: linear-gradient(135deg, #e0951a, #e6b830);
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.15);
}

body.night-mode .auth-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.3);
}

/* ===== РАЗДЕЛИТЕЛЬ OAUTH ===== */
.auth-oauth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 16px;
}

.auth-oauth-divider::before,
.auth-oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8ed;
}

body.night-mode .auth-oauth-divider::before,
body.night-mode .auth-oauth-divider::after {
    background: #3a3a3a;
}

.auth-oauth-divider span {
    color: #8e8e93;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 500;
}

body.night-mode .auth-oauth-divider span {
    color: #6a6a6a;
}

/* ===== СОЦИАЛЬНЫЕ КНОПКИ ===== */
.fr_welcome_social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.fr_welcome_social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid #e8e8ed;
    background: #ffffff;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    flex: 1 1 auto;
    min-width: 100px;
    justify-content: center;
    min-height: 48px;
}

body.night-mode .fr_welcome_social a {
    border-color: #3a3a3a;
    background: #2a2a2a;
    color: #e0e0e0;
}

.fr_welcome_social a:hover {
    border-color: #f5a623;
    background: #fcf9f0;
    transform: translateY(-2px);
}

body.night-mode .fr_welcome_social a:hover {
    border-color: #f5a623;
    background: #2d2d1e;
    color: #ffffff;
}

.fr_welcome_social a img,
.fr_welcome_social a svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ===== */
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #6b6b6b;
}

body.night-mode .auth-switch {
    color: #8a8a8a;
}

.auth-switch .switch-link {
    color: #f5a623;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 8px;
}

.auth-switch .switch-link:hover {
    text-decoration: underline;
}

body.night-mode .auth-switch .switch-link {
    color: #f5a623;
}

/* ===== УСЛОВИЯ ===== */
.auth-terms {
    font-size: 12px;
    color: #8e8e93;
    text-align: center;
    margin-top: 16px;
    line-height: 1.7;
}

body.night-mode .auth-terms {
    color: #6a6a6a;
}

.auth-terms a {
    color: #f5a623;
    text-decoration: none;
    font-weight: 500;
}

.auth-terms a:hover {
    text-decoration: underline;
}

body.night-mode .auth-terms a {
    color: #f5a623;
}

/* ===== ОШИБКИ ===== */
.alert-danger {
    padding: 12px 16px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

.alert-danger.show {
    display: block;
}
.alert-danger.mt15 {
    margin-top: 12px;
}
.alert-danger.mb0 {
    margin-bottom: 0;
}

body.night-mode .alert-danger {
    background: #3d1a1a;
    color: #ff6b6b;
    border-color: #5a2a2a;
}

/* ===== ДАТА РОЖДЕНИЯ ===== */
.birthdate-group {
    margin-bottom: 14px;
}

.birthdate-group .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b6b6b;
    display: block;
    margin-bottom: 6px;
}

body.night-mode .birthdate-group .form-label {
    color: #8a8a8a;
}

.birthdate-row {
    display: flex;
    gap: 10px;
}
.birthdate-row .col {
    flex: 1;
}
.birthdate-row .auth-input-group {
    margin-bottom: 0;
}

/* ===== ФОРМ-ЧЕКБОКСЫ ===== */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #f5a623;
    cursor: pointer;
}

body.night-mode .form-check-input {
    accent-color: #f5a623;
    background: #2a2a2a;
}

.form-check-label {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.5;
    cursor: pointer;
}

body.night-mode .form-check-label {
    color: #8a8a8a;
}

.form-check-label a {
    color: #f5a623;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

body.night-mode .form-check-label a {
    color: #f5a623;
}

/* ===== КАПЧА ===== */
.form-group {
    margin-bottom: 14px;
}

.form-group .g-recaptcha,
.form-group .cf-turnstile,
.form-group .h-captcha {
    display: flex;
    justify-content: center;
}

body.night-mode .form-group .g-recaptcha > div {
    background: #1a1a1a !important;
}

/* ===== СОСТОЯНИЕ ЗАГРУЗКИ ===== */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

body.night-mode .btn-loading::after {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
}

/* ============================================
   РЕГИСТРАЦИЯ - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ============================================ */

/* Пол (select) */
.auth-input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3e%3cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

body.night-mode .auth-input-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3e%3cpath d='M1 1l5 5 5-5' stroke='%238a8a8a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
}

/* ============================================
   RESET.TPL (ВОССТАНОВЛЕНИЕ ПАРОЛЯ)
   ============================================ */

/* Вертикальное центрирование */
body.reset-page,
body.reset-page .main-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: #faf8f5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.night-mode.reset-page,
body.night-mode.reset-page .main-wrapper {
    background: #121212;
}

body.reset-page .main-header:not(.ele_welcome_top),
body.reset-page .ele_sidebar_left {
    display: none !important;
}

/* Контейнер */
.reset-container {
    display: flex;
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 450px;
}

body.night-mode .reset-container {
    background: #1e1e1e;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.reset-forms {
    flex: 1;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

body.night-mode .reset-forms {
    background: #1e1e1e;
}

.reset-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Логотип */
.reset-logo {
    text-align: center;
    margin-bottom: 24px;
}

.reset-logo .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #2c2c2c;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

body.night-mode .reset-logo .logo-text {
    color: #e8e8e8;
}

.reset-logo .logo-text .sun {
    font-size: 22px;
    display: inline-block;
    flex-shrink: 0;
}

.reset-logo .logo-text .highlight {
    color: #f5a623;
}

body.night-mode .reset-logo .logo-text .highlight {
    color: #f5a623;
}

.reset-logo .logo-sub {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.night-mode .reset-logo .logo-sub {
    color: #8a8a8a;
}

/* Ссылка "На главную" */
.reset-home-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8e8ed;
}

body.night-mode .reset-home-link {
    border-top-color: #3a3a3a;
}

.reset-home-link .home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8e8e93;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s, transform 0.25s, background 0.25s;
    padding: 8px 20px;
    border-radius: 20px;
    background: #f5f5f7;
    min-height: 44px;
}

body.night-mode .reset-home-link .home-link {
    color: #9a9a9a;
    background: #2a2a2a;
}

.reset-home-link .home-link .home-icon {
    font-size: 18px;
    line-height: 1;
}

.reset-home-link .home-link .home-arrow {
    font-size: 16px;
    transition: transform 0.25s;
}

.reset-home-link .home-link:hover {
    color: #f5a623 !important;
    background: #fcf9f0 !important;
    transform: translateY(-2px);
    text-decoration: none;
}

body.night-mode .reset-home-link .home-link:hover {
    color: #f5a623 !important;
    background: #2d2d1e !important;
}

.reset-home-link .home-link:hover .home-arrow {
    transform: translateX(4px);
}

/* ============================================
   ПРАВАЯ ДЕКОРАТИВНАЯ ЧАСТЬ
   ============================================ */

.auth-decoration {
    flex: 0 0 50%;
    padding: 40px 35px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

body.night-mode .auth-decoration {
    background: linear-gradient(145deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
}

.auth-decoration::before {
    content: '☀️';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 250px;
    opacity: 0.03;
    pointer-events: none;
}

body.night-mode .auth-decoration::before {
    opacity: 0.05;
}

.auth-decoration::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

body.night-mode .auth-decoration::after {
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
}

.auth-decoration-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-decoration-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-decoration-content .description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-top: 0;
}

.auth-decoration-content .divider {
    width: 40px;
    height: 2px;
    background: #f5a623;
    border-radius: 2px;
    margin: 4px 0;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    line-height: 1.4;
}

.auth-feature .icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 166, 35, 0.15);
    border-radius: 50%;
    font-size: 14px;
    margin-top: 1px;
}

.auth-feature .icon.sun-icon { background: rgba(245, 166, 35, 0.2); }
.auth-feature .icon.room-icon { background: rgba(100, 200, 255, 0.12); }
.auth-feature .icon.archive-icon { background: rgba(100, 200, 150, 0.12); }
.auth-feature .icon.invite-icon { background: rgba(255, 200, 100, 0.12); }
.auth-feature .icon.no-ads-icon { background: rgba(255, 100, 100, 0.12); }

.auth-feature .feature-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 13.5px;
}

.auth-feature .feature-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* ===== СКАЧИВАНИЕ ПРИЛОЖЕНИЯ (ПРАВАЯ ЧАСТЬ) ===== */
.auth-app-download-right {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.auth-app-download-right p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-app-btn-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: transform 0.2s, background 0.25s, box-shadow 0.25s;
    text-decoration: none;
    backdrop-filter: blur(10px);
    min-height: 52px;
}

.auth-app-btn-right:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.auth-app-btn-right .app-icon { font-size: 24px; line-height: 1; }
.auth-app-btn-right .app-info { text-align: left; display: flex; flex-direction: column; }
.auth-app-btn-right .app-info .app-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.auth-app-btn-right .app-info .app-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}
.auth-app-btn-right .download-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, color 0.3s;
    margin-left: 4px;
}
.auth-app-btn-right:hover .download-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   QR-КОД В ПРАВОЙ ЧАСТИ (ЦЕНТРИРОВАНИЕ)
   ============================================ */

.auth-app-qr-right {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.auth-app-qr-right .qr-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-app-qr-right .qr-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
    border-radius: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-app-qr-right .qr-link:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
    background: rgba(255, 255, 255, 0.08);
}

.auth-app-qr-right .qr-link .qr-image {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    display: block;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.night-mode .auth-app-qr-right .qr-link .qr-image {
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.auth-app-qr-right .qr-link .qr-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 130px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.auth-app-qr-right .qr-link:hover .qr-hint {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   МОБИЛЬНАЯ КНОПКА СКАЧИВАНИЯ ВНУТРИ ФОРМЫ (ЦЕНТРИРОВАНИЕ)
   ============================================ */

.auth-app-download-mobile {
    display: none;
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8e8ed;
}

body.night-mode .auth-app-download-mobile {
    border-top-color: #3a3a3a;
}

/* Разделитель "или" */
.mobile-download-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.mobile-download-divider::before,
.mobile-download-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8ed;
}

body.night-mode .mobile-download-divider::before,
body.night-mode .mobile-download-divider::after {
    background: #3a3a3a;
}

.mobile-download-divider span {
    color: #8e8e93;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

body.night-mode .mobile-download-divider span {
    color: #6a6a6a;
}

/* Кнопка скачивания — центрируем */
.auth-app-btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    min-height: 52px;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.night-mode .auth-app-btn-mobile {
    background: linear-gradient(135deg, #2a2a3e, #3a3a4e);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.auth-app-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #2a2a3e, #3a3a54);
}

body.night-mode .auth-app-btn-mobile:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #3a3a4e, #4a4a5e);
}

.auth-app-btn-mobile:active {
    transform: scale(0.97);
}

.auth-app-btn-mobile .app-icon {
    font-size: 22px;
    line-height: 1;
}

.auth-app-btn-mobile .app-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-app-btn-mobile .app-info .app-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.auth-app-btn-mobile .app-info .app-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.auth-app-btn-mobile .download-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, color 0.3s;
    margin-left: 2px;
}

.auth-app-btn-mobile:hover .download-arrow {
    transform: translateY(2px);
    color: rgba(255, 255, 255, 0.7);
}

/* Подсказка под кнопкой */
.mobile-download-hint {
    font-size: 10px;
    color: #8e8e93;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

body.night-mode .mobile-download-hint {
    color: #6a6a6a;
}

/* ============================================
   ПОКАЗЫВАЕМ МОБИЛЬНУЮ КНОПКУ ТОЛЬКО НА МАЛЫХ ЭКРАНАХ
   ============================================ */

@media (max-width: 992px) {
    .auth-app-download-mobile {
        display: block !important;
    }
    
    .auth-app-download-right {
        display: none !important;
    }
}

/* Дополнительное уплотнение для мобильной кнопки на телефонах */
@media (max-width: 600px) {
    .auth-app-download-mobile {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .mobile-download-divider {
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .mobile-download-divider span {
        font-size: 10px;
    }
    
    .auth-app-btn-mobile {
        padding: 10px 18px;
        min-height: 46px;
        border-radius: 12px;
    }
    
    .auth-app-btn-mobile .app-icon {
        font-size: 18px;
    }
    
    .auth-app-btn-mobile .app-info .app-name {
        font-size: 13px;
    }
    
    .auth-app-btn-mobile .download-arrow {
        font-size: 17px;
    }
    
    .mobile-download-hint {
        font-size: 9px;
        margin-top: 4px;
    }
}

/* ============================================
   УПЛОТНЕНИЕ ЛЕВОЙ ЧАСТИ (AUTH-FORMS)
   ============================================ */

/* Компактный логотип */
.auth-card-logo .logo-tvitok-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-card-logo .logo-sub {
    font-size: 10px;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

/* Уменьшаем отступы в карточке */
.auth-card {
    max-width: 360px;
}

.auth-forms {
    padding: 30px 28px;
}

/* Уплотняем поля ввода */
.auth-input-group {
    margin-bottom: 10px;
}

.auth-input-group input,
.auth-input-group select {
    height: 44px;
    padding: 10px 14px;
    padding-right: 40px;
    font-size: 14px;
    border-radius: 10px;
    border-width: 1.5px;
}

.auth-input-group .field-icon {
    font-size: 15px;
    right: 12px;
}

.toggle-password {
    font-size: 15px;
    min-width: 36px;
    min-height: 36px;
    right: 10px;
}

/* Уплотняем кнопки */
.auth-split-btn .btn-half {
    padding: 10px 6px;
    font-size: 12px;
    min-height: 42px;
    border-radius: 10px;
}

.auth-split-btn .btn-half:first-child {
    border-radius: 10px 0 0 10px;
}
.auth-split-btn .btn-half:last-child {
    border-radius: 0 10px 10px 0;
}

.auth-submit-btn {
    padding: 10px;
    font-size: 14px;
    min-height: 44px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Уплотняем чекбоксы и переключатели */
.remember-row {
    margin-bottom: 10px;
    font-size: 13px;
}

.remember-row .form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
}

.forgot-link {
    font-size: 13px;
}

.auth-switch {
    margin-top: 12px;
    font-size: 13px;
}

/* Уплотняем социальные кнопки */
.fr_welcome_social {
    gap: 6px;
}

.fr_welcome_social a {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
    border-radius: 10px;
    border-width: 1.5px;
}

.fr_welcome_social a img,
.fr_welcome_social a svg {
    width: 18px;
    height: 18px;
}

/* Уплотняем разделитель OAuth */
.auth-oauth-divider {
    margin: 12px 0 10px;
    gap: 12px;
}

.auth-oauth-divider span {
    font-size: 10px;
}

/* Уплотняем условия */
.auth-terms {
    font-size: 11px;
    margin-top: 10px;
}

/* Уплотняем дату рождения */
.birthdate-group {
    margin-bottom: 10px;
}

.birthdate-group .form-label {
    font-size: 12px;
    margin-bottom: 4px;
}

.birthdate-row {
    gap: 6px;
}

/* Уплотняем форму регистрации (галочки) */
.form-check {
    gap: 6px;
    margin-bottom: 6px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    min-width: 16px;
}

.form-check-label {
    font-size: 12px;
}

/* ============================================
   ВЕРТИКАЛЬНОЕ ВЫРАВНИВАНИЕ ФОРМЫ ПО ЦЕНТРУ (МОБИЛЬНЫЕ)
   ============================================ */

@media (max-width: 900px) {
    .auth-page {
        align-items: center !important;
        padding-top: 0 !important;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex !important;
    }
    
    .auth-container {
        margin: auto !important;
        min-height: auto !important;
    }
    
    .auth-forms {
        padding: 30px 20px !important;
        justify-content: center !important;
    }
}

@media (max-width: 600px) {
    .auth-page {
        padding: 16px !important;
        align-items: center !important;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex !important;
        background: #faf8f5;
    }
    
    body.night-mode .auth-page {
        background: #0d0d0d;
    }
    
    .auth-container {
        margin: auto !important;
        min-height: auto !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }
    
    body.night-mode .auth-container {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
    }
    
    .auth-forms {
        padding: 24px 16px 20px !important;
        border-radius: 16px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-height: auto !important;
    }
    
    .auth-card {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* Дополнительное уплотнение на телефонах */
    .auth-forms {
        padding: 18px 14px 16px;
    }
    
    .auth-card-logo .logo-tvitok-text {
        font-size: 22px;
    }
    
    .auth-card-logo .logo-sub {
        font-size: 9px;
    }
    
    .auth-input-group input,
    .auth-input-group select {
        height: 40px;
        padding: 8px 12px;
        padding-right: 36px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .auth-split-btn .btn-half {
        padding: 8px 4px;
        font-size: 10px;
        min-height: 38px;
    }
    
    .auth-submit-btn {
        padding: 8px;
        font-size: 13px;
        min-height: 40px;
        border-radius: 8px;
    }
    
    .fr_welcome_social a {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 8px;
    }
    
    .fr_welcome_social a img,
    .fr_welcome_social a svg {
        width: 16px;
        height: 16px;
    }
    
    .auth-switch {
        font-size: 12px;
        margin-top: 10px;
    }
    
    .auth-terms {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .remember-row {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .forgot-link {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .auth-page {
        padding: 10px !important;
        align-items: center !important;
        display: flex !important;
    }
    
    .auth-forms {
        padding: 18px 12px 16px !important;
        justify-content: center !important;
    }
}

/* ============================================
   RESET ТАКЖЕ АДАПТИРУЕМ
   ============================================ */

@media (max-width: 600px) {
    .reset-container {
        min-height: auto;
        border-radius: 16px;
    }
    .reset-forms {
        padding: 28px 18px 22px;
    }
    .reset-logo .logo-text {
        font-size: 22px !important;
    }
    .reset-logo .logo-text .sun {
        font-size: 20px !important;
    }
    .reset-logo .logo-sub {
        font-size: 10px;
    }
    .reset-home-link {
        margin-top: 16px;
        padding-top: 14px;
    }
    .reset-home-link .home-link {
        font-size: 13px;
        padding: 6px 16px;
        min-height: 40px;
        border-radius: 16px;
    }
    .reset-home-link .home-link .home-icon {
        font-size: 16px;
    }
    .reset-home-link .home-link .home-arrow {
        font-size: 14px;
    }
}

/* ============================================
   УЛУЧШЕНИЯ ДЛЯ ДОСТУПНОСТИ
   ============================================ */

/* Фокус-индикатор для клавиатурной навигации */
input:focus-visible,
button:focus-visible,
a:focus-visible,
select:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
}

body.night-mode input:focus-visible,
body.night-mode button:focus-visible,
body.night-mode a:focus-visible,
body.night-mode select:focus-visible {
    outline-color: #f5a623;
}

/* Убираем авто-увеличение на iOS */
@media (max-width: 600px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Сглаживание нажатий на мобильных */
@media (hover: none) {
    .auth-split-btn .btn-half:active,
    .auth-submit-btn:active,
    .fr_welcome_social a:active,
    .reset-home-link .home-link:active,
    .auth-app-btn-mobile:active {
        transform: scale(0.96);
    }
}

/* ============================================
   СПЕЦИАЛЬНЫЙ СТИЛЬ ДЛЯ STRIPE И ПЛАТЕЖЕЙ
   ============================================ */
.stripe-field {
    min-height: 50px;
    height: 50px;
    border: 2px solid #e8e8ed;
    border-radius: 14px;
    background: #fafafc;
    padding: 0 14px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

body.night-mode .stripe-field {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.stripe-field:focus-within {
    border-color: #f5a623;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

body.night-mode .stripe-field:focus-within {
    background: #2d2d2d;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

/* Скрываем старую мобильную кнопку, если она была снаружи */
.auth-app-download-right {
    display: flex;
}

@media (max-width: 992px) {
    .auth-app-download-right {
        display: none !important;
    }
}