/* ==========================================================
   BP-HYGIENE
   Page de connexion
   ========================================================== */

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;

    background: #f4f6f8;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;

    display: flex;
    flex-direction: column;
}

/* ==========================================================
   LOGO ENSEIGNE SOUS LES CARTES
   Masqué par défaut
   ========================================================== */

.login-enseigne-portrait {
    display: none;
}
/* ==========================================================
   HEADER
   ========================================================== */

.fond {
    position: relative;

    display: flex;

    width: 100%;

    background: #444;
}


/* ==========================================================
   LOGO ENSEIGNE
   PC UNIQUEMENT
   ========================================================== */

.login-enseigne {
    width: 300px;
    min-width: 300px;

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

    background: #fff;

    border-radius: 0 0 90px 0;

    padding: 25px;
}

.login-enseigne-logo {
    width: auto;
    height: auto;

    max-width: 200px;
    max-height: 120px;
}


/* Header historique */

.tier {
    flex: 1;
}


/* ==========================================================
   BANDEAU CENTRAL BP-HYGIENE
   ========================================================== */

#bp-annonce {
    width: 100%;
}

.bp-annonce {
    position: relative;
    overflow: hidden;

    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;

    color: #fff;
}

.bp-annonce-info {
    background: #3273b9;
}

.bp-annonce-maintenance {
    background: #e58b16;
}

.bp-annonce-incident {
    background: #c83b3b;
}


/* Message défilant */

.bp-annonce-texte {
    white-space: nowrap;

    padding-left: 100%;

    animation: bp-defilement 18s linear infinite;
}

