/* SISTO's KSB look on top of keycloak.v2, matching the portal: KSB colours from
   resources/frontend/styles/Codewerk/tailwind.config.js, the same background
   image and logo, and Inter as the typeface. */

/* Inter (SIL Open Font License), self-hosted: Latin and Latin Extended cover
   EN, DE and FR. */
@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --sisto-ksb-blue: #003674;
    --sisto-ksb-cyan: #009FE3;

    --pf-v5-global--FontFamily--text: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
    --pf-v5-global--FontFamily--heading: "Inter Variable", ui-sans-serif, system-ui, sans-serif;

    --pf-v5-global--Color--100: #000000;

    --pf-v5-global--primary-color--100: var(--sisto-ksb-blue);
    --pf-v5-global--primary-color--200: var(--sisto-ksb-blue);

    --pf-v5-global--link--Color: var(--sisto-ksb-blue);
    --pf-v5-global--link--Color--hover: var(--sisto-ksb-cyan);

    --keycloak-card-top-color: var(--sisto-ksb-blue);

    --keycloak-bg-logo-url: none;
}

.login-pf body {
    background: #001A6E url("../img/sisto-background.jpg") no-repeat center / cover fixed;
}

/* The realm name sits on the dark background, so it is white. */
#kc-header-wrapper {
    color: #ffffff !important;
}

/* The SISTO logo above the realm name. */
#kc-header-wrapper::before {
    content: "";
    display: block;
    width: 200px;
    max-width: 100%;
    height: 68px;
    margin: 0 auto 24px;
    background: url("../img/sisto-logo.png") no-repeat center / contain;
}

/* Primary button, as the portal's btn-ksb: solid KSB Blue at rest; on hover
   the double-width gradient slides over so its KSB Cyan -> KSB Blue half
   shows. */
.pf-v5-c-button.pf-m-primary {
    color: #ffffff;
    background-color: var(--sisto-ksb-blue);
    background-image: linear-gradient(90deg, var(--sisto-ksb-cyan) 0%, var(--sisto-ksb-blue) 50%, var(--sisto-ksb-blue) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-origin: border-box;
    background-repeat: no-repeat;
    transition: background-position 0.4s ease;
}

.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus-visible {
    color: #ffffff;
    background-position: 0 0;
}
