@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --pf-v5-global--link--Color: #009FFD;
    --pf-v5-global--FontFamily--text: "Open Sans", Helvetica, Arial, sans-serif;
}

.pf-v5-c-login {
    --pf-v5-c-login__main--BoxShadow: 0px 1px 5px rgba(0, 0, 0, 0.2), 0px 3px 1px -2px rgba(0, 0, 0, 0.12), 0px 2px 2px rgba(0, 0, 0, 0.14);

    --pf-v5-c-login__main-header--PaddingBottom: 24px;
    --pf-v5-c-login__main-header--PaddingTop: 40px;
    --pf-v5-c-login__main-header--PaddingRight: 40px;
    --pf-v5-c-login__main-header--PaddingLeft: 40px;

    --pf-v5-c-login__main-body--PaddingBottom: 40px;
    --pf-v5-c-login__main-body--PaddingRight: 40px;
    --pf-v5-c-login__main-body--PaddingLeft: 40px;
    --pf-v5-c-login__main-footer-band--BorderTopWidth: 0px;

    --pf-v5-c-login__main-footer-band--PaddingBottom: 0px;
    --pf-v5-c-login__main-footer-band--PaddingTop: 0;
    --pf-v5-c-login__main-footer-band--PaddingRight: 0;
    --pf-v5-c-login__main-footer-band--PaddingLeft: 0;

    --pf-v5-c-login__header--c-brand--MarginBottom: 40px;
}

@media (min-width: 768px) {
    .pf-v5-c-login {
        --pf-v5-c-login__main-header--PaddingRight: 56px;
    }
}

.pf-v5-c-title {
    --pf-v5-c-title--FontFamily: "Exo 2", serif;
    --pf-v5-c-title--m-3xl--FontSize: 24px;
    --pf-v5-c-title--m-3xl--LineHeight: 34px;
    --pf-v5-c-title--m-3xl--FontWeight: 300;
}

.pf-v5-c-form {
    --pf-v5-c-form__label--FontSize: 14px;
    --pf-v5-c-form__label--LineHeight: 18px;
    --pf-v5-c-form__label-text--FontWeight: 600;
    --pf-v5-c-form__helper-text--MarginTop: 8px;
}

.pf-v5-c-form-control {
    --pf-v5-c-form-control__utilities--PaddingRight: 0px;
}

.pf-v5-c-form-control > select {
    --pf-v5-c-form-control--PaddingLeft: 0.5rem;
}

.pf-v5-c-form-control::after {
    --pf-v5-c-form-control--after--BorderBottomColor: #3D4A9A;
}

.pf-v5-c-button.pf-m-control {
    --pf-v5-c-button--m-control--after--BorderBottomColor: #3D4A9A;
}

/* This styles the buttons. It is a slightly convoluted selector, this is since we might accidentally target too much. */
.pf-v5-c-form__actions .pf-v5-c-button, #kc-form-buttons .pf-v5-c-button {
    --pf-v5-c-button--m-primary--BackgroundColor: #009FFD;
    --pf-v5-c-button--m-primary--hover--BackgroundColor: #80CFFE;
    --pf-v5-c-button--PaddingTop: 16px;
    --pf-v5-c-button--PaddingRight: 16px;
    --pf-v5-c-button--PaddingBottom: 16px;
    --pf-v5-c-button--PaddingLeft: 16px;
    --pf-v5-c-button--BorderRadius: 26px;
    --pf-v5-c-button--after--BorderRadius: 26px;
    --pf-v5-c-button--FontWeight: 600;
    --pf-v5-c-button--LineHeight: 22px;
    --pf-v5-c-button--FontSize: 16px;
    --pf-v5-c-button--m-secondary--Color: #3D4A9A;
    --pf-v5-c-button--m-secondary--after--BorderColor: #3D4A9A;
    font-family: "Exo 2", serif;
}

#kc-page-title {
    color: #3D4A9A;
}

.pf-v5-c-form__label {
    padding-bottom: 8px;
    color: #002451;
}


/* Style the background */
.login-pf body {
    background: #F0F2F5 url("../img/background.png") no-repeat center center fixed;
    background-size: cover;
}


/* Style the logo */
#kc-header {
    margin-top: 40px;
}

div.kc-logo-text {
    background-image: url(../img/sportlink-account.svg);
    height: 34px;
}


/* Style the card */
.pf-v5-c-login__main-header {
    border-top: 4px solid #3D4A9A;
}


/* Removes the rememberMe functionality on the login page. */
#kc-form-wrapper .pf-v5-c-form__group:has(#rememberMe) {
    display: none;
}


/* Removes the text `Required fields` on the register page */
.pf-v5-c-login__main-body .pf-v5-u-mb-md-on-md:has(.subtitle .pf-v5-c-form__label-required) {
    display: none;
}


/* Remove the username field on the conditional otp step */
.pf-v5-c-form__group:has( + #kc-optional-otp-form) {
    display: none;
}


/* Remove the username field on the otp step */
.pf-v5-c-form__group:has( + #kc-otp-login-form) {
    display: none;
}

/* Remove the banner when configuring otp */
.pf-v5-c-alert:has( + #configure-otp-first-step) {
    display: none;
}

/* Remove the banner when configuring otp */
.pf-v5-c-alert:has( + #sportlink__verify-email__introduction) {
    display: none;
}

/* Remove the banner when changing the password */
.pf-v5-c-alert:has( + #kc-passwd-update-form) {
    display: none;
}


/* Styles the bottom of the card which tends to contain info text.*/
#kc-info {
    margin: 24px 0 0;
    text-align: center;
}

#kc-info-wrapper {
    font-size: 14px;
    color: #72767b;
}

.sportlink-login__help-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

.sportlink-login__help-row__heading {
    font-family: 'Exo 2', serif;
    font-size: 16px;
    font-weight: 600;
    color: #3D4A9A;
}

.sportlink__step__introduction {
    font-size: 16px;
    letter-spacing: -0.2px;
    font-weight: 400;
    color: #002451;
    line-height: 22px;
}

.sportlink__step__title {
    font-family: 'Exo 2', serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #3D4A9A;
    margin-bottom: 8px;
}

.sportlink__error__instruction {
    margin: 0 0 24px 0;
}


/* Improve styling of person select*/
#navajo-choose-person-selected {
    border-top: solid #F0F0F0 1px;
    border-left: solid #F0F0F0 1px;
    border-right: solid #F0F0F0 1px;
}
#navajo-choose-person-selected + svg {
    position: absolute;
    right: 10px;
    top: 10px;
}


@media (prefers-color-scheme: dark) {
    .login-pf body {
        background: #384E70 url("../img/background-dark.png") no-repeat center center fixed;
        background-size: cover;
    }

    #kc-page-title {
        color: white;
    }

    div.kc-logo-text {
        background-image: url(../img/sportlink-account-dark.svg);
        height: 34px;
    }

    #kc-info-wrapper {
        color: #c1c1c1;
    }

    .pf-v5-c-login__main {
        border-color: #647B96;
    }

    .pf-v5-c-form__label {
        color: white;
    }

    .sportlink-login__help-row__heading {
        color: #fff;
    }

    .sportlink__step__introduction {
        color: white;
    }

    .sportlink__step__title {
        color: #fff;
    }

    .pf-v5-c-form__actions .pf-v5-c-button, #kc-form-buttons .pf-v5-c-button {
        --pf-v5-c-button--m-secondary--Color: #fff;
        --pf-v5-c-button--m-secondary--after--BorderColor: #fff;
    }
}
