/* Fondo de toda la página con animación suave */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #6a11cb, #2575fc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Contenedor principal del formulario */
.forgot-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Título y subtítulo */
.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

/* Campos del formulario */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 4px rgba(106, 17, 203, 0.1);
    outline: none;
}

/* Errores */
.error {
    color: #e11d48;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Alertas de éxito */
.alert {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #10b981;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Botón */
.btn {
    width: 100%;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    font-weight: bold;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: linear-gradient(to right, #5e0db8, #1e63d5);
    transform: translateY(-2px);
}
