/* ============================================================
   APP LOGIN EI — Page connexion conseiller app.ecosystemeimmo.fr
   Desktop : panneau branding gauche (54 %) + carte blanche droite
   Mobile  : hero branding compact puis carte, footer empilé
   ============================================================ */

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

.eil {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ei-soft-bg);
}

.eil__main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ══════════ Panneau branding ══════════ */
.eil-brand {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(8, 43, 87, 0.55) 0%, rgba(4, 27, 58, 0) 45%),
        linear-gradient(to top, rgba(2, 12, 26, 0.55) 0%, rgba(4, 27, 58, 0) 40%),
        var(--ei-navy);
    color: #fff;
    padding: 2rem 1.5rem;
    min-height: 46vh;
    display: flex;
    flex-direction: column;
}

.eil-brand__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 34rem;
}

/* Logo */
.eil-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.eil-logo__badge {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

.eil-logo__wordmark {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.eil-logo__wordmark em {
    font-style: normal;
    color: var(--ei-orange);
}

.eil-brand__tagline {
    margin-top: .65rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

/* Promesse */
.eil-brand__title {
    font-family: "Playfair Display", "Inter", serif;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.01em;
}

.eil-brand__bar {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 1.1rem;
    border-radius: 999px;
    background: var(--ei-orange);
}

.eil-brand__text {
    margin-top: 1.25rem;
    max-width: 28rem;
    font-size: .95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

/* Bénéfices — masqués sur très petit écran */
.eil-benefits {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: none;
    gap: 1.25rem;
}

.eil-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.eil-benefit__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--ei-blue);
    box-shadow: 0 10px 24px -8px rgba(10, 94, 215, 0.55);
}

.eil-benefit__icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.eil-benefit__body strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
}

.eil-benefit__body small {
    display: block;
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.6);
}

}

.eil-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-height: 100px;
}

.eil-marquee-content {
    display: flex;
    flex-direction: column;
    animation: eil-marquee 10s linear infinite;
}

.eil-marquee-container:hover .eil-marquee-content {
    animation-play-state: paused;
}

@keyframes eil-marquee {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* Bloc sécurité */
.eil-security {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-top: 3rem;
    margin-bottom: .25rem;
    padding: 1.05rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.eil-security__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 107, 0, 0.18);
    color: var(--ei-orange);
}

.eil-security__icon svg { width: 19px; height: 19px; }

.eil-security__text {
    margin: 0;
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

.eil-security__text strong {
    display: block;
    color: #fff;
    font-weight: 700;
}

/* ══════════ Panneau carte ══════════ */
.eil-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.eil-card {
    width: 100%;
    max-width: 560px;
    background: var(--ei-white);
    border: 1px solid #EDF1F7;
    border-radius: var(--ei-card-radius);
    box-shadow: 0 12px 32px -16px rgba(4, 27, 58, 0.14);
    padding: clamp(1.4rem, 3.2vw, 2.1rem);
    text-align: center;
}

.eil-card__halo {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto .85rem;
    border-radius: 999px;
    background: #F4F7FB;
    color: var(--ei-navy-2);
}

.eil-card__halo svg { width: 24px; height: 24px; }

.eil-card__title {
    font-size: clamp(1.3rem, 2.6vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ei-text);
}

.eil-card__brand {
    display: block;
    margin-top: .45rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .22em;
    color: var(--ei-navy);
}

/* Séparateur ligne — trait orange — ligne */
.eil-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .9rem 0;
}

.eil-divider__line {
    flex: 1;
    height: 1px;
    background: #E4EAF3;
}

.eil-divider__dot {
    width: 32px;
    height: 4px;
    border-radius: 999px;
    background: var(--ei-orange);
}

.eil-card__intro {
    max-width: 26rem;
    margin: 0 auto 1.1rem;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ei-muted);
    text-align: center;
}

/* Flash */
.eil-flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.1rem;
    padding: .75rem 1rem;
    border-radius: var(--ei-input-radius);
    font-size: .85rem;
    text-align: left;
    line-height: 1.45;
}

.eil-flash--error {
    background: #FEF3F2;
    border: 1px solid #FECDCA;
    color: #B42318;
}

.eil-flash--success,
.eil-flash--info {
    background: #EFF6FF;
    border: 1px solid #B9DBFF;
    color: #12467F;
}

.eil-flash__close {
    flex: none;
    background: none;
    border: none;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .7;
}

.eil-flash__close:hover { opacity: 1; }

/* Formulaire */
.eil-form {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    text-align: left;
}

.eil-label {
    display: block;
    margin-bottom: .45rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--ei-text);
}

.eil-input-wrap {
    position: relative;
    isolation: isolate;
}

.eil-input {
    width: 100%;
    height: 56px;
    padding: 0 1rem 0 3rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ei-text);
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: var(--ei-input-radius);
    transition: border-color .15s ease;
}

