/*
 * Login page forms — GLPI plugin "loginforms".
 *
 * GLPI renders the `display_login` hook inside a narrow column to the right of the login
 * form (templates/pages/login.html.twig), and has no hook point underneath the form. This
 * rule widens that column to the whole row, which makes the flex row wrap it onto its own
 * line — i.e. under the Sign in button.
 *
 * Scoped through :has() so the rule only fires once this plugin has actually rendered into
 * that column: an install where only other plugins use the hook keeps the default side
 * panel. (The column is shared, so any other plugin rendering there does move down with
 * us — there is only one such column in the template.)
 *
 * Loaded only when the "Under the login form" placement is selected — see
 * `add_css_anonymous_page` in setup.php.
 */

/* The column's own horizontal padding is left alone on purpose: the block nests a Bootstrap
   .row, whose negative gutter margins are meant to cancel exactly that padding. */
.page-anonymous .col-auto:has(> .plugin-loginforms--below) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 1.25rem;
}