@keyframes bp-defilement {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


/* ==========================================================
   PAGE PRINCIPALE
   ========================================================== */

.login-page {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;

    padding: 28px 30px 35px;

    /*
       Prend tout l'espace vertical disponible
       et repousse le footer en bas.
    */
    flex: 1;
}


/* ==========================================================
   GRILLE DES DEUX CARTES
   ========================================================== */

.login-grid {
    width: 100%;

    display: grid;

    grid-template-columns: 520px 430px;

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

    gap: 55px;
}


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

.login-card {
    width: 100%;
    height: 410px;

    background: #fff;

    border-radius: 18px;

    padding: 34px 40px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.10);

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ==========================================================
   TITRES
   ========================================================== */

.login-title {
    font-size: 31px;
    font-weight: 700;

    margin-bottom: 6px;
}

.login-magasin {
    font-size: 25px;
    font-weight: 500;

    margin-bottom: 4px;
}

.login-societe {
    font-size: 18px;
    color: #666;

    margin-bottom: 28px;
}


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

.login-form {
    width: 100%;
    max-width: 430px;

    margin: 0 auto;
}

.login-form input {
    display: block;

    width: 100%;
    height: 50px;

    margin-bottom: 14px;

    padding: 0 15px;

    border: 1px solid #c8cdd2;
    border-radius: 8px;

    background: #eef4fd;

    font-size: 16px;

    outline: none;

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

.login-form input:focus {
    background: #fff;

    border-color: #739b12;

    box-shadow:
        0 0 0 3px rgba(115, 155, 18, .13);
}


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

.login-form button {
    min-width: 165px;
    height: 48px;

    margin-top: 4px;

    padding: 0 28px;

    border: 0;
    border-radius: 8px;

    background: #739b12;
    color: #fff;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .1s ease;
}

.login-form button:hover {
    background: #63870e;
}

.login-form button:active {
    transform: translateY(1px);
}


/* ==========================================================
   MOT DE PASSE OUBLIE
   ========================================================== */

.login-forgot {
    margin-top: 13px;
}

.login-forgot a {
    font-size: 14px;

    color: #777;

    text-decoration: none;

    transition: color .2s ease;
}

.login-forgot a:hover {
    color: #739b12;

    text-decoration: underline;
}


/* ==========================================================
   PRESENTATION TABLETTE
   ========================================================== */

.login-presentation {
    width: 100%;
    height: 410px;

    margin: 0;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.10);

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

    padding: 14px;

    text-align: center;
}

.login-presentation > a {
    width: 100%;
    height: 100%;

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

    color: inherit;

    text-decoration: none;
}

.login-tablette {
    display: block;

    width: auto;
    height: 100%;

    max-width: 100%;

    object-fit: contain;

    margin: 0 auto;
}


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

.login-footer {
    width: 100%;

    min-height: 58px;

    padding: 17px 25px;

    background: #444;
    color: #ddd;

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

    text-align: center;

    font-size: 16px;
    line-height: 1.45;

    flex-shrink: 0;
}

.login-footer strong {
    color: #fff;
    font-weight: 700;
}

.login-footer a {
    color: #fff;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}


/* ==========================================================
   PETITS ECRANS PC
   951px -> 1100px
   ========================================================== */

@media screen and (max-width: 1100px) and (min-width: 951px) {

    .login-page {
        max-width: 1000px;

        padding-left: 25px;
        padding-right: 25px;
    }

    .login-grid {
        grid-template-columns: 470px 380px;

        gap: 35px;
    }

    .login-card {
        height: 390px;

        padding: 30px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-magasin {
        font-size: 23px;
    }

    .login-societe {
        font-size: 17px;

        margin-bottom: 24px;
    }

    .login-presentation {
        height: 390px;
    }

    .login-enseigne {
        width: 245px;
        min-width: 245px;

        padding: 20px;
    }

    .login-enseigne-logo {
        max-width: 165px;
        max-height: 105px;
    }
}


/* ==========================================================
   IPAD / TABLETTE
   700px -> 950px
   Connexion + tablette côte à côte
   Logo enseigne masqué
   ========================================================== */

@media screen and (min-width: 700px) and (max-width: 950px) {

    /* Header */

    .login-enseigne {
        display: none;
    }

    .fond {
        display: block;
    }


    /* Page */

    .login-page {
        width: 100%;
        max-width: none;

        margin: 0 auto;

        padding: 24px 20px 30px;

        flex: 1;
    }


    /* Deux colonnes compactes */

    .login-grid {
        display: grid;

        width: 100%;

        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(0, 0.92fr);

        gap: 18px;

        align-items: stretch;
    }


    /* Connexion */

    .login-card {
        width: 100%;

        height: 360px;

        margin: 0;

        padding: 24px 20px;

        border-radius: 14px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-magasin {
        font-size: 20px;
    }

    .login-societe {
        font-size: 16px;

        margin-bottom: 18px;
    }

    .login-form {
        width: 100%;
        max-width: none;
    }

    .login-form input {
        width: 100%;
        height: 45px;

        margin-bottom: 10px;

        font-size: 15px;
    }

    .login-form button {
        min-width: 145px;

        height: 44px;

        font-size: 16px;
    }

    .login-forgot {
        margin-top: 9px;
    }

    .login-forgot a {
        font-size: 13px;
    }


    /* Tablette */

    .login-presentation {
        width: 100%;

        height: 360px;

        margin: 0;

        padding: 10px;

        border-radius: 14px;
    }

    .login-presentation > a {
        width: 100%;
        height: 100%;

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

    .login-tablette {
        display: block;

        width: 100%;
        height: 100%;

        max-width: 100%;

        object-fit: contain;

        margin: 0 auto;
    }


    /* Bandeau */

    .bp-annonce {
        min-height: 42px;

        font-size: 14px;
    }
}


/* ==========================================================
   MOBILE
   <= 699px
   Connexion puis tablette EN DESSOUS
   ========================================================== */

@media screen and (max-width: 699px) {

    /* ------------------------------------------------------
       HEADER
       ------------------------------------------------------ */

    .login-enseigne {
        display: none;
    }

    .fond {
        display: block;
    }


    /* ------------------------------------------------------
       PAGE
       ------------------------------------------------------ */

    .login-page {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;

        padding: 18px 15px 25px;

        flex: 1;
    }


    /* ------------------------------------------------------
       PLUS AUCUNE GRILLE
       ------------------------------------------------------ */

    .login-grid {
        display: block;

        width: 100%;
        max-width: none;
    }


    /* ------------------------------------------------------
       CONNEXION
       ------------------------------------------------------ */

    .login-card {
        width: 100%;
        max-width: none;

        height: auto;

        margin: 0;

        padding: 24px 20px 28px;

        border-radius: 12px;
    }

    .login-title {
        font-size: 25px;
    }

    .login-magasin {
        font-size: 22px;
    }

    .login-societe {
        font-size: 17px;

        margin-bottom: 22px;
    }


    /* ------------------------------------------------------
       FORMULAIRE
       ------------------------------------------------------ */

    .login-form {
        width: 100%;
        max-width: none;
    }

    .login-form input {
        width: 100%;
        height: 48px;

        font-size: 16px;
    }

    .login-form button {
        height: 48px;

        font-size: 17px;
    }

    .login-forgot {
        margin-top: 12px;
    }


    /* ------------------------------------------------------
       TABLETTE SOUS LA CONNEXION
       ------------------------------------------------------ */

    .login-presentation {
        display: flex;

        width: 100%;
        max-width: none;

        height: auto;

        margin: 30px 0 0;

        padding: 10px;

        border-radius: 14px;
    }

    .login-presentation > a {
        display: block;

        width: 100%;
        height: auto;
    }

    .login-tablette {
        display: block;

        width: 100%;
        max-width: 520px;

        height: auto;

        margin: 0 auto;
    }


    /* ------------------------------------------------------
       BANDEAU
       ------------------------------------------------------ */

    .bp-annonce {
        min-height: 42px;

        font-size: 14px;
    }


    /* ------------------------------------------------------
       FOOTER MOBILE
       ------------------------------------------------------ */

    .login-footer {
        min-height: 54px;

        padding: 13px 18px;

        font-size: 14px;
        line-height: 1.4;
    }
}


/* ==========================================================
   PETITS SMARTPHONES
   ========================================================== */

@media screen and (max-width: 480px) {

    .login-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-card {
        padding: 22px 16px 25px;
    }

    .login-presentation {
        margin-top: 30px;
    }

    .login-title {
        font-size: 23px;
    }

    .login-magasin {
        font-size: 20px;
    }

    .login-societe {
        font-size: 16px;
    }

    .login-forgot a {
        font-size: 13px;
    }
}


/* ==========================================================
   PAGE MOT DE PASSE OUBLIE
   ========================================================== */

.login-page-simple {
    width: 100%;

    flex: 1;

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

    padding: 20px;
}

.login-card-simple {
    width: 100%;
    max-width: 520px;

    padding: 40px;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.10);

    text-align: center;
}

.login-coming-soon {
    margin-top: 25px;

    font-size: 20px;
    color: #666;
}

.login-back {
    margin-top: 30px;
}

.login-back a {
    color: #739b12;

    text-decoration: none;

    font-weight: 600;
}

.login-back a:hover {
    text-decoration: underline;
}

/* ==========================================================
   IPAD / TABLETTE PORTRAIT
   Deux colonnes + blocs agrandis
   ========================================================== */

@media screen
and (min-width: 700px)
and (max-width: 950px)
and (orientation: portrait) {

    .login-page {
        width: 100%;
        max-width: none;

        padding: 30px 22px;

        flex: 1;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }


    /* Deux colonnes conservées */

    .login-grid {
        display: grid;

        width: 100%;
        max-width: 900px;

        margin: 0 auto;

        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(0, 0.92fr);

        gap: 20px;

        align-items: stretch;
    }


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

    .login-card {
        width: 100%;
        max-width: none;

        height: 480px;

        padding: 42px 28px;

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

        border-radius: 16px;
    }


    .login-title {
        font-size: 29px;

        margin-bottom: 8px;
    }

    .login-magasin {
        font-size: 23px;

        margin-bottom: 5px;
    }

    .login-societe {
        font-size: 17px;

        margin-bottom: 30px;
    }


    /* Formulaire */

    .login-form {
        width: 100%;
        max-width: none;
    }

    .login-form input {
        width: 100%;

        height: 54px;

        margin-bottom: 15px;

        font-size: 17px;
    }

    .login-form button {
        height: 52px;

        min-width: 175px;

        margin-top: 5px;

        font-size: 18px;
    }

    .login-forgot {
        margin-top: 14px;

        font-size: 15px;
    }


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

    .login-presentation {
        width: 100%;
        max-width: none;

        height: 480px;

        margin: 0;

        padding: 12px;

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

        background: #fff;

        border-radius: 16px;

        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.08);
    }


    .login-presentation > a {
        display: flex;

        width: 100%;
        height: 100%;

        padding: 0;

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

        background: transparent;

        box-shadow: none;
    }


    .login-tablette {
        display: block;

        width: auto;
        height: auto;

        max-width: 100%;
        max-height: 450px;

        margin: 0 auto;
    }

}

@media screen
and (min-width: 700px)
and (max-width: 950px)
and (orientation: portrait) {

    .login-enseigne-portrait {
        display: flex;

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

        margin: 32px auto 0;

        width: 100%;
    }

    .login-enseigne-portrait img {
        display: block;

        width: auto;
        height: auto;

        max-width: 150px;
        max-height: 110px;
    }

}

.login-footer {
    padding-bottom: max(45px, env(safe-area-inset-bottom));
}
/* ==========================================================
   BANDEAU INFORMATION - VERSION DEFINITIVE
   ========================================================== */

.bp-annonce {
    position: relative;
    overflow: hidden;

    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;

    color: #fff;
}


/* Zone dans laquelle défile le message */

.bp-annonce-defilement {
    flex: 1;
    min-width: 0;

    overflow: hidden;
}


/* Message défilant */

.bp-annonce-texte {
    display: inline-block;

    white-space: nowrap;

    padding-left: 100%;

    font-weight: 600;

    animation: bp-defilement 18s linear infinite;
}


@keyframes bp-defilement {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


/* ==========================================================
   LIEN "EN SAVOIR PLUS"
   ========================================================== */

.bp-annonce-lien {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    min-height: 46px;

    margin: 0;
    padding: 0 18px;

    color: #fff !important;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;

    white-space: nowrap;

    background: transparent !important;

    border-left: 1px solid rgba(255, 255, 255, 0.35);

    transition: background .2s ease;
}


.bp-annonce-lien:hover {
    color: #fff !important;

    background: rgba(255, 255, 255, 0.10) !important;

    text-decoration: none !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media screen and (max-width: 699px) {

    .bp-annonce {
        min-height: 42px;

        font-size: 14px;
    }

    .bp-annonce-lien {
        min-height: 42px;

        padding: 0 10px;

        font-size: 12px;
    }

}

.login-error {
    margin: 0 auto 18px;
    padding: 10px 15px;

    background: #fff2f2;
    border: 1px solid #e5aaaa;
    border-radius: 8px;

    color: #b42323;

    font-size: 14px;
    font-weight: 600;
    text-align: center;
}