/* Corrige o customlogin no GLPI 11. Gerado pela role identidade_glpi, nao edite. */

/* O formulario ocupa a largura do cartao de login. */
html.stcl-enabled.stcl-login-enabled body.welcome-anonymous
.page-anonymous form .row > .col-md-5 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

html.stcl-enabled.stcl-login-enabled body.welcome-anonymous
.page-anonymous form .btn-primary {
    color: #ffffff !important;
    --tblr-btn-color: #ffffff;
    --tblr-btn-hover-color: #ffffff;
}

/* O main do GLPI 11 e bloco, e sem flex o cartao gruda no topo. */
html.stcl-enabled.stcl-login-enabled body.welcome-anonymous main.page-anonymous {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

html.stcl-enabled.stcl-login-enabled body.welcome-anonymous main.page-anonymous > .flex-fill {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

/* O customlogin poe o rodape no main; ele segue a largura e o lado do cartao. */
html.stcl-enabled.stcl-login-enabled body.welcome-anonymous #stcl-login-footer {
    width: min(calc(100% - 2rem), var(--stcl-card-width));
    margin: 0 auto;
}

html.stcl-enabled.stcl-login-enabled.stcl-login-align-left body.welcome-anonymous #stcl-login-footer {
    margin-left: clamp(1rem, 4vw, 5rem);
    margin-right: auto;
}

html.stcl-enabled.stcl-login-enabled.stcl-login-align-right body.welcome-anonymous #stcl-login-footer {
    margin-right: clamp(1rem, 4vw, 5rem);
    margin-left: auto;
}

/* O logo do menu ganha fundo proprio, porque o do cliente pode sumir na barra. */
html.stcl-enabled.stcl-internal-enabled.stcl-navbar-logo-custom
body:not(.welcome-anonymous) .navbar-brand .glpi-logo,
body:not(.welcome-anonymous) aside.sidebar a.navbar-brand span.glpi-logo {
    --logo: none !important;
    content: none !important;
    display: block !important;
    width: 180px !important;
    height: 54px !important;
    background: #ffffff url('/plugins/customlogin/asset.php?key=navbar_logo&v=1') center / 160px auto no-repeat !important;
    border-radius: 6px;
}

body.navbar-collapsed .navbar-brand .glpi-logo {
    width: 44px !important;
    background-size: 160px auto !important;
    background-position: 7px center !important;
}
