:root {
    --chifai-navy: #063A8C;
    --chifai-blue: #0758C9;
    --chifai-cyan: #00A9E8;
    --chifai-turquoise: #00CDBD;
    --chifai-light: #EAF5FF;
    --text: #142A47;
    --muted: #718096;
    --border: #DFE8F2;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #F5F9FD;
    color: var(--text);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(440px, 42%) 1fr;
}

/* =========================
   PANNEAU CONNEXION
   ========================= */

.auth-panel {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 65px;
    background: var(--white);
}

.auth-content {
    width: 100%;
    max-width: 470px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 70px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    background:
        linear-gradient(
            135deg,
            var(--chifai-blue),
            var(--chifai-cyan)
        );
    box-shadow: 0 12px 28px rgba(7, 88, 201, .22);
}

.brand-name {
    color: var(--chifai-navy);
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
}

.brand-subtitle {
    margin-top: 6px;
    color: #7B8DA5;
    font-size: 10px;
}

.eyebrow {
    color: var(--chifai-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.welcome h1 {
    margin: 8px 0 7px;
    color: #10294D;
    font-size: 39px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.welcome p {
    margin: 0 0 35px;
    color: var(--muted);
    font-size: 13px;
}

/* FORMULAIRE */

.field {
    margin-bottom: 21px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #31445F;
    font-size: 11px;
    font-weight: 600;
}

.password-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-heading a {
    margin-bottom: 8px;
    color: var(--chifai-blue);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.password-heading a:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 55px;
    padding: 0 48px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: #FBFDFF;
    font-family: inherit;
    font-size: 12px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-wrapper input::placeholder {
    color: #A8B5C5;
}

.input-wrapper input:focus {
    border-color: var(--chifai-cyan);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 169, 232, .08);
}

.input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #8CA0B7;
    font-size: 13px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    cursor: pointer;
    color: #8CA0B7;
    background: transparent;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 3px 0 23px;
    color: #687B94;
    cursor: pointer;
    font-size: 11px;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--chifai-blue);
}

.login-button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    color: #fff;
    background:
        linear-gradient(
            100deg,
            var(--chifai-navy) 0%,
            var(--chifai-blue) 55%,
            var(--chifai-cyan) 100%
        );
    box-shadow: 0 13px 28px rgba(7, 88, 201, .23);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 34px rgba(7, 88, 201, .30);
}

/* SÃƒâ€°CURITÃƒâ€° */

.security-card {
    margin-top: 34px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #DCEEF8;
    border-radius: 13px;
    background: #F7FBFF;
}

.security-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--chifai-blue),
            var(--chifai-turquoise)
        );
    font-size: 12px;
    font-weight: 700;
}

.security-card strong {
    display: block;
    color: #244366;
    font-size: 10px;
}

.security-card p {
    margin: 3px 0 0;
    color: #8495AA;
    font-size: 9px;
}

.auth-footer {
    margin-top: 25px;
    color: #A1ADBC;
    text-align: center;
    font-size: 8px;
}

.alert-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #F4CCCC;
    border-radius: 10px;
    color: #A12727;
    background: #FFF5F5;
    font-size: 10px;
}

/* =========================
   PANNEAU CHIFA-i
   ========================= */

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 52px 7%;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(
            circle at 84% 14%,
            rgba(0, 205, 189, .30),
            transparent 25%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(0, 169, 232, .30),
            transparent 29%
        ),
        linear-gradient(
            135deg,
            #05367F 0%,
            #0758C9 54%,
            #009FE3 100%
        );
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(
            rgba(255,255,255,.16) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.16) 1px,
            transparent 1px
        );
    background-size: 58px 58px;
}

.hero-panel::after {
    content: "+";
    position: absolute;
    right: -25px;
    bottom: -170px;
    color: rgba(255,255,255,.035);
    font-size: 600px;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-8deg);
}

.hero-decoration {
    position: absolute;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
}

.hero-decoration-one {
    top: 40px;
    right: -230px;
    width: 560px;
    height: 560px;
}

