/* ==========================================
   БАЗОВЫЕ СБРОСЫ И НАСТРОЙКИ ОКРУЖЕНИЯ
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0d10;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================
   КОНТЕЙНЕР ШАПКИ И АДАПТИВНЫЙ БАННЕР
   ========================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 35vh;
}

@media (min-width: 768px) {
    .hero-section {
        height: 55vh;
    }
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* МЯГКОЕ ЗАТЕМНЕНИЕ И ПЛАВНЫЙ УХОД В ТЕМНОТУ */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 13, 16, 0) 60%, rgba(11, 13, 16, 0.7) 85%, #0b0d10 100%);
    pointer-events: none;
}

/* ==========================================
   ЦЕНТРАЛЬНЫЙ ИНТЕРФЕЙСНЫЙ БЛОК
   ========================================== */
.content-container {
    max-width: 450px;
    width: 100%;
    margin: -60px auto 40px auto;
    padding: 30px;
    background-color: #13171e;
    border: 1px solid #27272a;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

h2 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 11px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

/* Сетка для кнопок и элементов управления */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

/* ОБЩИЕ СТИЛИ ТАКТИЧЕСКИХ КНОПОК */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-orange {
    background-color: #ea580c;
    color: #fff;
}

.btn-orange:hover {
    background-color: #f97316;
}

.btn-zinc {
    background-color: #27272a;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
}

.btn-zinc:hover {
    background-color: #3f3f46;
}

.btn-full {
    grid-column: span 2;
}

.btn-logout {
    background-color: #dc2626;
    color: #fff;
}

.btn-logout:hover {
    background-color: #ef4444;
}

/* Текстовый декоративный разделитель */
.divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: #52525b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider::before, .divider::after {
    content: "";
    flex-grow: 1;
    border-top: 1px solid #27272a;
    margin: 0 10px;
}

/* МЕЖДУНАРОДНАЯ ЯЗЫКОВАЯ ПАНЕЛЬ */
.lang-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #27272a;
}

.lang-link {
    font-size: 11px;
    font-weight: bold;
    color: #71717a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.lang-link:hover {
    color: #f97316;
}

.lang-link.active {
    color: #fff;
    border-bottom: 2px solid #ea580c;
    padding-bottom: 2px;
}

/* ==========================================
   ДИНАМИЧЕСКИЙ СЛАЙД-БЛОК ВХОДА (LOGIN)
   ========================================== */
.login-dropdown-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    text-align: left;
}

.login-dropdown-container.open {
    max-height: 550px; /* С запасом для полей и кнопок соцсетей */
    opacity: 1;
    margin-top: 20px;
}

.login-form-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.login-form-desc {
    font-size: 11px;
    color: #71717a;
    margin-bottom: 16px;
    text-align: center;
}

/* ==========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ РЕГИСТРАЦИИ (SIGNUP)
   ========================================== */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #a1a1aa;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    background-color: #0b0d10;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #ea580c;
}

/* Тактический блок требований GDPR */
.gdpr-box {
    background-color: #0b0d10;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: left;
    font-size: 11px;
    color: #d4d4d8;
    line-height: 1.5;
}

.privacy-notice {
    font-size: 11px;
    color: #71717a;
    margin-top: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-text-green {
    color: #22c55e;
    font-weight: bold;
}

.privacy-icon-green {
    width: 14px;
    height: 14px;
    fill: #22c55e;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
}

.checkbox-group input {
    margin-top: 2px;
    accent-color: #ea580c;
}

.errorlist {
    color: #ef4444;
    list-style: none;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: left;
}

.signup-container-wide {
    max-width: 500px !important;
    margin-top: -100px !important;
}

.btn-submit-margin {
    margin-top: 10px;
    cursor: pointer;
}

.facebook-color {
    border-color: #1877F2 !important;
    color: #1877F2 !important;
}

.login-link-footer {
    font-size: 12px;
    color: #71717a;
    margin-top: 20px;
}

/* ==========================================
   СИСТЕМНЫЕ АНИМАЦИИ И ПОДВАЛ
   ========================================== */
.login-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 10px;
    color: #3f3f46;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 1px solid #18181b;
}
