/* /domains/gromadan.com/public_html/css/auth/style.css
   Стили ТОЛЬКО обёртки глобального попапа входа/регистрации
   (#authOverlay в includes/layout/header.php). Сама форма
   (.auth-widget, .btn-auth, .auth-progress, .auth-input и т.д.)
   уже описана в css/style.css — используется и здесь, и раньше
   использовалась в sidebar, дублировать эти правила не нужно. */

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.auth-overlay.open {
    display: flex;
}

body.auth-modal-lock {
    overflow: hidden;
}

.auth-modal {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 360px;
    padding: 28px 24px 24px;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-modal-close:hover {
    background: var(--border);
}

/* === Переключатель Войти / Регистрация внутри попапа ===
   В отличие от старого auth-choice (2 больших кнопки, которые
   исчезали после выбора), эти вкладки видны всегда — дают
   переключиться туда-обратно, не закрывая попап. */
.auth-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg);
    border-radius: var(--radius-pill);
    padding: 4px;
    margin-bottom: 16px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    background: var(--gradient);
    color: #fff;
}