@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Orbitron:wght@500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF7000;
    --primary-hover: #e66500;
    --text-color: #bac6d2;
    --text-secondary: #8a9cad;
    --shadow-color: rgba(0, 0, 0, 0.7);
    --button-width: 250px;
}

html, body {
    height: 100%; /* Фиксированная высота */
    overflow: hidden; /* Убираем скролл */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: #0a1118;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Видео-фон */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Запасной фон на случай, если видео не загрузится */
    background: linear-gradient(135deg, #0a1118 0%, #18222b 50%, #23323d 100%);
    background-size: cover;
    background-position: center;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Обеспечивает заполнение всего контейнера */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Шапка и навигация */
header {
    display: flex;
    justify-content: flex-end; /* Меню справа */
    align-items: center;
    padding: min(1.5rem, 3vh) 5%;
    position: relative;
    z-index: 10;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.menu {
    display: flex;
    list-style: none;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 3px var(--shadow-color);
    white-space: nowrap;
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after {
    width: 80%;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    z-index: 20;
}

/* Основной контент */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 5% min(1.5rem, 3vh);
}

/* Контент внизу страницы */
.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: min(3rem, 6vh); /* Адаптивный отступ снизу */
}

.copyright {
    color: var(--text-secondary);
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    text-shadow: 1px 1px 3px var(--shadow-color);
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* Кнопки авторизации */
.auth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(1rem, 2vh);
    margin-bottom: min(2rem, 4vh);
}

.btn {
    padding: clamp(0.5rem, 1.5vh, 0.8rem) 0;
    font-size: clamp(0.9rem, 2.5vh, 1.1rem);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    width: clamp(180px, 40vw, var(--button-width));
}

.login-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.login-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 112, 0, 0.5);
    transform: translateY(-3px);
}

.register-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(255, 112, 0, 0.3);
}

.register-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 25px rgba(255, 112, 0, 0.6);
    transform: translateY(-3px);
}

/* Адаптивность для больших экранов */
@media (min-width: 1921px) {
    .menu {
        gap: 2rem;
    }
    
    .menu a {
        font-size: 1.3rem;
        padding: 0.7rem 1.5rem;
    }
    
    .btn {
        padding: 1rem 0;
        font-size: 1.3rem;
        width: 300px;
    }
    
    .copyright {
        font-size: 1rem;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    header {
        padding: 1.2rem 4%;
    }
    
    .menu {
        gap: 0.8rem;
    }
    
    .menu a {
        padding: 0.4rem 0.8rem;
    }
    
    .btn {
        width: 220px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    header {
        justify-content: space-between;
        padding: 1rem 5%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(10, 17, 24, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        transition: right 0.3s ease;
        z-index: 15;
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu a {
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
    }
    
    .auth-buttons {
        gap: min(1rem, 2vh);
        margin-bottom: min(1.5rem, 3vh);
    }
    
    .btn {
        width: min(250px, 70vw);
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    
    .bottom-content {
        padding-bottom: min(2.5rem, 5vh);
    }
}

/* Адаптивность для маленьких мобильных устройств */
@media (max-width: 480px) {
    header {
        padding: 0.8rem 4%;
    }
    
    .menu a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .btn {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
        padding: min(0.6rem, 1.2vh) 0;
        width: min(220px, 80vw);
    }
    
    .copyright {
        font-size: 0.7rem;
    }
    
    .bottom-content {
        padding-bottom: min(2rem, 4vh);
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 320px) {
    .menu a {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0;
        width: min(180px, 85vw);
    }
    
    .bottom-content {
        padding-bottom: min(1.8rem, 3.5vh);
    }
}

.logo {
    color: #bac6d2;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #FF7000;
}

.logo i {
    color: #FF7000;
    font-size: 1.8rem;
}

.menu a.active {
    color: #FF7000;
}

.menu a.active::after {
    width: 80%;
    background: #FF7000;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon {
    color: rgba(186, 198, 210, 0.7);
    font-size: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #FF7000;
    transform: translateY(-3px);
}

.social-icon i {
    filter: drop-shadow(0 0 5px rgba(255, 112, 0, 0.3));
}

/* Адаптивность для соц. сетей */
@media (max-width: 480px) {
    .social-icons {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .social-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 360px) {
    .social-icons {
        gap: 1.2rem;
    }
    
    .social-icon {
        font-size: 1.6rem;
    }
} 