/* IFS Energy and Resources look for the sign-in pages (IFS brand colours: Dark Purple #360065,
   Midnight Purple #170430, IFS Purple #8427E2). Loaded after Keycloak's own styles.css. */
:root {
    --keycloak-bg-logo-url: url("../img/ifs-bg.svg");
    --keycloak-card-top-color: #8427E2;
    --ifs-purple: #8427E2;
    --ifs-purple-dark: #6a1cc4;
}

.login-pf body {
    background-color: #360065;
    font-family: "Euclid Circular A", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header: the IFS logo, a thin divider, then the realm's display name. */
#kc-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 0 0 0.5rem;
    white-space: nowrap;
}

#kc-header-wrapper::before {
    content: "";
    flex: 0 0 auto;
    width: 134px;
    height: 56px;
    margin-right: 1.1rem;
    background:
        url("../img/ifs-logo-negative.svg") left center / auto 100% no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)) right center / 2px 62% no-repeat;
}

/* Card */
.pf-v5-c-login__main {
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(23, 4, 48, 0.45);
}

.pf-v5-c-login__main-header {
    border-top-width: 5px;
    border-radius: 10px 10px 0 0;
}

/* Buttons: IFS Purple for the main action, outlined for the Microsoft button. */
.pf-v5-c-button.pf-m-primary {
    --pf-v5-c-button--m-primary--BackgroundColor: var(--ifs-purple);
    --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--ifs-purple-dark);
    --pf-v5-c-button--m-primary--focus--BackgroundColor: var(--ifs-purple-dark);
    --pf-v5-c-button--m-primary--active--BackgroundColor: var(--ifs-purple-dark);
}

#kc-social-providers .pf-v5-c-button {
    --pf-v5-c-button--m-secondary--Color: #360065;
    --pf-v5-c-button--m-secondary--BorderColor: var(--ifs-purple);
    --pf-v5-c-button--m-secondary--hover--BorderColor: var(--ifs-purple-dark);
}

a, .pf-v5-c-button.pf-m-link {
    --pf-v5-c-button--m-link--Color: var(--ifs-purple);
    color: var(--ifs-purple);
}

@media (max-width: 600px) {
    #kc-header-wrapper { font-size: 1.45rem; }
    #kc-header-wrapper::before { width: 100px; height: 42px; margin-right: 0.8rem; }
}
