/* ОБЩИЕ НАСТРОЙКИ СТИЛЯ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #121110;
    color: #f5f2db;
    scroll-behavior: smooth;
}

/* --- ВЕРХНЯЯ ПОЛОСКА --- */
#top-nav-bar {
    position: fixed; /* Намертво прибита к верху экрана */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; 
    background-color: #1c1a17;
    border-bottom: 2px solid #cca43b; /* Цветная золотая полоса */
    z-index: 1000; /* Всегда поверх всех элементов */
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-nav .nav-link {
    color: #f5f2db;
    text-decoration: none;
    font-size: 16px;
    margin-right: 30px;
    font-weight: bold;
    transition: color 0.3s;
}

    .left-nav .nav-link:hover {
        color: #cca43b;
    }

/* Языковая заглушка с флагами справа */
.language-select {
    position: relative;
    cursor: pointer;
    font-size: 14px;
    color: #888;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1c1a17;
    border: 1px solid #cca43b;
    list-style: none;
    padding: 5px 10px;
    margin-top: 5px;
}

.language-select:hover .lang-dropdown {
    display: block; /* Показывает список при наведении */
}


/* --- МЕХАНИКА ПАРАЛЛАКСА (БЭКГРАУНД) --- */
#welcome-screen {
    width: 100%;
    height: 100vh; /* Ровно на весь экран */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Фиксируем задний фон */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Картинка НЕ двигается при скролле! */
    padding-top: 70px; /* Чтобы верхний бар не перекрывал форму */
}

/* --- ЦЕНТРАЛЬНЫЙ БЛОК АВТОРИЗАЦИИ --- */
#login-block {
    width: 100%;
    max-width: 400px;
    background-color: rgba(28, 26, 23, 0.9); /* Полупрозрачный темный теремной фон */
    border: 2px solid #cca43b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
}

    #login-block h3 {
        color: #cca43b;
        font-size: 24px;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.login-form .input-field {
    margin-bottom: 15px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    background-color: #121110;
    border: 1px solid #3a3530;
    color: #fff;
    font-size: 16px;
}

.login-form input:focus {
    outline: none;
    border-color: #cca43b;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
    color: #aaa;
}

.forgot-link {
    color: #cca43b;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* Кнопки Вход и Регистрация */
.form-buttons {
    display: flex;
    justify-content: space-between;
}

.btn-login, .btn-register {
    width: 48%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-login {
    background-color: #cca43b;
    color: #121110;
}

    .btn-login:hover {
        background-color: #e5b945;
    }

.btn-register {
    background-color: #3a3530;
    color: #cca43b;
    border: 1px solid #cca43b;
}

    .btn-register:hover {
        background-color: #4a433d;
    }


/* --- ВТОРОЙ ЭКРАН (НАПЛЫВАЮЩИЙ ЧЕРНЫЙ ФОН) --- */
#info-screen {
    position: relative;
    width: 100%;
    background-color: #0c0b0a; /* Черный плотный фон */
    border-top: 3px solid #cca43b;
    padding: 8px 0 60px 0;
    z-index: 10; /* Поднимает блок над фоном первого экрана */
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-block h2 {
    color: #cca43b;
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
}

.history-block p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #ccc;
}

/* РЯД ОКШЕК ДЛЯ СКРИНШОТОВ */
.screenshots-gallery {
    margin-top: 60px;
    border-top: 1px solid #2c2925;
    padding-top: 30px;
}

    .screenshots-gallery h3 {
        color: #cca43b;
        text-align: center;
        margin-bottom: 25px;
    }

.screenshots-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.screen-shot-box {
    width: 23%;
    height: 140px;
    background-color: #1c1a17;
    border: 1px solid #3a3530;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s;
    cursor: pointer;
}

    .screen-shot-box:hover {
        border-color: #cca43b;
        color: #cca43b;
        transform: translateY(-5px); /* Легкий 3D-подъем при наведении */
    }
/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА РЕГИСТРАЦИИ                             */

/* Затемняющий фон на весь экран */
#modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Плотное затемнение */
    z-index: 2000; /* Поверх навигационной панели */
    align-items: center;
    justify-content: center;
}

/* Само черное окошко по центру */
#register-modal {
    position: relative;
    width: 100%;
    max-width: 550px; /* Сделали шире, так как полей много */
    background-color: #0c0b0a; /* Глухой черный цвет фона */
    border: 2px solid #cca43b;
    padding: 40px 30px 30px 30px;
    box-shadow: 0 0 30px rgba(204, 164, 59, 0.2);
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Крестик закрытия */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #cca43b;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

    .modal-close-btn:hover {
        color: #fff;
    }

#register-modal h3 {
    color: #cca43b;
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Сетка для аккуратного размещения полей ввода в две колонки */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
}

    .form-group-modal label {
        font-size: 14px;
        color: #aaa;
        margin-bottom: 5px;
    }

    .form-group-modal input, .form-group-modal select {
        padding: 10px;
        background-color: #151412;
        border: 1px solid #3a3530;
        color: #fff;
        font-size: 14px;
    }

        .form-group-modal input:focus, .form-group-modal select:focus {
            outline: none;
            border-color: #cca43b;
        }

/* Стили блока капчи */
.captcha-block {
    border-top: 1px solid #2c2925;
    padding-top: 15px;
    margin-bottom: 20px;
}

    .captcha-block label {
        font-size: 14px;
        color: #aaa;
        display: block;
        margin-bottom: 5px;
    }

.captcha-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-image-zone {
    display: flex;
    align-items: center;
    background-color: #151412;
    border: 1px solid #3a3530;
    padding: 3px 10px;
}

    .captcha-image-zone img {
        height: 50px;
        width: 180px;
        background: #151412;
    }

.btn-refresh {
    background: none;
    border: none;
    color: #cca43b;
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
}

    .btn-refresh:hover {
        color: #fff;
    }

#reg-captcha {
    width: 120px;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: #151412;
    border: 1px solid #3a3530;
    color: #fff;
}

/* Главная кнопка Зарегистрировать */
.btn-modal-submit {
    width: 100%;
    padding: 12px;
    background-color: #cca43b;
    color: #121110;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    margin-bottom: 15px;
}

    .btn-modal-submit:hover {
        background-color: #e5b945;
    }

/* Зона системных сообщений */
#registration-message {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    min-height: 20px;
}

.msg-error {
    color: #ff4a4a;
}
/* Красный для ошибок */
.msg-success {
    color: #4aff4a;
}
/* Зеленый для успеха */