/* Styles spécifiques pour les pages de réinitialisation de mot de passe */

/* Icônes dans les champs */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #9e9e9e;
    transition: all 0.25s ease;
}

.form-control:focus + .form-icon {
    color: #5e35b1;
}

/* Email display (pour la page reset) */
.email-display {
    background-color: rgba(94, 53, 177, 0.1);
    border: 1px solid rgba(94, 53, 177, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #4527a0;
    font-weight: 500;
}

/* Bouton de réinitialisation avec effet de brillance */
.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #5e35b1, #4527a0);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-reset i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #4527a0, #3949ab);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Effet de brillance sur le bouton */
.btn-reset::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.btn-reset:hover::after {
    left: 100%;
}

/* Animation du titre */
.auth-title {
    position: relative;
    display: inline-block;
}

.auth-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #5e35b1, #3949ab);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
}

.auth-card:hover .auth-title::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Lien de retour à la connexion */
.back-to-login {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.back-to-login a {
    color: #5e35b1;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.back-to-login a i {
    margin-right: 0.3rem;
}

.back-to-login a:hover {
    color: #3949ab;
    text-decoration: underline;
}

/* Animation d'entrée */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-group {
    animation: slideInUp 0.4s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 576px) {
    .btn-reset {
        padding: 0.75rem;
    }
    
    .back-to-login {
        flex-direction: column;
        gap: 0.5rem;
    }
}