.hero-decoration-two {
    bottom: -180px;
    left: -170px;
    width: 420px;
    height: 420px;
}

.hero-top,
.hero-content,
.hero-bottom {
    position: relative;
    z-index: 3;
}

.algeria-badge {
    display: inline-flex;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(10px);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-content {
    width: 100%;
    max-width: 730px;
    margin: auto 0;
}

.hero-eyebrow {
    color: #A4FFF5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.hero-content h2 {
    max-width: 690px;
    margin: 14px 0 23px;
    font-size: clamp(44px, 5vw, 73px);
    line-height: 1.02;
    letter-spacing: -3.5px;
}

.hero-content h2 span {
    color: #A4FFF5;
}

.hero-description {
    max-width: 570px;
    margin: 0 0 39px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.8;
}

.feature-grid {
    max-width: 690px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.feature-card {
    min-height: 88px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.095);
    backdrop-filter: blur(12px);
    transition:
        transform .2s ease,
        background .2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.14);
}

.feature-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #07418D;
    background: #A4FFF5;
    font-size: 17px;
    font-weight: 700;
}

.feature-card strong {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.feature-card span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.65);
    font-size: 8px;
}

.hero-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.48);
    font-size: 8px;
    letter-spacing: .3px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1050px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
    }
}

@media (max-width: 600px) {
    .auth-panel {
        padding: 32px 23px;
    }

    .brand {
        margin-bottom: 50px;
    }

    .welcome h1 {
        font-size: 34px;
    }
}
/* =========================
   LOGO OFFICIEL CHIFA-i
   ========================= */

.brand {
    margin-bottom: 70px;
}

.brand-logo {
    display: block;
    width: 330px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

/* L'ancien logo HTML n'est plus utilisÃ© */
.brand-mark,
.brand-name,
.brand-subtitle {
    display: none;
}
/* ==========================================================
   CHIFA-i LOGIN V2
   Carte de connexion flottante
   ========================================================== */

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(232, 244, 255, .95),
            transparent 32%
        ),
        linear-gradient(
            115deg,
            #F4FAFF 0%,
            #E8F4FF 38%,
            #0A3D91 38.1%,
            #009FE3 100%
        );
}

/* Structure gÃ©nÃ©rale */

.auth-page {
    min-height: 100vh;
    grid-template-columns: 41% 59%;
    background: transparent;
}


/* ==========================================================
   ZONE GAUCHE
   Elle n'est PLUS le grand panneau blanc
   ========================================================== */

