	/* ==========================================
   MPMEPE - SPLIT SCREEN LOGIN
   GLPI 11.0.7
   ========================================== */

:root {
    --mp-blue: #102B50;
    --mp-turquoise: #00A6A6;
    --mp-light: #F4F7FA;
}

/* Fond général */
body.welcome-anonymous {
    background: #FFFFFF !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Structure principale */
.page-anonymous {
    min-height: 100vh !important;
    background: #FFFFFF !important;
}

.page-anonymous > .flex-fill {
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 45% 55%;
    align-items: center;
    position: relative;
}

/* PANNEAU GAUCHE : AMAZONE + LOGO */
.page-anonymous > .flex-fill::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    min-height: 100vh;

    background-color: var(--mp-blue);

    background-image:
        linear-gradient(
            180deg,
            rgba(16,43,80,0.25),
            rgba(16,43,80,0.55)
        ),
        url("/mpmepe/amazone-benin.png"),
        url("/mpmepe/logo-mpmepe.png");

    background-size:
        cover,
        cover,
        210px auto;

    background-position:
        center,
        center,
        center 35px;

    background-repeat: no-repeat;
}

/* Texte institutionnel à gauche */
.page-anonymous > .flex-fill::after {
    content:
        "SOLUTION DE GESTION DU PARC INFORMATIQUE\A"
        "Plateforme de gestion des services informatiques\A"
        "MINISTÈRE DES PETITES ET MOYENNES ENTREPRISES\A"
        "RÉPUBLIQUE DU BÉNIN";

    white-space: pre-line;
    position: absolute;
    left: 5%;
    bottom: 9%;
    width: 35%;
    color: #FFFFFF;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 2;
    letter-spacing: .4px;
}

/* PANNEAU DROIT */
.page-anonymous .container-tight {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    padding: 45px 35px !important;
}

/* Masquer l'ancien logo GLPI */
.page-anonymous .container-tight > .text-center:first-child {
    display: none !important;
}

/* Carte de connexion */
.page-anonymous .main-content-card {
    width: 100%;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 35px rgba(16,43,80,.09) !important;
    background: #FFFFFF !important;
}

/* Corps de la carte */
.page-anonymous .main-content-card > .card-body {
    padding: 38px !important;
}

/* Largeur du formulaire */
.page-anonymous .main-content-card form > .row {
    display: block !important;
    margin: 0 !important;
}

.page-anonymous .main-content-card form > .row > .col-md-5 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Titre connexion */
.page-anonymous .main-content-card form .card-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 28px !important;
    margin: 0 !important;
    text-align: left !important;
}

.page-anonymous .main-content-card h2 {
    color: var(--mp-blue) !important;
    font-size: 25px !important;
    font-weight: 700 !important;
}

/* Libellés */
.page-anonymous .form-label {
    color: var(--mp-blue) !important;
    font-weight: 600 !important;
}

/* Champs */
.page-anonymous .form-control {
    min-height: 48px;
    border-radius: 7px !important;
    border: 1px solid #DCE4EC !important;
    background: #FAFCFE !important;
}

.page-anonymous .form-control:focus {
    border-color: var(--mp-turquoise) !important;
    box-shadow: 0 0 0 3px rgba(0,166,166,.12) !important;
}

/* Bouton */
.page-anonymous .btn-primary {
    background: var(--mp-blue) !important;
    border: none !important;
    border-radius: 7px !important;
    min-height: 48px;
    font-weight: 700 !important;
}

.page-anonymous .btn-primary:hover {
    background: var(--mp-turquoise) !important;
}

/* Mot de passe oublié */
.page-anonymous .forgot_password a {
    color: var(--mp-turquoise) !important;
}

/* Copyright */
.page-anonymous .copyright {
    color: #8793A2 !important;
    font-size: 11px !important;
    text-align: center;
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {

    .page-anonymous > .flex-fill {
        display: flex !important;
        flex-direction: column;
        min-height: 100vh !important;
    }

    .page-anonymous > .flex-fill::before {
        width: 100%;
        min-height: 300px;
        height: 300px;
        flex-shrink: 0;
        background-position:
            center,
            center 55%,
            center 20px;
        background-size:
            cover,
            cover,
            160px auto;
    }

    .page-anonymous > .flex-fill::after {
        top: 210px;
        bottom: auto;
        left: 5%;
        width: 90%;
        font-size: 12px;
        line-height: 1.7;
    }

    .page-anonymous .container-tight {
        padding: 25px 20px !important;
    }

    .page-anonymous .main-content-card > .card-body {
        padding: 25px !important;
    }
}

/* ==========================================
   MPMEPE - AJUSTEMENT FINAL DU SPLIT SCREEN
   ========================================== */

/* Nouvelle répartition */
.page-anonymous > .flex-fill {
    grid-template-columns: 55% 45% !important;
}

/* Panneau Amazone avec logo au premier plan */
.page-anonymous > .flex-fill::before {
    background-image:
        url("/mpmepe/logo-mpmepe.png"),
        linear-gradient(
            rgba(16,43,80,0.15),
            rgba(16,43,80,0.40)
        ),
        url("/mpmepe/amazone-benin.png") !important;

    background-size:
        260px auto,
        cover,
        cover !important;

    background-position:
        center 35px,
        center,
        center 45% !important;

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat !important;
}

/* Positionnement du texte institutionnel */
.page-anonymous > .flex-fill::after {
    left: 5% !important;
    width: 45% !important;
    bottom: 7% !important;
}

/* Ajustement du formulaire */
.page-anonymous .container-tight {
    max-width: 520px !important;
}

/* Adaptation mobile */
@media (max-width: 900px) {
    .page-anonymous > .flex-fill {
        display: flex !important;
        flex-direction: column !important;
    }

    .page-anonymous > .flex-fill::before {
        width: 100%;
        min-height: 300px;
        height: 300px;
        background-size:
            180px auto,
            cover,
            cover !important;
        background-position:
            center 15px,
            center,
            center 45% !important;
    }

    .page-anonymous > .flex-fill::after {
        left: 5% !important;
        width: 90% !important;
    }
}

/* Ajustement des textes institutionnels */
.page-anonymous > .flex-fill::after {
    content:
        "SOLUTION DE GESTION DU PARC INFORMATIQUE\A"
        "MINISTÈRE DES PETITES ET MOYENNES ENTREPRISES\A"
        "RÉPUBLIQUE DU BÉNIN" !important;

    bottom: 13% !important;
    line-height: 2.2 !important;
}

/* ==========================================
   MPMEPE - SUPPRESSION DU BRANDING GLPI
   ========================================== */

/* Remplacement du logo dans le menu latéral */
.page .navbar-brand .glpi-logo {
    background-image: url("/mpmepe/logo-mpmepe.png") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    width: 190px !important;
    height: 65px !important;
}

/* Logo lorsque le menu est réduit */
body.navbar-collapsed .navbar-brand .glpi-logo {
    background-image: url("/mpmepe/logo-mpmepe.png") !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Suppression du titre GLPI dans le menu du compte */
.topbar .dropdown-menu .dropdown-header {
    display: none !important;
}
