/* ===== Страница авторизации ===== */
.main.auth-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
.main.auth-page .top-bar { margin-bottom: 16px; }
.auth-fullpage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    min-height: 0;
    gap: 0;
    background: var(--bg-main);
}
.auth-welcome,
.auth-right-panel {
    min-height: 0;
    overflow-y: auto;
}

/* Левая часть — приветствие */
.auth-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.3), var(--bg-main));
    border-right: 1px solid var(--border-light);
    transition: all 0.3s;
}
.auth-welcome-content {
    max-width: 380px;
    width: 100%;
    text-align: center;
}
.auth-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #D63384, #E91E63);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 16px 32px rgba(214, 51, 132, 0.3);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.auth-welcome h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.social-btn i { font-size: 22px; }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.social-btn:active { transform: translateY(0); }
.social-btn.yandex:hover { background: #fc3f1d; border-color: #fc3f1d; color: white; }
.social-btn.google:hover { background: #4285F4; border-color: #4285F4; color: white; }
.social-btn.telegram:hover { background: #27A7E7; border-color: #27A7E7; color: white; }

.auth-separator {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 14px 0;
}
.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.auth-separator span { padding: 0 16px; }

.email-trigger-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}
.email-trigger-btn:hover { background: rgba(214, 51, 132, 0.1); }

.auth-footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.auth-footer-text a { color: var(--accent); text-decoration: none; }
.auth-footer-text a:hover { text-decoration: underline; }

/* Правая часть */
.auth-right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    background: var(--bg-sidebar);
}

/* Призыв к регистрации */
.auth-cta { max-width: 400px; width: 100%; text-align: center; }
.cta-content { padding: 12px; }
.cta-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    background: rgba(214, 51, 132, 0.1);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: var(--accent);
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.cta-content h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.cta-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.4; }

/* Пункты списка — теперь каждый на новой строке */
.cta-features {
    list-style: none;
    text-align: left;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: var(--text-primary);
    font-size: 14px;
    border-bottom: 1px solid rgba(214, 51, 132, 0.06);
}
.cta-features li:last-child {
    border-bottom: none;
}
.cta-features li i { color: var(--accent); font-size: 16px; }

