/*###### VARIABLES #####*/
:root {
    --aba-primary-color: #2e5bed;
    --aba-banner-color-dark: #143599;
    --aba-banner-color-light: #2c68ea;
    --aba-logo-location: url('../img/logo.png');
}

/*###### BACKGROUND #####*/
/*The parent styles set a background which must be removed */
.login-pf body {
    background: none;
}

.login-pf {
    background: none;
}

/*###### MAIN CONTAINER #####*/
.kc-body-class {
    /*Two column grid layout.*/
    display: grid;
    grid-template-columns: 52.6% 47.4%;
    font-family: 'Inter', sans-serif;
}

/*##### TOAST #####*/
.toast-container {
    position: fixed;
    top: 20px;
    /*Show centered*/
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999; /*Lay over all other elements*/
}

.toast {
    border: 1px solid lightgrey;
    border-radius: 10px;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.toast.show {
    opacity: 1;
}

.toast-text {
    /*Space between text and close button*/
    margin-right: 15px;
    font-size: 14px;
}

.toast-text.toast-title {
    margin-bottom: 5px;
    font-weight: bold;
}

.toast-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: grey;
    font-size: 18px;
    cursor: pointer;
}

.email-address {
    font-weight: 575 !important;
}

/*##### FORM COLUMN #####*/
.form-column {
    display: grid;
    padding: 20px;
}

/*Main container for the content of the form column */
.card-pf {
    display: grid;
    /*Set ratio between logo and form row*/
    grid-template-rows:41vh 1fr;
    box-shadow: none;
    width: 500px;
    max-width: 95vw;
    justify-self: center;
}

/*##### LOGO #####*/
/*Parent of the logo*/
.login-pf-header {
    align-self: center;
}

#logo {
    height: 50px;
    width: 100%;
    background-image: var(--aba-logo-location);
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    align-self: center;
}

/*##### FORM #####*/
.form {
    align-self: start;
}

.form-elements * {
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 1.188rem;
}

#kc-page-title {
    font-size: 1.563rem;
    font-weight: bold;
    text-align: left;
}

/*##### FORM BUTTONS #####*/
.pf-m-primary {
    background-color: var(--aba-primary-color) !important;
    border: 1px solid var(--aba-primary-color) !important;
}

.pf-m-primary:active {
    color: #afc4fc;
}

/*After the button is clicked, it is disabled for a short time.*/
.pf-m-primary:disabled {
    color: #afc4fc;
}

.btn-default {
    border: 1px solid lightgrey;
    background-color: white;
    background-image: none;
}

.pf-c-form-control {
    border-color: grey;
    background-color: white;
    border-radius: 10px;
}

.pf-c-form__label-text {
    font-size: 1rem;
    margin-bottom: 5px;
}

/*##### FOOTER #####*/
.footer {
    display: grid;
    align-self: end;
    grid-template-columns: 1fr 1fr;
    padding: 0 1vw;
    font-size: 0.875rem;
}

/*#### LOCALE DROPDOWN */
#kc-locale {
    text-align: right;
}

#kc-locale ul {
    display: none;
    min-width: 100px;
    justify-self: end;
}

#kc-locale-dropdown:hover ul {
    display: block;
    border-radius: 10px;
    transform-origin: top center;
    transform: translateY(-113%) translateX(-10%);

}

#kc-locale-dropdown a {
    color: black;
    text-decoration: none;
}

a#kc-current-locale-link::after {
    content: "\02c4";
    margin-left: var(--pf-global--spacer--xs);
}

/*##### BANNER COLUMN #####*/
.banner-column {
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 40px;
    background-image: linear-gradient(to top right, var(--aba-banner-color-dark), var(--aba-banner-color-light));
}

.banner-content {
    width: 500px;
}

.banner-content h2 {
    color: white;
    text-align: center;
    font-weight: 600;
}

.banner-content p {
    /* Slightly transparent white so the background color shines through */
    color: #ffffffa6;
    text-align: center;
    font-size: medium;
}

/*##### RESPONSIVE #####*/
@media (max-width: 1075px) {
    .kc-body-class {
        grid-template-columns: 1fr;
    }

    .banner-content {
        display: none;
    }

    .banner-column {
        order: 1;
        height: 15vh !important;
    }

    .form-column {
        order: 2
    }

    .card-pf {
        grid-template-rows: 20vh auto !important;
    }

    .login-pf-header {
        align-self: start;
    }

    .login-pf-page .card-pf {
        padding: 10px 20px 30px 20px;
    }

    #logo {
        height: 40px;
    }

    .toast {
        min-width: 250px;
    }
}




