/* =========================
   RESET & LAYOUT GLOBAL
   ========================= */

/* Style global uniquement pour la page de connexion */
body.connexion-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #1A1A1A;

    /* Centrage horizontal du contenu */
    display: flex;
    justify-content: center;

    /* Alignement en haut de page (mobile friendly) */
    align-items: flex-start;
    min-height: 100vh;
}

/* =========================
   CONTENEUR PRINCIPAL
   ========================= */

/* Conteneur central qui limite la largeur du formulaire */
.container {
    width: 100%;
    max-width: 420px;
    padding: 30px 20px;
    margin-top: 20px;
}

/* =========================
   TITRES
   ========================= */

/* Titre principal de la page */
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Sous-titre explicatif */
.subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
}

/* =========================
   FORMULAIRE
   ========================= */

/* Organisation verticale des champs du formulaire */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Labels des champs */
.form-container label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: -5px;
}

/* =========================
   CHAMPS AVEC ICÔNE
   ========================= */

/* Conteneur relatif pour positionner icônes et bouton œil */
.input-group {
    position: relative;
    width: 100%;
}

/* Icône à gauche dans les champs */
.input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #A0A0A0;
}

/* =========================
   INPUTS
   ========================= */

/* Champs de saisie */
.form-input {
    width: 100%;
    padding: 14px;
    padding-left: 42px !important; /* espace pour l’icône */
    font-size: 15px;

    border: 1px solid #E0E0E0;
    border-radius: 10px;
    background: #F6F6F8;

    outline: none;
    transition: 0.2s;
}

/* État focus pour meilleure UX */
.form-input:focus {
    border-color: #4A6CF7;
    background: #FFFFFF;
}

/* =========================
   BOUTON AFFICHER MOT DE PASSE
   ========================= */

/* Icône œil pour afficher / masquer le mot de passe */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #A0A0A0;
    cursor: pointer;
}

/* Effet au survol */
.toggle-password:hover {
    color: #333;
}

/* =========================
   CONDITIONS (CHECKBOX)
   ========================= */

/* Ligne des conditions */
.conditions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 13px;
}

/* Taille de la checkbox */
.conditions input {
    width: 18px;
    height: 18px;
}

/* =========================
   BOUTON DE CONNEXION
   ========================= */

/* Bouton principal */
.btn-submit {
    margin-top: 15px;
    width: 100%;
    padding: 15px;

    background: #162D75;
    color: white;
    font-size: 16px;
    font-weight: 600;

    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

/* Effet hover */
.btn-submit:hover {
    background: #0F245F;
}

/* =========================
   LIEN INSCRIPTION
   ========================= */

/* Texte sous le formulaire */
.register-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

/* Lien vers la page d’inscription */
.register-text a {
    color: #162D75;
    font-weight: 600;
    text-decoration: none;
}

/* Effet hover */
.register-text a:hover {
    text-decoration: underline;
}

/* =========================
   MESSAGE ERREUR / SUCCÈS
   ========================= */

/* Message retourné par l’API (erreur ou succès) */
#message {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: red;
}
