/* 
 * Styles spécifiques pour la page de login
 * Design moderne et élégant avec image d'arrière-plan
 */

/* Styles pour l'arrière-plan */
body {
    background-image: url('/public/medias/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.5), rgba(30, 59, 138, 0.1));
    z-index: -1;
}

/* Animation pour le formulaire de connexion */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appliquer l'animation au formulaire */
#loginForm {
    animation: fadeIn 0.5s ease-out;
}

/* Styles pour le conteneur principal */
.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Styles pour l'en-tête du formulaire */
.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.login-header h2 {
    margin-bottom: 0.5rem;
}

/* Styles pour les champs de formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--background-white);
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Styles pour le bouton de connexion */
.login-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-btn::before {
    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 ease;
    z-index: -1;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Styles pour les liens */
.login-links {
    margin-top: 1rem;
    text-align: center;
}

.login-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Styles pour le pied de page du formulaire */
.login-footer {
    background-color: var(--background-light);
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Styles pour les cartes d'information */
.info-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    border-top: 3px solid var(--primary-light);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    z-index: -1;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.info-card-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-card-text {
    font-size: 0.875rem;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 640px) {
    .info-cards {
        flex-direction: column;
    }
    
    .info-card {
        margin-bottom: 1rem;
    }
    
    body {
        background-position: top center;
    }
}

/* Animations supplémentaires */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.pulse-effect {
    animation: pulse 2s infinite;
}