.eil-input::placeholder { color: #9AA7BC; }

.eil-input:hover { border-color: #c7d2e2; }

.eil-input:focus {
    outline: none;
    border-color: var(--ei-navy);
    box-shadow: none;
}

.eil-input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    display: flex;
    color: var(--ei-muted);
    pointer-events: none;
}

.eil-input-icon svg { width: 19px; height: 19px; }

/* Ligne label + suggestion */
.eil-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .45rem;
}

.eil-label-row .eil-label { margin-bottom: 0; }

.eil-suggest {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ei-navy-2);
    cursor: pointer;
}

.eil-suggest:hover { text-decoration: underline; color: var(--ei-navy); }

/* Champ code de vérification */
.eil-input--code {
    text-align: center;
    letter-spacing: .45em;
    font-weight: 700;
    font-size: 1.05rem;
}

.eil-back {
    margin-top: .9rem;
    text-align: center;
}

.eil-back a {
    font-size: .8rem;
    color: var(--ei-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.eil-back a:hover {
    color: var(--ei-navy);
    text-decoration: underline;
}

/* Bouton afficher / masquer le mot de passe */
.eil-input--toggle { padding-right: 3.2rem; }

.eil-toggle-pw {
    position: absolute;
    top: 50%;
    right: .7rem;
    transform: translateY(-50%);
    z-index: 2;
    line-height: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--ei-muted);
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.eil-toggle-pw svg { width: 18px; height: 18px; }

.eil-toggle-pw:hover {
    color: var(--ei-navy);
    background: #F1F5FA;
}

/* Lien mot de passe oublié */
.eil-forgot {
    margin: .45rem 0 0;
    text-align: right;
}

.eil-forgot a {
    font-size: .78rem;
    color: var(--ei-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.eil-forgot a:hover {
    color: var(--ei-navy);
    text-decoration: underline;
}

/* CTA principal */
.eil-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    height: 56px;
    margin-top: .35rem;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: var(--ei-orange);
    border: none;
    border-radius: var(--ei-input-radius);
    box-shadow: 0 14px 30px -12px rgba(255, 107, 0, 0.55);
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}

.eil-submit svg { width: 18px; height: 18px; }

.eil-submit:hover { background: var(--ei-orange-hover); }
.eil-submit:active { transform: scale(.985); }

/* Réassurance */
.eil-reassure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: 1.1rem 0 0;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ei-muted);
}

.eil-reassure svg { width: 14px; height: 14px; color: var(--ei-navy); }

/* ══════════ Footer 3 colonnes ══════════ */
.eil-footer {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-top: 1px solid #E9EEF5;
}

.eil-footer__col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.eil-footer__col + .eil-footer__col {
    border-top: 1px solid #EEF2F8;
}

.eil-footer__col--link:hover { background: var(--ei-soft-bg); }

.eil-footer__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #EAF1FE;
    color: var(--ei-blue);
}

.eil-footer__icon svg { width: 19px; height: 19px; }

.eil-footer__col p { margin: 0; }

.eil-footer__col strong {
    display: block;
    font-size: .875rem;
    font-weight: 700;
    color: var(--ei-text);
}

.eil-footer__col small {
    display: block;
    font-size: .78rem;
    color: var(--ei-muted);
}

/* ══════════ Bandeau sécurité (au-dessus du footer, sans cadre) ══════════ */
.eil-security-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    max-width: 44rem;
    margin: 0 auto;
    padding: .9rem 1.5rem;
    font-size: .8rem;
    color: var(--ei-muted);
}

.eil-security-line svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--ei-navy);
}

.eil-security-line strong { color: var(--ei-text); font-weight: 700; }

/* ══════════ Responsive ══════════ */

/* Tablette : bénéfices visibles en hero */
@media (min-width: 640px) {
    .eil-benefits { display: flex; flex-direction: column; }
}

/* Footer horizontal */
@media (min-width: 768px) {
    .eil-footer { grid-template-columns: repeat(3, 1fr); }

    .eil-footer__col + .eil-footer__col {
        border-top: none;
        border-left: 1px solid #EEF2F8;
    }
}

/* Desktop : split screen + coupure diagonale légère */
@media (min-width: 1024px) {
    .eil { min-height: calc(100vh - 78px); }

    .eil__main { flex-direction: row; }

    .eil-brand {
        width: 59%;
        flex: none;
        min-height: 0;
        padding: 3rem 3.25rem 2.75rem;
        clip-path: polygon(0 0, 100% 0, calc(100% - 3vw) 100%, 0 100%);
    }

    .eil-brand__content {
        flex: 1;
        max-width: 36rem;
        margin: 0 auto;
        justify-content: space-between;
        gap: 0;
        min-height: 100%;
    }

    /* Carte remontée : plus d'air sous le panneau droit qu'au-dessus */
    .eil-panel {
        flex: 1;
        padding: 2.25rem 2rem 5rem;
    }

    /* Footer toujours visible, fixé en bas de l'écran */
    .eil-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        box-shadow: 0 -6px 24px rgba(10, 31, 68, 0.06);
    }

    .eil-footer__col { padding: 1.15rem 1.25rem; }
}
