/*
 * --------------------------------------------------------------------------
 * FICHIER : assets/css/login_style.css
 * --------------------------------------------------------------------------
 * AUTEUR       : Gemini AI
 * VERSION      : 2.1.0
 * DATE CRÉATION: 27/12/2025 à 14:10
 *
 * DESCRIPTION  :
 * Styles responsive pour la page de login.
 * Gestion spécifique des SVGs (fill, stroke, positionnement).
 * --------------------------------------------------------------------------
 */

/* [RESET & BASE] */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    background: linear-gradient(135deg, #ece9e6 0%, #ffffff 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* [WRAPPER] Pour gérer le responsive */
.login-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* [CARD] La carte de connexion */
.login-card {
    background: white;
    width: 100%;
    max-width: 400px; /* Largeur max sur PC */
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* [HEADER] Logo et Titre */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.logo-circle svg {
    width: 32px;
    height: 32px;
}

.login-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.login-header p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

/* [FORMULAIRE] Groupes d'input */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

/* Wrapper pour positionner les icônes */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Style des inputs */
.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 45px; /* Espace pour les icônes gauche/droite */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px; /* Important pour éviter le zoom sur iPhone */
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
}

.input-wrapper input:focus {
    border-color: #1976d2;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* [ICONES SVG] */
/* Icône de gauche (User / Lock) */
.input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none; /* Laisse passer le clic vers l'input */
    transition: color 0.3s;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: #1976d2;
}

/* Toggle Password (Oeil) */
.password-toggle {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* Zone de clic plus grande */
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle:hover {
    color: #333;
}

/* [BOUTON] */
.btn-submit {
    width: 100%;
    background: #1976d2;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espace entre texte et icône */
    transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background: #1565c0;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* [ALERTES] */
.alert-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffcdd2;
}

.copyright {
    margin-top: 30px;
    font-size: 12px;
    color: #aaa;
}

/* [MEDIA QUERIES] Mobile Optimizations */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
}