/* ========================================
   CUSTOM.CSS - Главная страница Bizzo.ru
   ======================================== */

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Nunito Sans', sans-serif;
}

body {
    background: #000;
}

/* Убираем WordPress Admin Bar */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
#beehive-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.site-content {
    margin: 0;
    padding: 0;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* === НАВИГАЦИЯ === */
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #5081ff;
}

/* Мобильный toggle */
.beehive-toggler {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Видео-фон */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Контент */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 90%;
    padding: 0 20px;
}

/* === ЛЕВЫЙ БЛОК (Features) === */
.features-block {
    flex: 1;
    padding: 50px 40px;
    background: #4169E1;
    color: white;
    display: flex;  
    flex-direction: column;  
    justify-content: center;
}

.features-block h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.3;
}

.feature-box {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    fill: #2A5BDD;
}

.feature-info h4 {
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.feature-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* === ПРАВЫЙ БЛОК (Login Form) === */
.login-block {
    flex: 1;
    padding: 50px 40px;
    background: white;
    display: flex; /* ДОБАВЛЕНО */
    flex-direction: column; /* ДОБАВЛЕНО */
    justify-content: center; /* ДОБАВЛЕНО: вертикальное центрирование */
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.login-header p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* === ФОРМА === */
.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.3rem;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2A5BDD;
}

/* Форма опций */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.form-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.form-options a {
    color: #2A5BDD;
    text-decoration: none;
    font-weight: 500;
}

/* Кнопка входа */
.btn-login {
    width: 100%;
    padding: 15px;
    background: #2A5BDD;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-login:hover {
    background: #1d4bbd;
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

/* Ссылка на регистрацию */
.register-link {
    text-align: center;
    margin-top: 25px;
}

.register-link a {
    color: #2A5BDD;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

/* === FOOTER === */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 10;
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 991px) {
    .hero-content {
        padding: 0 15px;
    }

    .features-block,
    .login-block {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Мобильное меню */
    .beehive-toggler {
        display: block;
    }

    .navbar-main-container {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
    }

    .navbar-main-container.active {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 15px;
    }

    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 80px;
    }

    .features-block h1 {
        font-size: 1.8rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon svg {
        width: 30px;
        height: 30px;
    }

    .login-block {
        padding: 35px 25px;
    }
}

@media (max-width: 576px) {
    .features-block,
    .login-block {
        padding: 30px 20px;
    }

    .features-block h1 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .feature-box {
        margin-bottom: 20px;
    }
}

/* === АНИМАЦИИ === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-block,
.login-block {
    animation: fadeIn 0.6s ease-out;
}

.unified-block {
    display: flex;
     
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-height: 600px;
    /* border-radius удалён — острые углы */
}
/* === OAUTH КНОПКИ === */
.oauth-divider {
    text-align: center;
    margin: 25px 0 20px;
    position: relative;
}

.oauth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.oauth-divider span {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
}

.oauth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.oauth-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.oauth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.oauth-btn.google {
    border-color: #DB4437;
}

.oauth-btn.google:hover {
    background: #DB4437;
    border-color: #DB4437;
}

.oauth-btn.google:hover svg {
    fill: white;
}

.oauth-btn.vk {
    border-color: #0077FF;
}

.oauth-btn.vk:hover {
    background: #0077FF;
    border-color: #0077FF;
}

.oauth-btn.vk:hover svg {
    fill: white;
}

.oauth-btn svg {
    width: 24px;
    height: 24px;
    transition: fill 0.3s;
}

.oauth-btn.google svg {
    fill: #DB4437;
}

.oauth-btn.vk svg {
    fill: #0077FF;
}

.reduce-10 {
    width: 70%;           
    height: auto;     
}
/* === HERO SECTION - ИСПРАВЛЕНИЯ === */
/* Делаем hero-content flex-контейнером для центрирования unified-block */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px; /* Увеличили для лучшего вида на больших экранах */
    width: 95%;
    margin: 0 auto; /* Центрирование */
    padding: 0 20px;
    display: flex; /* Добавлено: flex для управления дочерними блоками */
    justify-content: center;
    align-items: stretch; /* Растягиваем блоки на равную высоту */
}

/* Unified block - основной контейнер для двух блоков */
.unified-block {
    display: flex;
    width: 100%; /* Заполняем ширину hero-content */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-height: 600px;
    flex-direction: row; /* По умолчанию: бок о бок на десктопе */
}

/* Левый и правый блоки - равная ширина на десктопе */
.features-block,
.login-block {
    flex: 1; /* Равномерное распределение */
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Мобильная адаптация: столбец вместо строки */
@media (max-width: 991px) {
    .unified-block {
        flex-direction: column; /* Блоки друг под другом */
    }
    
    .hero-content {
        width: 90%; /* Чуть шире на планшетах */
    }
    
    .features-block,
    .login-block {
        padding: 40px 30px;
    }
}

/* Дополнительные фиксы для видео в Chrome */
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;   /* Принудительное заполнение в Chrome */
    min-height: 100%;
    transform: translateZ(0); /* Hardware acceleration для плавности */
}

/* Overlay - убедимся в покрытии */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}