/* 1. Общие стили страниц и контента */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.main-content {
    padding: 30px 0;
    min-height: 60vh;
}

/* 2. Хлебные крошки */
.breadcrumbs-container {
    background-color: #f1f1f1;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    background-color: transparent;
}

/* 3. Унифицированные карточки */
.unified-card {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: none;
    background-color: #F0FFF0; /* Светло-зеленый фон */
    margin-bottom: 30px;
}

.unified-card .card-header {
    background-color: rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: 600;
}

.unified-card .card-body {
    padding: 2rem;
}

/* 4. Стили общей формы авторизации */
.auth-form-container {
    max-width: 350px !important; /* Фиксированная ширина для симметрии */
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* Убираем общий gap, так как используем отступы групп */
}

/* Все поля ввода и кнопки (кроме чекбоксов) */
.auth-form-container input:not([type="checkbox"]),
.auth-form-container button,
.auth-form-container .btn-vk-auth {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    margin-bottom: 5px !important;
    box-sizing: border-box !important;
    border-radius: 8px;
}

/* 5. Группировка Label + Input (решение проблемы "липкости") */
.form-group-custom {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important; /* Зазор между блоками (например, Email и Пароль) */
}

.form-label-custom {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 8px !important; /* Зазор между текстом и самим полем ввода */
    margin-left: 2px !important;
}

/* 6. Специфичные элементы: Чекбокс "Запомнить меня" */
.remember-me-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 10px 0 !important;
    padding-left: 2px;
}

.remember-me-wrapper input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
}

.remember-me-wrapper label {
    margin-bottom: 0 !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* 7. Разделитель "или" */
.social-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
    width: 100%;
}

.social-divider hr {
    border: 0;
    border-top: 1px solid #eee;
}

.social-divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #F0FFF0; /* Совпадает с фоном карточки */
    padding: 0 10px;
    color: #888;
    font-size: 14px;
}

/* 8. Кнопки и иконки */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.btn-vk-auth {
    background-color: #0077FF;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
    border: none;
}

.btn-vk-auth:hover {
    background-color: #0066EE;
    transform: translateY(-1px);
}

.vk-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Центрирование Google reCAPTCHA */
.auth-form-container .g-recaptcha {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
}

/* 9. Адаптивность */
@media (max-width: 768px) {
    .unified-card .card-body {
        padding: 1.5rem;
    }

    .auth-form-container {
        max-width: 100% !important;
        padding: 0 10px;
    }
}