.auth-panel {
    min-height: 100vh;
    padding: 42px 36px 42px 46px;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================
   CARTE BLANCHE FLOTTANTE
   ========================================================== */

.auth-content {
    width: 100%;
    max-width: 535px;

    padding: 42px 44px 34px;

    background: rgba(255, 255, 255, .97);

    border: 1px solid rgba(255, 255, 255, .92);

    border-radius: 26px;

    box-shadow:
        0 35px 80px rgba(7, 55, 120, .13),
        0 12px 30px rgba(7, 55, 120, .08);

    backdrop-filter: blur(15px);
}


/* ==========================================================
   LOGO
   ========================================================== */

.brand {
    margin: 0 0 42px;
}

.brand-logo {
    width: 315px;
    max-width: 88%;
    height: auto;
}


/* ==========================================================
   TITRE LOGIN
   ========================================================== */

.welcome {
    margin-bottom: 28px;
}

.eyebrow {
    display: none;
}

.welcome h1 {
    margin: 0 0 7px;

    font-size: 34px;
    line-height: 1.1;

    color: #082E73;

    letter-spacing: -1px;
}

.welcome p {
    margin: 0;

    color: #536D94;

    font-size: 13px;
}


/* ==========================================================
   CHAMPS
   ========================================================== */

.field {
    margin-bottom: 18px;
}

.field label {
    margin-bottom: 7px;

    color: #082E73;

    font-size: 11px;
    font-weight: 600;
}

.input-wrapper input {
    height: 53px;

    padding-left: 48px;

    border: 1px solid #D7E5F4;

    border-radius: 12px;

    background: #FAFCFF;

    color: #112C54;
}

.input-wrapper input:focus {
    border-color: #009FE3;

    background: #FFFFFF;

    box-shadow:
        0 0 0 4px rgba(0, 159, 227, .09);
}

.input-icon {
    color: #009FE3;
}

.password-toggle {
    color: #0A3D91;
}


/* ==========================================================
   OPTIONS
   ========================================================== */

.remember {
    margin: 4px 0 20px;

    color: #526B90;

    font-size: 10px;
}

.password-heading a {
    color: #0875D1;

    font-size: 10px;
}


/* ==========================================================
   BOUTON
   ========================================================== */

.login-button {
    height: 55px;

    border-radius: 12px;

    background:
        linear-gradient(
            100deg,
            #0A3D91 0%,
            #006FE5 58%,
            #00A9E8 100%
        );

    box-shadow:
        0 13px 27px rgba(0, 111, 229, .20);

    font-size: 12px;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 17px 32px rgba(0, 111, 229, .27);
}


/* ==========================================================
   SÃ‰CURITÃ‰
   ========================================================== */

.security-card {
    margin-top: 27px;

    padding: 14px 15px;

    border: 1px solid #DDEBF8;

    border-radius: 12px;

    background: #F5FAFF;
}

.security-card strong {
    color: #123B73;
}

.auth-footer {
    margin-top: 20px;

    color: #9AAABD;

    font-size: 8px;
}


/* ==========================================================
   PANNEAU DROIT
   ========================================================== */

.hero-panel {
    min-height: 100vh;

    padding: 60px 7% 45px;

    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(0, 209, 193, .25),
            transparent 27%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(0, 159, 227, .34),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #07377D 0%,
            #075BC6 52%,
            #009FE3 100%
        );
}

.hero-content {
    max-width: 760px;
}

.hero-eyebrow {
    color: #8FF7EE;
}

.hero-content h2 {
    max-width: 700px;

    margin-top: 14px;

    font-size: clamp(45px, 4.7vw, 70px);

    line-height: 1.03;
}

.hero-description {
    max-width: 620px;
}


/* ==========================================================
   CARTES DU PANNEAU DROIT
   ========================================================== */

.feature-grid {
    max-width: 700px;
}

.feature-card {
    min-height: 92px;

    border-radius: 17px;

    background: rgba(255, 255, 255, .105);
}

.feature-icon {
    background: #91F6ED;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1200px) {

    .auth-page {
        grid-template-columns: 46% 54%;
    }

    .auth-panel {
        padding:
            35px 25px;
    }

    .auth-content {
        padding:
            38px 35px 30px;
    }

    .brand-logo {
        width: 285px;
    }
}


@media (max-width: 1050px) {

    body {
        background:
            linear-gradient(
                135deg,
                #E8F4FF,
                #F8FCFF
            );
    }

    .auth-page {
        display: flex;

        align-items: center;
        justify-content: center;

        padding: 30px;
    }

    .auth-panel {
        width: 100%;
        min-height: auto;

        padding: 0;
    }

    .auth-content {
        margin: auto;
    }

    .hero-panel {
        display: none;
    }
}


@media (max-width: 600px) {

    .auth-page {
        padding: 15px;
    }

    .auth-content {
        padding:
            32px 24px 27px;

        border-radius: 21px;
    }

    .brand {
        margin-bottom: 34px;
    }

    .brand-logo {
        width: 260px;
    }

    .welcome h1 {
        font-size: 30px;
    }
}

/* ==========================================================
   CHIFA-i - PANNEAU DROIT COMPLET
   ========================================================== */

.hero-panel {
    position: relative;
    padding-bottom: 135px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 780px;
}

.feature-card {
    min-width: 0;
    min-height: 105px;
    padding: 17px;
}

.feature-card strong {
    font-size: 11px;
}

.feature-card span {
    font-size: 8px;
}

