/* Page de connexion Forwexa — couleurs du logo */
:root {
    --lg-nuit: #010E3F;
    --lg-violet: #7702F0;
    --lg-cyan: #00D4FA;
    --lg-texte: #1f2937;
    --lg-gris: #64748b;
    --lg-bord: #dfe3ec;
    --lg-indigo: #2502AC;
    --lg-orange: #FCA901;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.lg-page {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--lg-texte);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 12px;
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 212, 250, .18), transparent 40%),
        radial-gradient(circle at 88% 85%, rgba(119, 2, 240, .20), transparent 45%),
        #eef1f8;
}

.lg-cadre {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(1, 14, 63, .18);
}

/* ----- Présentation ----- */
.lg-presentation {
    position: relative;
    z-index: 0;
    padding: 40px 40px 34px;
    color: #fff;
    background: linear-gradient(150deg, var(--lg-nuit) 0%, var(--lg-indigo) 58%, var(--lg-violet) 100%);
    overflow: hidden;
}
.lg-presentation::after {
    content: "";
    z-index: -1;
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(0, 212, 250, .10);
    pointer-events: none;
}

.lg-marque { display: flex; flex-direction: column; margin-bottom: 22px; }
.lg-marque-nom { font-size: 30px; font-weight: 800; letter-spacing: .14em; }
.lg-marque-sous { color: var(--lg-cyan); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }

.lg-titre { font-size: 17px; font-weight: 400; line-height: 1.5; margin: 0 0 22px; color: #e6e8f5; max-width: 460px; }
.lg-titre b { color: #fff; }

.lg-etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.lg-etapes::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(var(--lg-cyan), rgba(0, 212, 250, .15));
}
.lg-etapes li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; }
.lg-num {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--lg-nuit);
    background: var(--lg-cyan);
    box-shadow: 0 0 0 4px rgba(0, 212, 250, .2);
    z-index: 1;
}
.lg-etapes strong { display: block; font-size: 15px; }
.lg-etapes div span { display: block; font-size: 13px; color: #c9cbe6; line-height: 1.45; }

.lg-droits {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 22px 0 0;
    padding: 12px 14px;
    font-size: 13px;
    color: #e6e8f5;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
}
.lg-droits svg { flex: 0 0 20px; width: 20px; height: 20px; fill: var(--lg-cyan); }

/* ----- Carte de connexion ----- */
.lg-carte {
    padding: 44px 44px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lg-logo { width: 270px; max-width: 80%; margin: 0 auto 22px; display: block; }
.lg-carte h1 { margin: 0; font-size: 26px; color: var(--lg-nuit); text-align: center; }
.lg-sous { margin: 6px 0 26px; color: var(--lg-gris); text-align: center; font-size: 14px; }

.lg-carte label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin: 0 0 6px; }

.lg-champ {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border: 1.5px solid var(--lg-bord);
    border-radius: 10px;
    background: #f9fafc;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.lg-champ:focus-within {
    border-color: var(--lg-cyan);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 212, 250, .18);
}
.lg-champ svg { width: 18px; height: 18px; margin-left: 13px; fill: #94a3b8; flex: 0 0 18px; }
.lg-champ:focus-within svg { fill: var(--lg-violet); }
.lg-champ input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 13px 12px;
    font-size: 15px;
    color: var(--lg-texte);
}
.lg-oeil {
    border: 0;
    background: none;
    color: var(--lg-violet);
    font-weight: 600;
    font-size: 12px;
    padding: 0 14px;
    cursor: pointer;
    align-self: stretch;
}
.lg-oeil:hover { color: var(--lg-nuit); }

.lg-majuscule { margin: -8px 0 12px; font-size: 12px; color: #b45309; }
.lg-erreur { min-height: 18px; margin: 0 0 10px; font-size: 13px; color: #b91c1c; font-weight: 600; }
.lg-erreur:empty { min-height: 0; margin: 0; }

.lg-bouton {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--lg-violet), var(--lg-indigo));
    box-shadow: 0 8px 20px rgba(1, 14, 63, .25);
    transition: transform .1s, box-shadow .15s, opacity .15s;
    margin-top: 6px;
}
.lg-bouton:hover { box-shadow: 0 10px 24px rgba(1, 14, 63, .35); }
.lg-bouton:active { transform: translateY(1px); }
.lg-bouton:disabled { opacity: .8; cursor: wait; }
.lg-bouton.lg-attente span::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lg-tour .8s linear infinite;
}
@keyframes lg-tour { to { transform: rotate(360deg); } }

.lg-aide { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--lg-gris); }

.lg-pied { margin-top: 18px; font-size: 12px; color: var(--lg-gris); text-align: center; }
.lg-pied b { color: var(--lg-indigo); }
.lg-pied a { color: var(--lg-indigo); font-weight: 600; text-decoration: none; }
.lg-pied a:hover { text-decoration: underline; }

/* ----- Téléphone / tablette ----- */
@media (max-width: 860px) {
    .lg-cadre { grid-template-columns: 1fr; max-width: 480px; }
    .lg-carte { padding: 32px 26px 26px; }
    .lg-presentation { padding: 26px 26px 24px; }
    .lg-marque { margin-bottom: 12px; }
    .lg-marque-nom { font-size: 22px; }
    .lg-titre { font-size: 15px; margin-bottom: 14px; }
    .lg-etapes div span { display: none; }
    .lg-etapes li { padding: 4px 0; align-items: center; }
    .lg-num { flex-basis: 26px; height: 26px; font-size: 12px; }
    .lg-etapes::before { left: 12px; }
    .lg-droits { margin-top: 14px; }
}