.cta-register-btn {
    width: 100%;
    background: linear-gradient(135deg, #D63384, #E91E63);
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
}
.cta-register-btn:hover { background: linear-gradient(135deg, #C12A74, #D63384); }

/* Форма */
.auth-form-panel { max-width: 420px; width: 100%; }
.auth-form-panel.hidden,
.auth-cta.hidden { display: none; }
.auth-form-container { width: 100%; }

.back-to-socials {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 14px; cursor: pointer; padding: 4px 0; margin-bottom: 8px;
    transition: 0.2s;
}
.back-to-socials:hover { color: var(--accent); }

.auth-tabs {
    display: flex; gap: 8px; margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.auth-tab {
    background: none; border: none;
    padding: 10px 22px; font-size: 16px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    position: relative; transition: 0.2s;
}
.auth-tab.active { color: var(--accent); }
.auth-tab.active::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 3px;
    background: var(--accent); border-radius: 3px 3px 0 0;
}

.auth-message {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    text-align: center;
}
.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.auth-message.hidden { display: none; }

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form.hidden { display: none; }

.form-group label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--text-primary); margin-bottom: 4px;
}
.field {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 15px; outline: none;
    transition: border-color 0.2s;
}
.field:focus { border-color: var(--accent); }

.form-options {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px;
}
.checkbox-label {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; color: var(--text-primary);
}
.checkbox-label input { accent-color: var(--accent); width: 18px; height: 18px; }
.checkbox-label a { color: var(--accent); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }
.text-link {
    background: none; border: none; color: var(--accent);
    font-size: 14px; cursor: pointer; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #D63384, #E91E63);
    border: none;
    color: white;
    padding: 13px 20px;
    border-radius: 50px;
    font-weight: 700; font-size: 16px;
    cursor: pointer; transition: 0.2s;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
    margin-top: 4px;
}
.auth-submit-btn:hover { background: linear-gradient(135deg, #C12A74, #D63384); }

.reset-hint { color: var(--text-secondary); font-size: 14px; margin: 8px 0; }
.back-to-login { display: block; text-align: center; margin-top: 16px; }

/* Адаптив */
@media (max-width: 1100px) {
    .auth-fullpage { grid-template-columns: 1fr; overflow-y: auto; }
    .auth-welcome {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        flex-shrink: 0;
    }
    .auth-welcome.hidden { display: none; }
    .auth-right-panel { padding: 20px; flex-shrink: 0; }
}
/* телефоны/планшеты: страница прокручивается целиком, ничего не прячется под нижним меню */
@media (max-width: 1100px) {
    .main.auth-page { height: auto; min-height: 100vh; overflow: visible; padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
    .main.auth-page .auth-fullpage, .main.auth-page .auth-welcome, .main.auth-page .auth-right-panel { overflow: visible; min-height: auto; }
}
@media (max-width: 1100px) {
    .main.auth-page .auth-fullpage { grid-template-columns: minmax(0, 1fr); }
    .main.auth-page .auth-welcome, .main.auth-page .auth-right-panel { min-width: 0; max-width: 100%; box-sizing: border-box; }
}
.auth-footer-text a { display: inline-block; padding: 6px 0; }

/* 01.10: окно ожидания входа через Telegram */
.tgwait { position: fixed; inset: 0; z-index: 10050; background: rgba(10, 8, 14, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tgwait-card { width: 100%; max-width: 380px; background: var(--card-bg, #1e1b22); color: var(--text-primary, #fff); border-radius: 24px; padding: 26px 22px; text-align: center;
    border: 1px solid var(--border-light, rgba(255,255,255,.08)); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.tgwait-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #37aee2, #1e96c8); }
.tgwait-ico svg { width: 34px; height: 34px; }
.tgwait-card h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; }
.tgwait-card p { margin: 0 0 16px; color: var(--text-secondary, #aaa); line-height: 1.5; }
.tgwait-spin { width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid rgba(55, 174, 226, .25); border-top-color: #37aee2; animation: tgspin 1s linear infinite; }
@keyframes tgspin { to { transform: rotate(360deg); } }
.tgwait-btn { display: block; padding: 13px; border-radius: 14px; font-weight: 800; color: #fff !important; text-decoration: none; background: linear-gradient(135deg, #37aee2, #1e96c8); margin-bottom: 8px; }
.tgwait-cancel { background: none; border: 0; color: var(--text-secondary, #aaa); font-family: inherit; font-size: .95rem; cursor: pointer; padding: 8px; }

/* 01.10: подарки новичку и анонимность на странице входа */
.auth-perks { list-style: none; padding: 0; margin: -6px auto 18px; display: grid; gap: 8px; max-width: 320px; text-align: left; }
.auth-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-primary); }
.auth-perks i { width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; font-size: 13px; color: #fff; background: linear-gradient(135deg, #e91e63, #9c27b0); }
.auth-private { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; line-height: 1.4;
    color: var(--text-secondary); margin: 12px auto 0; max-width: 340px; text-align: left; }
.auth-private i { color: var(--accent, #D63384); font-size: 15px; flex: 0 0 auto; }

/* 01.10: на ПК с невысоким экраном (1366x768) содержимое выше панели — центрирование через auto-поля:
   при нехватке места верх не срезается, панель прокручивается */
.auth-welcome { align-items: flex-start; }
.auth-welcome-content { margin: auto 0; }
@media (min-width: 1101px) and (max-height: 860px) {
    .auth-welcome { padding: 18px 28px; }
    .auth-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 10px; border-radius: 16px; }
    .auth-welcome h1 { font-size: 22px; }
    .auth-subtitle { margin-bottom: 14px; }
    .auth-perks { margin-bottom: 14px; gap: 6px; }
}
/* светлая тема: вместо серой заливки — лёгкий розовый тон; тёмная как была */
html:not(.dark-theme) .auth-welcome { background: linear-gradient(145deg, rgba(214, 51, 132, .07), var(--bg-main)); }
.email-domain-warn { margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; text-align: left;
    color: var(--text-primary); background: rgba(245, 196, 81, .14); border: 1px solid rgba(245, 196, 81, .45); }
.email-domain-warn i { color: #e0901e; margin-right: 4px; }
.edw-btns { display: flex; gap: 8px; margin-top: 8px; }
.edw-btns button { flex: 1; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border-light, rgba(255,255,255,.15)); cursor: pointer;
    background: var(--card-bg, rgba(255,255,255,.06)); color: var(--text-primary); font: inherit; font-weight: 700; font-size: 13px; }

/* 28.10: один экран вместо двух шагов: форма входа и регистрации (вкладки) сразу справа, без кнопок «Войти через почту» и «Зарегистрироваться» и без «Назад» */
.auth-form-panel.hidden { display: block !important; }
.auth-cta, .email-trigger-btn, .back-to-socials { display: none !important; }
.auth-form-panel { max-width: 440px; }

/* 28.10: преимущества карточками с цветными значками вместо сплошного текста */
.auth-welcome .auth-perks { display: grid !important; grid-template-columns: 1fr; gap: 8px; max-width: 340px; margin: 14px auto 12px; padding: 0; list-style: none; }
.auth-welcome .auth-perks li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); font-size: 13.5px; font-weight: 600; line-height: 1.25; text-align: left; color: var(--text-primary); box-shadow: 0 8px 22px -16px rgba(0,0,0,.7); }
.auth-welcome .auth-perks li i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; margin: 0; box-shadow: 0 8px 18px -8px currentColor; }
.auth-welcome .auth-perks li:nth-child(1) i { background: linear-gradient(135deg, #ffb347, #ff6a3d); color: #fff; }
.auth-welcome .auth-perks li:nth-child(2) i { background: linear-gradient(135deg, #ff5fa2, #e91e63); }
.auth-welcome .auth-perks li:nth-child(3) i { background: linear-gradient(135deg, #8e6bff, #4f8bff); }
.auth-welcome .auth-private { display: flex !important; align-items: center; gap: 10px; max-width: 340px; margin: 10px auto 0; padding: 9px 12px; border-radius: 14px; background: rgba(52, 199, 89, .08); border: 1px solid rgba(52, 199, 89, .28); font-size: 12px; line-height: 1.35; text-align: left; opacity: 1; }
.auth-welcome .auth-private i { color: #34c759; font-size: 16px; }
.auth-welcome .social-btn { border-radius: 999px; }
.auth-welcome .auth-footer-text { font-size: 11px; opacity: .7; }
@media (max-width: 699px) { .auth-welcome .auth-perks { gap: 6px; margin: 10px auto 8px; } .auth-welcome .auth-perks li { padding: 7px 10px; font-size: 13px; } .auth-welcome .auth-private { display: none !important; } }
/* вкладки «Вход / Регистрация» таблетками */
.auth-form-panel .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); margin: 0 0 16px; }
.auth-form-panel .auth-tab { border: 0; border-radius: 999px; padding: 11px 10px; text-align: center; font-weight: 700; background: transparent; color: var(--text-secondary); transition: all .2s; }
.auth-form-panel .auth-tab.active { background: linear-gradient(135deg, #e91e63, #d63384); color: #fff; box-shadow: 0 10px 22px -10px rgba(233,30,99,.8); }
.auth-form-panel .auth-tab.active::after, .auth-form-panel .auth-tab::after { display: none; }
.auth-form-panel .auth-form .field { border-radius: 14px; min-height: 46px; }

/* значок рядом с заголовком, а не над ним */
.auth-welcome .auth-icon { display: inline-flex !important; width: 38px; height: 38px; margin: 0 10px 0 0; font-size: 17px; border-radius: 12px; vertical-align: middle; animation: none; }
.auth-welcome h1 { display: inline-block; vertical-align: middle; margin: 0; font-size: 21px; }
.auth-welcome .auth-subtitle { margin-top: 8px; }
@media (max-width: 699px) {
    .auth-welcome .auth-perks li:nth-child(n+2) { display: none; }
    .auth-welcome .auth-perks { margin: 8px auto 6px; }
    .auth-welcome .social-buttons { grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
    .auth-welcome .social-btn { font-size: 12.5px; min-height: 44px; gap: 6px; padding: 0 8px; }
    .auth-welcome .social-btn span { white-space: normal; line-height: 1.15; }
    .auth-welcome .auth-subtitle { display: none !important; }
    .auth-welcome { padding: 12px 14px 0; }
    .auth-right-panel { padding: 0 14px 14px; }
    .auth-form-panel .auth-tabs { margin-bottom: 10px; }
    .auth-form .form-group { margin-bottom: 8px; }
}

/* блоки: заголовок, преимущества, соцсети; цветные значки Google и Telegram */
.auth-welcome .auth-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 18px; background: linear-gradient(135deg, rgba(233,30,99,.20), rgba(142,107,255,.12)); border: 1px solid rgba(233,30,99,.34); box-shadow: 0 16px 34px -24px rgba(233,30,99,.8); }
.auth-welcome .auth-head .auth-icon { margin: 0; }
.auth-welcome .auth-head h1 { margin: 0; }
.auth-welcome .auth-head .auth-subtitle { flex: 1 1 100%; margin: 2px 0 0; text-align: center; }
.auth-welcome .social-buttons { padding: 12px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); }
.auth-welcome .social-btn i { font-size: 23px; }
.auth-welcome .social-btn.google i { background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.auth-welcome .social-btn.telegram i { color: #2AABEE; }
.auth-welcome .social-btn { font-weight: 700; }
@media (max-width: 699px) { .auth-welcome .auth-head { padding: 9px 12px; margin-bottom: 8px; } .auth-welcome .social-buttons { padding: 8px; } .auth-welcome .social-btn i { font-size: 20px; } }
@media (min-width: 700px) and (max-height: 820px) { .auth-welcome .auth-private { display: none !important; } .auth-welcome .auth-perks { margin: 8px auto 8px; gap: 6px; } .auth-welcome .auth-perks li { padding: 7px 12px; } .auth-welcome .auth-footer-text { display: none; } }
.auth-welcome .social-btn { font-size: 16px; }
.auth-welcome .social-btn span { font-size: 16px; }
@media (max-width: 699px) { .auth-welcome .social-btn, .auth-welcome .social-btn span { font-size: 14.5px; } }

/* поля формы: иконки внутри, скругление, подсветка фокуса, автозаполнение в цвет сайта */
.auth-form-panel .auth-form .field {
    min-height: 50px; border-radius: 14px; padding-left: 44px; font-size: 15px;
    background-color: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--text-primary);
    background-repeat: no-repeat; background-position: 15px center; background-size: 18px 18px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.auth-form-panel .auth-form .field:focus { outline: none; border-color: #e91e63; box-shadow: 0 0 0 4px rgba(233,30,99,.18); background-color: rgba(255,255,255,.08); }
.auth-form-panel .auth-form input[type="email"].field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e91e63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.auth-form-panel .auth-form input[type="password"].field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e91e63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='3'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.auth-form-panel .auth-form input[type="text"].field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e91e63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.auth-form-panel .auth-form .field:-webkit-autofill, .auth-form-panel .auth-form .field:-webkit-autofill:focus { -webkit-text-fill-color: var(--text-primary) !important; box-shadow: 0 0 0 1000px #2a2630 inset !important; caret-color: var(--text-primary); }
.auth-form-panel .auth-form .form-group label { font-weight: 700; font-size: 13px; letter-spacing: .02em; margin-bottom: 6px; }
.auth-form-panel .auth-submit-btn { min-height: 50px; border-radius: 999px; font-size: 16px; }

/* ПК: левая часть шире, преимущества в три карточки в ряд, Google и Telegram рядом */
@media (min-width: 900px) {
    .auth-welcome .auth-welcome-content { max-width: 600px; }
    .auth-welcome .auth-perks { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 10px; margin: 12px 0 12px; }
    .auth-welcome .auth-perks li { flex-direction: column; justify-content: flex-start; text-align: center; gap: 9px; padding: 14px 10px; font-size: 13.5px; }
    .auth-welcome .auth-perks li i { width: 44px; height: 44px; flex: 0 0 44px; font-size: 20px; border-radius: 14px; margin: 0; }
    .auth-welcome .social-buttons { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
    .auth-welcome .social-btn { min-height: 56px; font-size: 16px; gap: 10px; padding: 0 12px; }
    .auth-welcome .social-btn span { white-space: normal; text-align: center; line-height: 1.2; }
    .auth-welcome .auth-head { padding: 16px 20px; }
    .auth-welcome .auth-head h1 { font-size: 25px; }
    .auth-welcome .auth-private { max-width: none; }
    .auth-welcome .auth-icon { width: 46px; height: 46px; font-size: 21px; }
    .auth-right-panel { display: flex; align-items: center; justify-content: center; }
    .auth-form-panel { max-width: 460px !important; }
}
.auth-form-panel .auth-form .field:-webkit-autofill, .auth-form-panel .auth-form .field:-webkit-autofill:focus, .auth-form-panel .auth-form .field:-webkit-autofill:hover {
    box-shadow: 0 0 0 0 transparent inset !important; transition: background-color 99999s ease-out 0s; -webkit-text-fill-color: var(--text-primary) !important;
}
.auth-welcome .social-buttons { grid-template-columns: 1fr 1fr !important; }

/* ===== финал: без белого свечения, без прокрутки на ПК, анимации ===== */
.social-btn:hover, .social-btn:active { box-shadow: none !important; }
.auth-welcome .auth-perks li, .auth-welcome .auth-head, .auth-welcome .social-buttons { box-shadow: none !important; }
.auth-welcome .auth-perks li i { box-shadow: none !important; }
.auth-welcome .auth-gift { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #3a2400; background: linear-gradient(135deg, #ffd36b, #ff9f43); animation: authGift 2.6s ease-in-out infinite; }
.auth-welcome .auth-gift i { font-size: 13px; }
@keyframes authUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes authGift { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.07) rotate(-2deg); } }
@keyframes authSwap { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.auth-welcome .auth-head { animation: authUp .55s cubic-bezier(.2,.7,.2,1) both; }
.auth-welcome .auth-perks li { animation: authUp .55s cubic-bezier(.2,.7,.2,1) both; transition: transform .25s, border-color .25s, background .25s; }
.auth-welcome .auth-perks li:nth-child(1) { animation-delay: .10s; }
.auth-welcome .auth-perks li:nth-child(2) { animation-delay: .18s; }
.auth-welcome .auth-perks li:nth-child(3) { animation-delay: .26s; }
.auth-welcome .auth-perks li:hover { transform: translateY(-3px); border-color: rgba(233,30,99,.55); }
.auth-welcome .social-buttons { animation: authUp .55s .34s cubic-bezier(.2,.7,.2,1) both; }
.auth-welcome .social-btn { transition: transform .22s, border-color .22s, background .22s; }
.auth-welcome .social-btn:hover { transform: translateY(-2px) scale(1.015); border-color: rgba(233,30,99,.6); }
.auth-right-panel { animation: authUp .6s .2s cubic-bezier(.2,.7,.2,1) both; }
.auth-form-panel .auth-form:not(.hidden) { animation: authSwap .35s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .auth-welcome *, .auth-right-panel, .auth-form-panel * { animation: none !important; } }
@media (min-width: 900px) {
    .main.auth-page { height: 100vh; overflow: hidden; }
    .auth-fullpage { min-height: 0; height: auto; flex: 1; align-items: center; }
    .auth-welcome, .auth-right-panel { overflow: visible; height: auto; align-self: center; }
    .auth-welcome .auth-private, .auth-welcome .auth-separator { display: none !important; }
    .auth-welcome .auth-footer-text { display: block !important; font-size: 11px; opacity: .65; margin-top: 10px; }
    .auth-welcome .auth-footer-text br { display: none; }
    .auth-welcome .auth-perks { margin: 10px 0 10px; }
    .auth-welcome .auth-head { margin-bottom: 10px; }
}
@media (max-width: 899px) { .auth-welcome .auth-subtitle { display: block !important; font-size: 12.5px; } }

/* значок подарка на телефоне и на ПК приколот к углу блока, строку не занимает; анимация кнопок */
.auth-welcome .auth-head { position: relative; }
.auth-welcome .auth-head .auth-gift { position: absolute; top: -11px; right: 14px; padding: 3px 10px; font-size: 12px; }
.auth-form-panel .auth-submit-btn { background-size: 220% 100%; transition: background-position .6s ease, transform .2s ease; }
.auth-form-panel .auth-submit-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(233,30,99,.8); }
.auth-form-panel .auth-submit-btn:active { transform: scale(.98); }
.auth-form-panel .auth-tab:not(.active):hover { color: #fff; background: rgba(233,30,99,.14); }

/* переключатель языков на странице входа не удлиняет страницу (прокрутка на ПК) */
body:has(.auth-page) #ero-lang { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 30; padding: 5px 14px !important; gap: 12px !important; font-size: 12px !important; background: rgba(20, 18, 26, .82); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; opacity: .9; }
@media (max-width: 699px) { body:has(.auth-page) #ero-lang { position: static; transform: none; background: transparent; border: 0; padding: 8px 12px 14px !important; } }
