/* Стили для страницы восстановления пароля */
.forgot-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.forgot-container {
    max-width: 500px;
    width: 100%;
    background-color: #333333;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.forgot-logo {
    text-align: center;
    margin-bottom: 30px;
}

.forgot-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.forgot-title {
    text-align: center;
    color: #E9AE67;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.forgot-description {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #555;
    border-radius: 12px;
    background-color: #444;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #E9AE67;
    box-shadow: 0 0 0 2px rgba(233, 174, 103, 0.2);
}

.error-message {
    font-size: 12px;
    color: #ff4444;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.forgot-btn {
    width: 100%;
    padding: 14px;
    background-color: #E9AE67;
    color: #222;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.forgot-btn:hover {
    background-color: #d4913e;
    transform: translateY(-2px);
}

.forgot-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.login-link a {
    color: #E9AE67;
    text-decoration: none;
    font-size: 14px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Модальное окно */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.password-modal-content {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.password-modal-header {
    text-align: right;
    padding: 15px 20px 0;
}

.password-modal-close {
    font-size: 32px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.password-modal-close:hover {
    color: #E9AE67;
}

.password-modal-body {
    padding: 20px 30px 30px;
    text-align: center;
}

.password-modal-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.password-modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #E9AE67;
    margin-bottom: 20px;
}

.password-modal-login {
    background-color: #333;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #aaa;
    word-break: break-word;
}

.password-modal-password {
    background-color: #333;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #E9AE67;
    word-break: break-word;
    letter-spacing: 1px;
}

.password-modal-note {
    font-size: 12px;
    color: #888;
    margin-bottom: 25px;
}

.password-modal-btn {
    background-color: #E9AE67;
    color: #222;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.password-modal-btn:hover {
    background-color: #d4913e;
    transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 768px) {
    .forgot-page {
        padding: 20px 15px;
    }
    
    .forgot-container {
        padding: 25px 20px;
    }
    
    .forgot-title {
        font-size: 24px;
    }
    
    .forgot-description {
        font-size: 13px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .forgot-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .forgot-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .forgot-container {
        padding: 20px 15px;
    }
    
    .forgot-title {
        font-size: 20px;
    }
    
    .forgot-description {
        font-size: 12px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .password-modal-body {
        padding: 15px 20px 25px;
    }
    
    .password-modal-title {
        font-size: 18px;
    }
    
    .password-modal-password {
        font-size: 16px;
    }
}