:root{
    --bni-red:#b5122b;
    --bni-red-dark:#8f0e21;
    --bni-red-deep:#720817;

    --ink:#1d1d1d;
    --text:#333333;
    --muted:#777777;

    --white:#ffffff;
    --soft:#f8f7f5;
    --line:#e5e1db;

    --green:#147747;
}

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
}

body{
    margin:0;
    min-height:100vh;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    color:var(--text);

    background:
        radial-gradient(
            circle at 12% 5%,
            rgba(255,255,255,.10),
            transparent 27%
        ),
        radial-gradient(
            circle at 88% 90%,
            rgba(70,0,13,.32),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #8f0e21 0%,
            #b5122b 48%,
            #720817 100%
        );

    background-attachment:fixed;
}

.auth-shell{
    width:100%;
    max-width:1120px;

    margin:0 auto;

    padding:
        24px
        20px
        42px;
}


/* ============================================================
   BANDEAU IDENTIQUE AUX AUTRES PAGES
   ============================================================ */

.auth-brand{
    width:100%;
    min-height:94px;

    display:grid;

    grid-template-columns:
        minmax(150px,1fr)
        auto
        minmax(190px,1fr);

    align-items:center;

    gap:20px;

    padding:
        14px
        26px;

    background:#fff;

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

    border-radius:8px;

    box-shadow:
        0 12px 32px
        rgba(63,0,13,.12);
}

.auth-brand-logo{
    min-width:0;

    display:flex;
    align-items:center;
}

.auth-brand-logo img{
    display:block;

    width:auto;
    height:auto;

    object-fit:contain;
}

.auth-brand-bni{
    justify-content:flex-start;
}

.auth-brand-bni img{
    max-width:140px;
    max-height:60px;
}

.auth-brand-fg{
    justify-content:flex-end;
}

.auth-brand-fg img{
    max-width:185px;
    max-height:46px;
}

.auth-brand-center{
    display:flex;

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

    text-align:center;
}

.auth-brand-center strong{
    display:inline-flex;

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

    padding:
        9px
        14px;

    background:var(--bni-red);

    color:#fff;

    border-radius:5px;

    font-size:12px;
    line-height:1.25;

    font-weight:750;

    white-space:nowrap;
}


/* ============================================================
   ZONE CENTRALE
   ============================================================ */

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

    margin:
        18px
        auto
        0;
}

.auth-intro{
    margin-bottom:12px;

    padding:
        18px
        20px;

    background:#fff;

    border:
        1px solid
        var(--line);

    border-left:
        4px solid
        var(--bni-red);

    border-radius:7px;

    box-shadow:
        0 10px 27px
        rgba(62,0,13,.09);
}

.auth-kicker{
    margin-bottom:4px;

    color:var(--bni-red);

    font-size:9px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:.6px;
}

.auth-intro h1{
    margin:0;

    color:var(--ink);

    font-size:24px;
    line-height:1.2;

    font-weight:750;

    letter-spacing:-.35px;
}

.auth-intro p{
    margin:
        7px
        0
        0;

    color:var(--muted);

    font-size:12px;
    line-height:1.55;
}


/* ============================================================
   CARTE
   ============================================================ */

.auth-card{
    padding:
        22px;

    background:#fff;

    border:
        1px solid
        var(--line);

    border-radius:7px;

    box-shadow:
        0 12px 31px
        rgba(62,0,13,.10);
}

.auth-card-head{
    margin-bottom:18px;

    padding-bottom:14px;

    border-bottom:
        1px solid
        var(--line);
}

.auth-card-head h2{
    margin:0;

    color:#252525;

    font-size:17px;

    font-weight:750;
}

.auth-card-head p{
    margin:
        5px
        0
        0;

    color:#818181;

    font-size:11px;
    line-height:1.5;
}


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

.auth-field{
    margin-bottom:14px;
}

.auth-field label{
    display:block;

    margin-bottom:6px;

    color:#393939;

    font-size:11px;

    font-weight:750;
}

