@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
    /* App base colors */
    --fc-color-primary: #385a26;
    --fc-color-primary-hover: #446930;
    --fc-color-primary-rgb: 236, 111, 67;
    --fc-color-primary-contrast: #000000;
    --fc-color-primary-contrast-rgb: 0, 0, 0;
    --fc-color-primary-shade: #d0623b;
    --fc-color-primary-tint: #ee7d56;
    --bg-color: #fafafa;
    --accent-color: #ed7220;

    /* Keycloak overruled */
    --pf-global--link--Color: var(--fc-color-primary);
    --pf-global--link--Color--hover: var(--fc-color-primary-shade);
    --pf-global--link--Color--visited: #588112;
    --pf-global--primary-color--100: var(--fc-color-primary);
    --pf-global--primary-color--200: var(--fc-color-primary-shade);
    --pf-global--active-color--100: var(--fc-color-primary);
    --pf-global--BorderRadius: 6px;
    --pf-c-form__label--FontSize: 14px;
    --pf-c-dropdown__menu-item--BackgroundColor: #a9c0c9;
}

.pf-c-button {
    --pf-c-button--m-primary--BackgroundColor: var(--fc-color-primary);
    --pf-c-button--m-primary--hover--BackgroundColor: var(--fc-color-primary-hover);
    --pf-c-button--m-primary--active--BackgroundColor: var(--fc-color-primary-hover);
    --pf-c-button--m-primary--focus--BackgroundColor: var(--fc-color-primary-hover);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    font-family: Roboto, "Open Sans", Helvetica, Arial, sans-serif;
}

/* set same as footer's height */
body::after {
    content: "";
    display: block;
    min-height: 50px;
}

.login-pf a {
    color: var(--fc-color-primary);
}

.login-pf a:hover {
    color: var(--fc-color-primary);
}

.login-pf body {
    background: var(--bg-color) none;
    height: auto;
    padding-top: 45px;
}

/* generic */
.pf-c-button {
    border-radius: 2px;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1;
    padding-block: 0.5rem;
    font-weight: normal;
}

/* Remove focus color mac */
input:focus {
    outline: none;
}

/* locale switch */
#kc-locale {
    position: absolute;
    width: 200px;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 9999;
}

#kc-locale-dropdown > a {
    color: #fff;
}

#kc-locale ul {
    background-color: #fff;
}
#kc-locale ul a {
    color: #103949;
}

#kc-locale ul a:hover {
    background-color: #f6f6f6;
}

/* logo section above panel */
.login-pf-page .login-pf-page-header {
    margin-top: 0px;
    margin-bottom: 30px;
    padding-inline-end: 1rem;
}

#kc-header::after {
    content: "";
    background-image: url("../img/logo-food-compass.svg");
    display: block;
    background-repeat: no-repeat;
    max-width: 450px;
    height: 200px;
    margin: 0 auto;
    margin-bottom: 10px;
}

/* login card form */
.login-pf-page .card-pf {
    background-color: #f6f6f6;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #103949;
    border-top: 4px solid;
    border-color: var(--accent-color);
}

.evdm-form-options {
    display: none;
}

.pf-c-form-control:hover,
.pf-c-form-control:focus {
    border-bottom-color: var(--fc-color-primary);
}

/* invalid form */
.pf-c-form-control[aria-invalid="true"]:hover,
.pf-c-form-control[aria-invalid="true"]:focus {
    border-bottom-color: var(--pf-global--danger-color--100);
}

/* social section */
.kc-social-section hr {
    border-top: 1px solid #e1e1e1;
    margin-top: 50px;
    margin-bottom: 20px;
}

#kc-social-providers h4 {
    color: #103949;
}

/* modify header to appear at the footer */
#kc-header-wrapper {
    position: absolute;
    bottom: 0px;
    width: 100%;
    min-height: 50px;
    padding: 2rem;
    font-size: var(--pf-global--FontSize--sm);
    font-weight: initial;
    text-align: center;
    text-transform: initial;
    letter-spacing: 0;
    line-height: 1.2em;
    white-space: normal;
    background-color: var(--fc-color-primary);
}

#kc-header-wrapper {
    color: hsla(0, 0%, 100%, 0.6);
}

/* media queries */
@media (max-width: 767px) {
    #kc-header {
        padding-left: 0px;
        padding-right: 0px;
        float: none;
        text-align: center;
    }

    h1#kc-page-title {
        margin-top: 30px;
        font-weight: lighter;
        font-size: 24px;
    }

    .login-pf-page .card-pf {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
}

input.pf-c-form-control:focus + .pf-c-button.pf-m-control {
    --pf-c-button--m-control--Color: var(--pf-c-button--m-control--focus--Color);
    --pf-c-button--m-control--BackgroundColor: var(--pf-c-button--m-control--focus--BackgroundColor);
    --pf-c-button--m-control--after--BorderBottomColor: var(--pf-c-button--m-control--focus--after--BorderBottomColor);
}

input.pf-c-form-control:focus + .pf-c-button.pf-m-control:after {
    border-bottom-width: var(--pf-c-button--m-control--focus--after--BorderBottomWidth);
}
