/* ========================================== */
/* FILE: login.css                            */
/* ========================================== */
/* --- Style de la page de connexion & Inputs Modernes --- */

.content-box {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* Centrage global */
    padding: 4rem;

}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

.login-brand-section {
    grid-column: 1;
}
.login-brand-section h2{
	color: var(--text-muted);
}
.login-form-section {
    grid-column: 2;
}

/* --- Premium Feature Cards Styling --- */
.login-features-section {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 10px;
}

/* Make the title span across all 4 columns in the grid */
.login-features-section h2 {
    grid-column: 1 / -1; 
    margin-bottom: 0px; 
}

/* --- FIX: Image Responsive --- */
.login-container img {
    display: block;
    max-width: 100%;  /* Empêche l'image de dépasser */
    height: auto;     /* Garde le ratio */
    margin: 10px 0;
    box-sizing: border-box;
}

.login-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 2rem;
}

.success-box, .error-box {
    display: none;
}

.login-form .login-field-group {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    color: var(--text-main);
    border-radius: var(--input-radius);
    font-size: 0.95rem;
    box-sizing: border-box; /* Crucial pour ne pas dépasser avec le padding */
}

.login-form input:focus {
    outline: none;
    background-color: var(--bg-card);
    border-color: var(--accent);
}

button.login-submit-btn {
    width: 100%; /* S'assure que le bouton prend toute la largeur */
    margin-top: 0.5rem;
}

/* Lien Mot de passe oublié */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-recover-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.login-recover-link:hover {
    color: var(--accent);
}

/* --- Mobile responsive layout --- */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 70px;
        padding: 0 0px; /* Petit espace sur les bords */
    }
    
    .login-brand-section {
        grid-column: 1;
        order: 2; /* Images et titre sous le formulaire */
    }
	
	.login-brand-section img{
		display:none;
    }
    
    .login-form-section {
        grid-column: 1; /* CORRECTION CRITIQUE: Force le formulaire sur la colonne 1 */
        order: 1; /* Formulaire en haut */
    }
    
    .login-features-section {
        grid-column: 1;
        order: 3; /* Blocs d'informations tout en bas */
        grid-template-columns: 1fr; /* Empilement vertical complet */
        gap: 20px;
        margin-top: 0px;
    }

    /* Force le conteneur du formulaire à ne pas s'élargir */
    .login-form {
        width: 100%;
    }
    
    .content-box {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto; /* Centrage global */
        padding: 1.5rem;
    }
}