.auth-field input{
    width:100%;
    min-height:43px;

    padding:
        10px
        11px;

    background:#fff;

    color:#242424;

    border:
        1px solid
        #d6d1cb;

    border-radius:4px;

    font-family:inherit;

    font-size:14px;

    outline:none;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

.auth-field input:hover{
    border-color:#bcb5ae;
}

.auth-field input:focus{
    border-color:
        var(--bni-red);

    box-shadow:
        0 0 0 3px
        rgba(181,18,43,.08);
}

.auth-help{
    margin-top:5px;

    color:#8a8580;

    font-size:10px;
    line-height:1.45;
}


/* ============================================================
   LIENS
   ============================================================ */

.auth-links{
    display:flex;

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

    gap:15px;

    margin:
        2px
        0
        17px;
}

.auth-links a,
.auth-back{
    color:
        var(--bni-red);

    text-decoration:none;

    font-size:10.5px;

    font-weight:750;
}

.auth-links a:hover,
.auth-back:hover{
    text-decoration:underline;
}


/* ============================================================
   BOUTONS
   ============================================================ */

.auth-primary,
.auth-secondary{
    width:100%;
    min-height:43px;

    display:flex;

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

    padding:
        10px
        15px;

    border-radius:4px;

    font-family:inherit;

    font-size:12px;

    font-weight:750;

    text-decoration:none;

    cursor:pointer;
}

.auth-primary{
    background:
        var(--bni-red);

    color:#fff;

    border:
        1px solid
        var(--bni-red);

    box-shadow:
        0 5px 13px
        rgba(130,8,30,.14);
}

.auth-primary:hover{
    background:
        var(--bni-red-dark);

    border-color:
        var(--bni-red-dark);
}

.auth-secondary{
    background:#fff;

    color:var(--bni-red);

    border:
        1px solid
        #dfb8bf;
}

.auth-secondary:hover{
    background:#fff6f7;
}


/* ============================================================
   SEPARATION
   ============================================================ */

.auth-divider{
    display:flex;

    align-items:center;

    gap:10px;

    margin:
        18px
        0
        14px;

    color:#99938e;

    font-size:9px;

    text-transform:uppercase;

    letter-spacing:.4px;
}

.auth-divider::before,
.auth-divider::after{
    content:"";

    height:1px;

    flex:1;

    background:#e6e1dc;
}


/* ============================================================
   ALERTES
   ============================================================ */

.auth-alert{
    margin-bottom:16px;

    padding:
        11px
        12px;

    border-radius:4px;

    font-size:11px;
    line-height:1.5;

    font-weight:700;
}

.auth-alert-error{
    background:#fff0f1;

    color:#a31b30;

    border:
        1px solid
        #ecc7ce;

    border-left:
        3px solid
        var(--bni-red);
}

.auth-alert-success{
    background:#eaf6ef;

    color:#147747;

    border:
        1px solid
        #cce5d7;

    border-left:
        3px solid
        #147747;
}


/* ============================================================
   FOOTER
   ============================================================ */

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

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

    text-align:center;

    font-size:9.5px;
}


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

@media(max-width:780px){

    .auth-shell{
        padding:
            14px
            12px
            30px;
    }

    .auth-brand{
        grid-template-columns:
            120px
            1fr
            155px;

        padding:
            13px
            16px;
    }

    .auth-brand-bni img{
        max-width:105px;
        max-height:48px;
    }

    .auth-brand-fg img{
        max-width:145px;
        max-height:39px;
    }

    .auth-brand-center strong{
        padding:
            7px
            9px;

        font-size:10px;
    }
}

@media(max-width:650px){

    .auth-brand{
        grid-template-columns:
            minmax(90px,1fr)
            minmax(135px,1.35fr);

        grid-template-areas:
            "bni fg"
            "title title";

        min-height:0;

        gap:
            11px
            14px;

        padding:14px;

        border-radius:6px;
    }

    .auth-brand-bni{
        grid-area:bni;
    }

    .auth-brand-fg{
        grid-area:fg;
    }

    .auth-brand-center{
        grid-area:title;
    }

    .auth-brand-center strong{
        white-space:normal;

        text-align:center;
    }

    .auth-intro,
    .auth-card{
        border-radius:6px;
    }

    .auth-intro h1{
        font-size:21px;
    }
}

@media(max-width:460px){

    .auth-card{
        padding:
            19px
            16px;
    }

    .auth-links{
        flex-direction:column;

        align-items:flex-start;

        gap:8px;
    }

    .auth-field input{
        font-size:16px;
    }
}