/* Barre des modules */

.hero-services {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 48px;

    display: grid;
    grid-template-columns: repeat(6, 1fr);

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-service {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 10px;

    color: rgba(255, 255, 255, .90);

    font-size: 9px;
    font-weight: 500;
    text-align: center;

    border-right: 1px solid rgba(255, 255, 255, .16);
}

.hero-service:last-child {
    border-right: 0;
}

.service-icon {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #BDF9FF;
}

.service-icon svg {
    width: 27px;
    height: 27px;
}

/* L'ancien footer du panneau droit devient inutile */

.hero-bottom {
    display: none;
}


/* Ã‰crans intermÃ©diaires */

@media (max-width: 1300px) {

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-services {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 17px;
    }

    .hero-service:nth-child(3) {
        border-right: 0;
    }
}

/* ==========================================================
   CHIFA-i - FINITION PANNEAU DROIT
   ========================================================== */

.hero-panel {
    padding-bottom: 155px;
}

/* Les 6 cartes restent compactes et remontent lÃ©gÃ¨rement */

.feature-grid {
    margin-top: 34px;
    gap: 13px 14px;
}

.feature-card {
    min-height: 92px;
}

/* Barre des services : une seule ligne */

.hero-services {
    left: 7%;
    right: 7%;
    bottom: 38px;

    grid-template-columns: repeat(6, 1fr);
    row-gap: 0;

    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, .22);
}

.hero-service {
    min-height: 65px;
    padding: 0 8px;

    gap: 8px;

    border-right: 1px solid rgba(255, 255, 255, .17);

    font-size: 9px;
    line-height: 1.25;
}

.hero-service:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, .17);
}

.hero-service:last-child {
    border-right: none;
}

