/* TRFX SSO Bridge: SSO-Button zentriert unter dem normalen Login-Formular anzeigen
   statt in GLPIs Standard-Rechtsspalte (right_panel). */
form[action*="login.php"] .row.justify-content-center {
    flex-direction: column;
    align-items: center;
}

form[action*="login.php"] .row.justify-content-center > .col-md-5 {
    order: 1;
    width: 100%;
    max-width: 26rem;
    flex: 0 0 auto;
}

form[action*="login.php"] .row.justify-content-center > .col-auto {
    order: 2;
    width: 100%;
    max-width: 26rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
    text-align: center;
}

form[action*="login.php"] .row.justify-content-center > .col-auto .btn {
    width: 100%;
}

/* Das Stapeln macht die Karte hoeher als vorher (nebeneinander) - das
   grosszuegige Aussen-Padding der Login-Seite entsprechend einsparen,
   damit die Seite nicht ueber 100vh hinauswaechst. Nur auf der Login-
   Seite (nicht z.B. lostpassword), erkannt am Formular selbst. */
body:has(form[action*="login.php"]) .flex-fill.d-flex.flex-column.justify-content-center {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

body:has(form[action*="login.php"]) .container-tight.py-6 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

body:has(form[action*="login.php"]) .glpi-logo {
    margin-bottom: 1rem !important;
}
