/* password.css - стили для страницы восстановления пароля */

/* ===== ОБЩИЙ ФОН КАК НА ГЛАВНОЙ СТРАНИЦЕ ===== */
body {
    background-color: #1a0f0a;
    background-image: radial-gradient(circle, #2d1b13 0%, #0f0805 100%);
    color: #2b1a0a;
    font-family: "Georgia", "Times New Roman", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
}

/* ===== ШАПКА САЙТА ===== */
.header {
    background: linear-gradient(to bottom, #422616 0%, #21120a 100%);
    border-bottom: 3px double #8c6939;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===== ОСТАЛЬНЫЕ СТИЛИ (без изменений) ===== */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
}

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-link {
    color: #f4e5c3;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    font-family: "Georgia", "Times New Roman", serif;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #d4af37;
}

.nav-link-active {
    background: rgba(212, 175, 55, 0.2);
    border-bottom: 2px solid #d4af37;
    color: #d4af37;
}

/* ===== МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #2d1b13 0%, #1a0f0a 100%);
    border-top: 2px solid #8c6939;
    padding: 10px 20px;
    justify-content: space-around;
    z-index: 1000;
}

.mobile-nav-item {
    text-align: center;
    text-decoration: none;
    color: #f4e5c3;
    transition: all 0.2s;
    padding: 5px 10px;
    border-radius: 4px;
}

.mobile-nav-item:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.mobile-nav-item-active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
}

.mobile-nav-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.mobile-nav-text {
    font-size: 11px;
    font-weight: bold;
}

/* ===== ОСНОВНАЯ СЕТКА ===== */
.game-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== СТИЛЬ DWAR-BOX ===== */
.dwar-box {
    background: #f4e5c3;
    border: 4px double #8c6939;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(139, 115, 85, 0.2);
    padding: 20px;
    border-radius: 4px;
    position: relative;
}

.dwar-box::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid #d4af37;
    pointer-events: none;
}

.dwar-box h1, .dwar-box h2, .dwar-box h3 {
    color: #5c1306;
    text-align: center;
    margin-top: 0;
    border-bottom: 1px dashed #8c6939;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.dwar-box h1 {
    font-size: 22px;
}

/* ===== МЕНЮ В БОКОВОЙ ПАНЕЛИ ===== */
.side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-menu a {
    display: block;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #fffdf7 0%, #e3d2aa 100%);
    border: 1px solid #6e512c;
    border-top-color: #ebdcb9;
    border-bottom-color: #523b1f;
    color: #3b240f;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.15s ease-in-out;
}

.side-menu a:hover {
    background: linear-gradient(to bottom, #731a0b 0%, #541105 100%);
    color: #fff4d4;
    border-color: #380a02;
    border-top-color: #9c2714;
    padding-left: 18px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* ===== КОНТЕЙНЕР ФОРМЫ ВОССТАНОВЛЕНИЯ ПАРОЛЯ ===== */
.password-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a321a;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background: #fffbf0;
    border: 1px solid #705431;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: "Georgia", "Times New Roman", serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.6);
}

/* ===== ТЕЛЕФОН ===== */
.phone-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.phone-group select {
    width: auto;
    flex-shrink: 0;
}

.phone-group input {
    flex: 1;
}

/* ===== КНОПКИ ===== */
button,
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to bottom, #bd2c16 0%, #5c1306 100%);
    color: #fff2cc;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: "Georgia", "Times New Roman", serif;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    transition: filter 0.2s;
}

button:hover,
.btn:hover {
    filter: brightness(1.1);
}

button:active,
.btn:active {
    transform: translateY(1px);
}

/* ===== СООБЩЕНИЯ ===== */
.error {
    background: #dcc8b8;
    border: 1px solid #bd2c16;
    border-left: 5px solid #bd2c16;
    color: #5c1306;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info {
    background: #e8dcc8;
    border: 1px solid #8c6939;
    border-left: 5px solid #8c6939;
    color: #4a321a;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.static-text {
    background: #e3d2aa;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    color: #3b240f;
    border: 1px solid #d4af37;
    word-break: break-word;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        margin-bottom: 70px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .logo {
        height: 35px;
    }
    
    .password-container {
        margin: 20px auto;
    }
    
    .phone-group {
        flex-direction: column;
    }
    
    .phone-group select {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    button,
    .btn {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .dwar-box {
        padding: 15px;
    }
    
    .side-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

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

.password-container {
    animation: fadeIn 0.3s ease-out;
}