/* Loaded after keycloak.v2's css/styles.css, see theme.properties. Only overrides belong here. */

/* Custom background image */
.login-pf body {
    background: url("../img/background.jpg") no-repeat center center fixed !important;
    background-size: cover !important;
}

form#kc-form-login {
    display: none;
}

.pf-v5-c-login__main-footer-band {
    display: none;
}

/* Divider between the hidden login form and the identity providers, more specific than Keycloak's rule */
.pf-v5-c-login__main-footer .kc-login-divider {
    display: none;
}

/* Fixed white with a shadow, the theme color turns grey in dark mode and both are hard to read on the background */
#kc-header-wrapper {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Keep the PatternFly body padding below the providers, Keycloak 26.8 replaced it with pf-v5-u-pb-lg and
 * styles.css removes it when the providers are the last section */
#kc-social-providers .pf-v5-c-login__main-body,
#kc-social-providers:last-child .pf-v5-c-login__main-body {
    padding-bottom: var(--pf-v5-global--spacer--xl) !important;
}

#kc-social-providers ul > li:last-child {
    padding-bottom: var(--pf-v5-global--spacer--sm) !important;
}

/* Color the generic provider icon blue to match the secondary button */
#kc-social-providers img[src$="/default.svg"] {
    filter: invert(47%) sepia(88%) saturate(7486%) hue-rotate(199deg) brightness(91%) contrast(101%);
}

@media (prefers-color-scheme: dark) {
    #kc-social-providers img[src$="/default.svg"] {
        filter: invert(54%) sepia(96%) saturate(2028%) hue-rotate(174deg) brightness(99%) contrast(97%);
    }
}
