/* recovery.css - Стили для страницы восстановления пароля */

.recovery-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.recovery-container {
    width: 100%;
    max-width: 500px;
}

.recovery-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.recovery-header-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.recovery-logo {
    height: 60px;
    width: auto;
}

.recovery-header {
    flex: 1;
}

.recovery-header h3 {
    margin: 0 0 5px 0;
    color: #5f302f;
    font-size: 24px;
}

.recovery-header .text-muted {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.recovery-divider {
    margin: 20px 0;
    border-color: #eee;
}

.form-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.input-control {
    margin-bottom: 15px !important;
}

.input-control .label {
    font-weight: 600;
    color: #5f302f;
    margin-bottom: 5px;
    display: block;
}

.input-control .informer {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    display: block;
}

.info-box {
    background: #f0f9ff;
    border-left: 4px solid #5f302f;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

.info-box p {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.button {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.button.success {
    background: #5f302f;
    border-color: #5f302f;
}

.button.success:hover {
    background: #4a2524;
    border-color: #4a2524;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 48, 47, 0.2);
}

.button.cancel-button {
    background: #6c757d;
    border-color: #6c757d;
}

.button.cancel-button:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.button.primary {
    background: #007bff;
    border-color: #007bff;
}

.success-message {
    text-align: center;
}

.success-icon {
    margin: 20px 0;
}

.success-message h3 {
    color: #5f302f;
    margin-bottom: 15px;
}

.success-message p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.security-note {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}

.recovery-footer {
    margin-top: 30px;
    color: #666;
    font-size: 14px;
}

.recovery-footer .text-small {
    font-size: 12px;
    margin-top: 5px;
}

.recovery-footer a {
    color: #5f302f;
    text-decoration: none;
}

.recovery-footer a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .recovery-page {
        padding: 10px;
    }
    
    .recovery-container {
        max-width: 100%;
    }
    
    .recovery-header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .recovery-logo {
        height: 50px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
}

/* Индикатор загрузки */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5f302f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.recovery-card {
    animation: fadeIn 0.5s ease-out;
}

/* Сообщения об ошибках */
.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}