/* ═══════════════════════════════════════════════════════════════════
   BEPorteo — La connexion (maquette cible, planche « Accueil », lot G.3c)
   Donald KOUAZOUN <donald.kouazoun@gmail.com>

   Chargée par templates/securite/connexion.html.twig, APRÈS fontes.css
   (Archivo et IBM Plex Sans, auto-hébergées).

   L'écran partagé de la maquette : un panneau marine de 620 px à gauche —
   la marque en haut, « BEPorteo » et sa mission au milieu, le pied en bas —,
   et la carte de connexion de 400 px centrée sur le gris à droite. Mêmes
   mesures que les champs et les boutons de la SPA (34 px, rayon 7 px ;
   bouton de 40 px, rayon 8 px).

   Sous 900 px, le panneau se replie en bandeau au-dessus de la carte : la
   page s'ouvre aussi sur le téléphone d'un chef de chantier.
   ═══════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.connexion {
    margin: 0;
    min-height: 100vh;
    display: flex;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    color: #10233d;
    background: #eef2f7;
}

/* ── Le panneau de la marque ─────────────────────────────────────── */

.connexion-marque {
    width: 620px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    background: #0d2f5a;
    color: #fff;
}

.connexion-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connexion-logo-carre {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #f8c300;
}

.connexion-logo-mot {
    font-family: Archivo, sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .16em;
}

.connexion-accroche {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.connexion-nom {
    font-family: Archivo, sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.connexion-mission {
    font-size: 16px;
    color: #b8cbe4;
}

.connexion-filet {
    display: block;
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, #f8c300 0, #f8c300 18px, transparent 18px, transparent 26px);
}

.connexion-pied {
    font-size: 12px;
    color: #8fb0d8;
}

/* ── La carte de connexion ───────────────────────────────────────── */

.connexion-scene {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* 400 px de CONTENU, rembourrage en plus : la maquette mesure en
   `content-box`, et sa carte fait 466 px hors tout. */
.connexion-carte {
    box-sizing: content-box;
    width: 400px;
    max-width: calc(100% - 66px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 14px;
}

.connexion-titre {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.connexion-titre h1 {
    margin: 0;
    font-family: Archivo, sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.connexion-titre span {
    font-size: 12.5px;
    color: #5b6b80;
}

.connexion-erreur {
    margin: 0;
    padding: 10px 13px;
    border-radius: 9px;
    background: #fbe9eb;
    color: #b0243a;
    font-size: 12px;
    line-height: 1.5;
}

.connexion-champ {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.connexion-etiquette {
    font-size: 12px;
    font-weight: 600;
    color: #3c4959;
}

.connexion-requis {
    color: #b0243a;
}

.connexion-champ input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dce4ee;
    border-radius: 7px;
    background: #fff;
    color: #10233d;
    font: inherit;
    font-size: 12.5px;
    outline: none;
}

.connexion-champ input:focus {
    border-color: #0b5fbf;
}

.connexion-champ input::placeholder {
    color: #67788c;
}

.connexion-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.connexion-case {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12.5px;
}

.connexion-case input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #0b5fbf;
}

.connexion-options a {
    font-size: 12.5px;
    font-weight: 500;
    color: #0b5fbf;
    text-decoration: none;
}

.connexion-options a:hover {
    text-decoration: underline;
}

.connexion-bouton {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: #0b5fbf;
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.connexion-bouton:hover {
    background: #0a4d9b;
}

/* ── Le téléphone : le panneau devient un bandeau ─────────────────── */

@media (max-width: 900px) {
    body.connexion {
        flex-direction: column;
    }

    .connexion-marque {
        width: auto;
        gap: 18px;
        padding: 24px 20px;
    }

    .connexion-nom {
        font-size: 26px;
    }

    .connexion-mission {
        font-size: 14px;
    }
}
