/* Contenedor principal */
.forgot-password-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    position: relative; /* Necesario para las tarjetas traslapadas */
    overflow: hidden; /* Asegura que no se desborden las tarjetas */
}

/* Contenedor del formulario */
.forgot-password-wrapper {
    max-width: 400px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative; /* Asegura que el contenido del formulario se superponga */
    z-index: 1; /* Mantener el formulario encima de las tarjetas traslapadas */
}

/* Tarjetas traslapadas */
.forgot-password-section::before,
.forgot-password-section::after {
    content: "";
    position: absolute;
    border-radius: 20px;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, rgba(242, 65, 98, 0.1), rgba(8, 10, 13, 0.05));
    z-index: 0; /* Mantenerlas al fondo */
}

.forgot-password-section::before {
    top: -20px;
    left: -20px;
    transform: rotate(-5deg);
}


.forgot-password-wrapper::after {
    bottom: -10px; /* Pequeño desborde hacia abajo */
    right: -10px; /* Pequeño desborde hacia la derecha */
    transform: rotate(5deg);
}

/* Contenido del formulario */
.forgot-password-card h2 {
    font-size: 1.8rem;
    color: #f24162;
    margin-bottom: 10px;
}

.forgot-password-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.forgot-password-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forgot-password-card input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.forgot-password-card input:focus {
    border-color: #f24162;
    outline: none;
}

.forgot-password-btn {
    padding: 12px;
    background-color: #f24162;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.forgot-password-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-3px);
}

.back-to-login {
    margin-top: 20px;
    font-size: 0.9rem;
}

.back-to-login a {
    color: #f24162;
    text-decoration: none;
}

/* Responsividad */
@media (max-width: 768px) {
    .forgot-password-wrapper {
        padding: 20px;
    }

    .forgot-password-wrapper::before,
    .forgot-password-wrapper::after {
        width: 120%;
        height: 120%; /* Un poco más grande en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    .forgot-password-card h2 {
        font-size: 1.5rem;
    }
}