.service-icon {
    width: 31px;
    height: 31px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

/* Sur les Ã©crans suffisamment larges :
   toujours conserver les 6 services sur une ligne */

@media (min-width: 1051px) {

    .hero-services {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==========================================================
   CHIFA-i - IMAGE HERO OFFICIELLE
   ========================================================== */

.hero-panel {
    position: relative;
    isolation: isolate;

    background:
        linear-gradient(
            90deg,
            rgba(5, 51, 125, .92) 0%,
            rgba(4, 78, 167, .78) 42%,
            rgba(0, 132, 211, .50) 100%
        ),
        url('/images/chifai/login-hero-bg.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Voile supplÃ©mentaire pour garder le texte lisible */

.hero-panel::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(4, 42, 108, .32) 0%,
            rgba(4, 66, 145, .12) 48%,
            rgba(0, 159, 227, .04) 100%
        );
}

/* Le contenu reste au-dessus de l'image */

.hero-content,
.hero-services {
    position: relative;
    z-index: 2;
}

/* Les cartes gagnent lÃ©gÃ¨rement en contraste */

.feature-card {
    background: rgba(7, 75, 165, .68);

    border: 1px solid rgba(255, 255, 255, .16);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        0 10px 30px rgba(2, 36, 91, .10);
}

/* Barre infÃ©rieure plus lisible sur la photo */

.hero-services {
    background: rgba(3, 61, 137, .20);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ==========================================================
   CHIFA-i - AJUSTEMENT FINAL IMAGE HERO
   ========================================================== */

.hero-panel {
    background:
        linear-gradient(
            90deg,
            rgba(4, 45, 112, .96) 0%,
            rgba(5, 73, 155, .88) 45%,
            rgba(0, 116, 195, .66) 100%
        ),
        url('/images/chifai/login-hero-bg.png');

    background-size: cover;
    background-position: 58% center;
}

/* Titre parfaitement lisible */

.hero-panel::before {
    background:
        linear-gradient(
            90deg,
            rgba(3, 39, 101, .48) 0%,
            rgba(3, 55, 127, .25) 48%,
            rgba(0, 120, 196, .08) 100%
        );
}

/* Cartes fonctionnelles plus propres */

.feature-card {
    background: rgba(5, 78, 169, .84);
    border: 1px solid rgba(255, 255, 255, .17);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Footer services */

.hero-services {
    background: rgba(3, 55, 128, .58);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    border-top: 1px solid rgba(255, 255, 255, .20);
}

/* ==========================================================
   CHIFA-i - CORRECTION BARRE SERVICES
   ========================================================== */

.hero-services {
    position: absolute !important;

    left: 6% !important;
    right: 6% !important;
    bottom: 34px !important;

    width: auto !important;

    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;

    padding: 20px 0 0 !important;
    margin: 0 !important;

    background: transparent !important;

    border-top: 1px solid rgba(255,255,255,.22) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    box-shadow: none !important;

    z-index: 5 !important;
}

.hero-service {
    min-height: 62px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 7px !important;
    padding: 0 10px !important;

    background: transparent !important;

    border-right: 1px solid rgba(255,255,255,.16) !important;

    color: rgba(255,255,255,.94) !important;
}

.hero-service:last-child {
    border-right: none !important;
}

.service-icon {
    width: 30px !important;
    height: 30px !important;

    color: #8EFAFF !important;
}

.service-icon svg {
    width: 27px !important;
    height: 27px !important;
}

/* ==========================================================
   CHIFA-i - PHOTO HERO EN COULEURS NATURELLES
   ========================================================== */

.hero-panel {
    background-image: url('/images/chifai/login-hero-bg.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* On supprime le voile bleu global */

.hero-panel::before {
    background: linear-gradient(
        90deg,
        rgba(0, 38, 92, .55) 0%,
        rgba(0, 38, 92, .28) 38%,
        rgba(0, 38, 92, .06) 70%,
        transparent 100%
    ) !important;
}

/* Les cartes restent lisibles */

.feature-card {
    background: rgba(5, 73, 160, .78) !important;

    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
}

/* Services sans gros fond bleu */

.hero-services {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* ==========================================================
   CHIFA-i - POSITIONNEMENT CONTENU HERO
   LibÃ¨re le visage de la professionnelle de santÃ©
   ========================================================== */

@media (min-width: 1200px) {

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: auto 0 !important;
    }

    .hero-eyebrow {
        max-width: 470px !important;
    }

    .hero-content h2 {
        width: 500px !important;
        max-width: 500px !important;

        font-size: clamp(42px, 3.5vw, 58px) !important;
        line-height: 1.02 !important;
        letter-spacing: -2.5px !important;

        margin: 14px 0 22px !important;
    }

    .hero-description {
        width: 500px !important;
        max-width: 500px !important;
        margin-bottom: 32px !important;
    }

    .feature-grid {
        width: 700px !important;
        max-width: 700px !important;

        grid-template-columns: repeat(2, 1fr) !important;

        margin-top: 28px !important;
    }
}





/* ==========================================================
   CHIFA-i - 6 CARTES HERO - STYLE MAQUETTE
   ========================================================== */

@media (min-width: 1200px) {

    .feature-grid {
        width: 420px !important;
        max-width: 420px !important;

        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;

        gap: 12px !important;

        margin-top: 28px !important;
    }

    .feature-card {
        min-width: 0 !important;
        min-height: 112px !important;

        padding: 13px 9px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 6px !important;

        text-align: center !important;

        background: rgba(255, 255, 255, .94) !important;
        border: 1px solid rgba(255, 255, 255, .85) !important;
        border-radius: 14px !important;

        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;

        box-shadow: 0 8px 24px rgba(0, 51, 120, .12) !important;
    }

    .feature-card:hover {
        transform: translateY(-2px) !important;
        background: #ffffff !important;
    }

    .feature-icon {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;

        display: grid !important;
        place-items: center !important;

        border-radius: 9px !important;

        background: transparent !important;
        color: #079CF1 !important;

        font-size: 20px !important;
    }

    .feature-icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .feature-card strong {
        display: block !important;

        color: #062A68 !important;

        font-size: 10px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;

        margin: 0 !important;
    }

    .feature-card span {
        display: block !important;

        color: #54709B !important;

        font-size: 7px !important;
        line-height: 1.2 !important;

        margin-top: 2px !important;
    }
}


/* ==========================================================
   CHIFA-i - HERO COMPLET SANS ZOOM / SANS CROP
   ========================================================== */

.hero-panel {
    background-image: url('/images/chifai/login-hero-bg.png') !important;

    /* affiche toute l'image */
    background-size: contain !important;

    /* centrage */
    background-position: center center !important;

    background-repeat: no-repeat !important;

    /* fond de sécurité si le ratio écran diffère */
    background-color: #087fe0 !important;
}


/* ==========================================================
   CHIFA-i - HERO FINAL
   Remplit tout le panneau avec cadrage contrôlé
   ========================================================== */

@media (min-width: 1200px) {

    .hero-panel {
        background-image: url('/images/chifai/login-hero-bg.png') !important;

        background-size: auto 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;

        background-color: #087fe0 !important;
    }
}



/* ==========================================================
   CHIFA-i - LOGIN SCREEN FIT FINAL
   ========================================================== */

@media (min-width: 1051px) {

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

    body {
        overflow: hidden;
    }

    .auth-page {
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
    }

    .auth-panel {
        height: 100vh !important;
        min-height: 0 !important;
        padding: 24px 34px !important;
        overflow: hidden !important;
    }

    .auth-content {
        width: 100% !important;
        max-width: 535px !important;

        padding: 28px 38px 24px !important;

        border-radius: 24px !important;

        max-height: calc(100vh - 48px) !important;
    }

    .brand {
        margin: 0 0 22px !important;
    }

    .brand-logo {
        width: 275px !important;
        max-width: 82% !important;
    }

    .welcome {
        margin-bottom: 20px !important;
    }

    .welcome h1 {
        margin: 0 0 5px !important;
        font-size: 31px !important;
    }

    .welcome p {
        margin: 0 !important;
        font-size: 12px !important;
    }

    .field {
        margin-bottom: 14px !important;
    }

    .field label,
    .password-heading a {
        margin-bottom: 6px !important;
    }

    .input-wrapper input {
        height: 49px !important;
    }

    .remember {
        margin: 2px 0 15px !important;
    }

    .login-button {
        height: 50px !important;
    }

    .security-card {
        margin-top: 17px !important;
        padding: 10px 13px !important;
    }

    .security-icon {
        width: 29px !important;
        height: 29px !important;
        flex-basis: 29px !important;
    }

    .auth-footer {
        margin-top: 12px !important;
    }

    .hero-panel {
        height: 100vh !important;
        min-height: 0 !important;

        padding-top: 32px !important;
        padding-bottom: 118px !important;

        overflow: hidden !important;
    }

    .hero-content {
        margin: auto 0 !important;
    }

    .hero-content h2 {
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }

    .hero-description {
        margin-bottom: 18px !important;
    }

    .feature-grid {
        margin-top: 16px !important;
    }

    .feature-card {
        min-height: 96px !important;
    }

    .hero-services {
        bottom: 20px !important;
        padding-top: 13px !important;
    }

    .hero-service {
        min-height: 52px !important;
    }
}


/* Ecrans avec faible hauteur */

@media (min-width: 1051px) and (max-height: 850px) {

    .auth-panel {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .auth-content {
        padding: 20px 34px 18px !important;
        max-height: calc(100vh - 30px) !important;
    }

    .brand {
        margin-bottom: 13px !important;
    }

    .brand-logo {
        width: 235px !important;
    }

    .welcome {
        margin-bottom: 14px !important;
    }

    .welcome h1 {
        font-size: 27px !important;
    }

    .field {
        margin-bottom: 10px !important;
    }

    .input-wrapper input {
        height: 45px !important;
    }

    .remember {
        margin-bottom: 11px !important;
    }

    .login-button {
        height: 46px !important;
    }

    .security-card {
        margin-top: 12px !important;
        padding: 8px 11px !important;
    }

    .auth-footer {
        margin-top: 8px !important;
    }

    .hero-panel {
        padding-top: 20px !important;
        padding-bottom: 100px !important;
    }

    .hero-content h2 {
        font-size: 42px !important;
        margin-bottom: 10px !important;
    }

    .hero-description {
        margin-bottom: 10px !important;
        line-height: 1.5 !important;
    }

    .feature-grid {
        margin-top: 10px !important;
    }

    .feature-card {
        min-height: 82px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .hero-services {
        bottom: 12px !important;
    }
}


/* ==========================================================
   CHIFA-i - CORRECTION FINALE BARRE SERVICES LOGIN
   ========================================================== */

@media (min-width: 1051px) {

    .hero-panel {
        padding-bottom: 145px !important;
    }

    .hero-services {
        bottom: 28px !important;
        padding-top: 12px !important;
    }

    .hero-service {
        min-height: 58px !important;
        gap: 5px !important;
    }

    .service-icon {
        width: 27px !important;
        height: 27px !important;
    }

    .service-icon svg {
        width: 25px !important;
        height: 25px !important;
    }
}

@media (min-width: 1051px) and (max-height: 850px) {

    .hero-panel {
        padding-bottom: 125px !important;
    }

    .hero-services {
        bottom: 22px !important;
    }
}


/* ==========================================================
   CHIFA-i - HERO PLEINE HAUTEUR
   ========================================================== */

@media (min-width: 1051px) {

    .auth-page {
        height: 100vh !important;
        min-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
    }

    .hero-panel {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;

        margin: 0 !important;

        top: 0 !important;
        bottom: 0 !important;

        align-self: stretch !important;

        background-size: cover !important;
        background-position: center center !important;
    }
}



/* ==========================================================
   CHIFA-i - LOGIN DESKTOP FINAL
   ========================================================== */

@media (min-width: 1051px) {

    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    body {
        min-height: 100vh !important;
    }

    .auth-page {
        display: grid !important;
        grid-template-columns: 41% 59% !important;

        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;

        margin: 0 !important;
        padding: 0 !important;

        align-items: stretch !important;
        overflow: hidden !important;
    }

    .auth-panel,
    .hero-panel {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;

        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .auth-panel {
        padding: 24px 34px !important;
        overflow: hidden !important;
    }

    .auth-content {
        width: 100% !important;
        max-width: 535px !important;
        max-height: calc(100vh - 48px) !important;

        padding: 28px 38px 24px !important;
        border-radius: 24px !important;

        box-sizing: border-box !important;
    }

    .hero-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        padding-top: 32px !important;
        padding-right: 7% !important;
        padding-bottom: 145px !important;
        padding-left: 7% !important;

        overflow: hidden !important;

        background-image: url('/images/chifai/login-hero-bg.png') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .hero-content {
        margin: auto 0 !important;
    }

    .hero-services {
        bottom: 28px !important;
    }
}


/* Ecrans desktop avec faible hauteur */

@media (min-width: 1051px) and (max-height: 850px) {

    .auth-panel {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .auth-content {
        max-height: calc(100vh - 30px) !important;
        padding: 20px 34px 18px !important;
    }

    .brand {
        margin-bottom: 13px !important;
    }

    .brand-logo {
        width: 235px !important;
    }

    .welcome {
        margin-bottom: 14px !important;
    }

    .welcome h1 {
        font-size: 27px !important;
    }

    .field {
        margin-bottom: 10px !important;
    }

    .input-wrapper input {
        height: 45px !important;
    }

    .remember {
        margin-bottom: 11px !important;
    }

    .login-button {
        height: 46px !important;
    }

    .security-card {
        margin-top: 12px !important;
        padding: 8px 11px !important;
    }

    .auth-footer {
        margin-top: 8px !important;
    }

    .hero-panel {
        padding-top: 20px !important;
        padding-bottom: 125px !important;
    }

    .hero-content h2 {
        font-size: 42px !important;
        margin-bottom: 10px !important;
    }

    .hero-description {
        margin-bottom: 10px !important;
        line-height: 1.5 !important;
    }

    .feature-grid {
        margin-top: 10px !important;
    }

    .feature-card {
        min-height: 82px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .hero-services {
        bottom: 22px !important;
    }
}

/* ==========================================================
   CHIFA-i - LOGIN HERO DESKTOP TOP FIX
   ========================================================== */

@media (min-width: 1051px) {

    .hero-panel {
        position: relative !important;

        top: 0 !important;
        margin-top: 0 !important;

        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;

        align-self: start !important;

        transform: none !important;
    }
}


/* ==========================================================
   CHIFA-i - DESKTOP HERO REMOVE TOP SPACE
   ========================================================== */

@media (min-width: 1051px) {

    .hero-panel {
        padding-top: 0 !important;
    }

}


/* ==========================================================
   CHIFA-i - HERO DESKTOP FULL SCREEN - FINAL
   ========================================================== */

@media (min-width: 1051px) {

    .auth-page {
        position: fixed !important;
        inset: 0 !important;

        width: 100vw !important;
        height: 100vh !important;

        margin: 0 !important;
        padding: 0 !important;

        display: grid !important;
        grid-template-columns: 41% 59% !important;

        overflow: hidden !important;
    }

    .hero-panel {
        position: relative !important;

        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;

        margin: 0 !important;

        box-sizing: border-box !important;

        background-image: url('/images/chifai/login-hero-bg.png') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;

        overflow: hidden !important;
    }
}


/* ==========================================================
   CHIFA-i - LOGIN DESKTOP POLISH
   ========================================================== */

@media (min-width: 1051px) {

    /* Left side - clean background */
    .auth-panel {
        background:
            radial-gradient(
                circle at 12% 15%,
                rgba(0, 169, 232, .08),
                transparent 32%
            ),
            linear-gradient(
                145deg,
                #F7FBFF 0%,
                #EDF6FD 55%,
                #E7F2FB 100%
            ) !important;
    }

    /* Remove decorative blue shape under login card */
    .auth-panel::before,
    .auth-panel::after {
        display: none !important;
        content: none !important;
    }

    /* Login card */
    .auth-content {
        background: rgba(255, 255, 255, .97) !important;

        border: 1px solid rgba(215, 229, 243, .80) !important;

        box-shadow:
            0 22px 55px rgba(22, 72, 125, .10),
            0 5px 18px rgba(22, 72, 125, .05) !important;
    }

    /* Main title */
    .welcome h1 {
        color: #062E70 !important;

        font-weight: 750 !important;
        letter-spacing: -0.7px !important;
    }

    /* Subtitle */
    .welcome p {
        color: #607A9D !important;
        font-weight: 400 !important;
    }

    /* Form labels */
    .field label,
    .password-heading label {
        color: #0A397A !important;
        font-weight: 650 !important;
    }

    /* Forgot password */
    .password-heading a {
        color: #0786DF !important;
        font-weight: 600 !important;
    }

    /* Inputs */
    .input-wrapper {
        background: #F1F6FD !important;
        border-color: #D8E6F5 !important;
    }

    .input-wrapper:focus-within {
        background: #FFFFFF !important;
        border-color: #159FE7 !important;

        box-shadow:
            0 0 0 3px rgba(21, 159, 231, .10) !important;
    }

    /* Login button */
    .login-button {
        background:
            linear-gradient(
                100deg,
                #0B4DB5 0%,
                #0876D5 52%,
                #08A9E8 100%
            ) !important;

        box-shadow:
            0 10px 24px rgba(6, 111, 205, .18) !important;

        font-weight: 700 !important;
        letter-spacing: -.1px !important;
    }

    /* Security box */
    .security-card {
        background: #F8FBFE !important;
        border-color: #DCE9F5 !important;
    }

    .security-card strong {
        color: #123F78 !important;
        font-weight: 700 !important;
    }

    .security-card p {
        color: #7A90AA !important;
    }

    /* Footer */
    .auth-footer {
        color: #96A8BB !important;
    }
}

