/* Estilos específicos para la página de recuperar contraseña */

/* Ventana modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background-color: #fff5f5;
    border-bottom: 1px solid #fed7d7;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #c53030;
}

.error-icon {
    font-size: 24px;
    color: #e53e3e;
}

/* NOVEDAD: Estilos para el modal de éxito */
.modal-header.success-header {
    background-color: #f0fff4;
    border-bottom: 1px solid #9ae6b4;
}

.modal-header.success-header h2 {
    color: #2f855a;
}

.success-icon {
    font-size: 24px;
    color: #38a169;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-button {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: var(--primary-dark);
}

.modal-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 195, 0, 0.3);
}

/* Contenido principal */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.recovery-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.recovery-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 28px;
}

.recovery-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 195, 0, 0.1);
}

.form-group input.error {
    border-color: var(--error-color);
}

.error-message {
    display: none;
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
}

/* Botón principal */
.btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 195, 0, 0.3);
}

/* Enlaces del formulario */
.form-links {
    text-align: center;
}

.back-link {
    color: var(--primary-link);
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
    color: #9d8a00;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 14px 16px;
    }
    
    .recovery-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .recovery-container h1 {
        font-size: 24px;
    }
    
    .recovery-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0 10px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    .recovery-container {
        padding: 25px 15px;
    }
    
    .recovery-container h1 {
        font-size: 22px;
    }
    
    .form-group input[type="email"] {
        font-size: 16px; /* Evitar zoom en iOS */
    }
}