/* ===== Страница авторизации ===== */
.auth-fullpage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 140px);
    gap: 0;
    background: var(--bg-main);
}

/* Левая часть — приветствие */
.auth-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    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: 420px;
    width: 100%;
    text-align: center;
}
.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #D63384, #E91E63);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    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: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 60px;
    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.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: 20px 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: 14px 20px;
    border-radius: 60px;
    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: 24px;
}
.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: 40px;
    background: var(--bg-sidebar);
}

/* Призыв к регистрации */
.auth-cta { max-width: 420px; width: 100%; text-align: center; }
.cta-content { padding: 20px; }
.cta-icon {
    width: 70px; height: 70px;
    margin: 0 auto 20px;
    background: rgba(214, 51, 132, 0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    color: var(--accent);
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.cta-content h2 { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.cta-content p { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

/* Пункты списка — теперь каждый на новой строке */
.cta-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 15px;
    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: 60px;
    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: 8px 0; margin-bottom: 24px;
    transition: 0.2s;
}
.back-to-socials:hover { color: var(--accent); }

.auth-tabs {
    display: flex; gap: 8px; margin-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}
.auth-tab {
    background: none; border: none;
    padding: 12px 24px; 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-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form.hidden { display: none; }

.form-group label {
    display: block; font-size: 14px; font-weight: 500;
    color: var(--text-primary); margin-bottom: 8px;
}
.field {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 14px 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: 14px 20px;
    border-radius: 60px;
    font-weight: 700; font-size: 16px;
    cursor: pointer; transition: 0.2s;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
    margin-top: 8px;
}
.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; }
    .auth-welcome {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .auth-welcome.hidden { display: none; }
    .auth-right-panel { padding: 40px 20px; }
}