/*
 * "New user? Register" sits at the TOP of the card, directly under the title (the owner, 2026-09-22).
 *
 * Two rules are needed, and both were measured against the live DOM rather than assumed:
 *
 * 1. Keycloak renders TWO elements carrying the class .pf-v5-c-login__main-footer. One is a direct child of
 *    .pf-v5-c-login__main; the one that actually holds #kc-info (the register link) is nested INSIDE
 *    .pf-v5-c-login__main-body. Two early attempts targeted the wrong one and changed nothing while appearing
 *    to be installed. Making the body a column flexbox and ordering that footer first lifts the whole block
 *    above the sign-in form.
 *
 * 2. Rule 1 alone is not enough. Inside that footer the document order is the "Or sign in with" band, then
 *    #kc-social-providers (the Google button), then #kc-info - so the register link still rendered BELOW
 *    Google. The footer is therefore also made a column flexbox with #kc-info ordered first within it.
 *    Measured on the live page after this rule: title 135, register 224, Google 386, form 478.
 *
 * No template is overridden, so an upgrade cannot break the page: if these class names change the rules simply
 * stop applying and the stock layout returns.
 *
 * The file name carries a version because Keycloak serves theme resources with max-age=2592000 at a URL that
 * does not change when the file does - editing in place leaves every browser that has already loaded the page
 * on the old copy for thirty days. Bump the name on every change.
 */
.pf-v5-c-login__main-body {
  display: flex;
  flex-direction: column;
}
.pf-v5-c-login__main-body > .pf-v5-c-login__main-footer {
  order: -1;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.pf-v5-c-login__main-body > .pf-v5-c-login__main-footer > #kc-info {
  order: -1;
  margin-bottom: 1rem;
}
