:root {
    /* App base colors */
    --ion-color-primary: #ec6f43;
    --ion-color-primary-rgb: 236,111,67;
    --ion-color-primary-contrast: #000000;
    --ion-color-primary-contrast-rgb: 0,0,0;
    --ion-color-primary-shade: #d0623b;
    --ion-color-primary-tint: #ee7d56;
    
    /* Keycloak overruled */
    --pf-global--link--Color: var(--ion-color-primary);
    --pf-global--link--Color--hover: var(--ion-color-primary-shade);
    --pf-global--link--Color--visited: #40199a;
    --pf-global--primary-color--100: var(--ion-color-primary);
    --pf-global--primary-color--200: var(--ion-color-primary-shade);
    --pf-global--active-color--100: var(--ion-color-primary);
    --pf-global--BorderRadius: 6px;
    --pf-c-form__label--FontSize: 14px;
    --pf-c-dropdown__menu-item--BackgroundColor: #A9C0C9;
}

body {
    position:relative;
    min-height:100vh;
    margin:0;
}

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

.login-pf body {
  background: #103949 none;
  height: auto;
  padding-top: 45px;
}

/* generic */
.pf-c-button {
    border-radius: 2px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 20px;
    padding-top: 10px;
    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;
}

#kc-header::after {
    content: '';
    background-image: url('../img/logo-evdm.svg');
    display: block;
    background-repeat: no-repeat;
    max-width: 243px;
    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: #28AAE1;
}

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

.pf-c-form-control:hover, .pf-c-form-control:focus {
    border-bottom-color: var(--ion-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;
}

#social-join-data {
    background-image: url('../img/logo-joindata.svg');
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
}

#social-join-data:hover {
    background-color: #fff;
}

#social-join-data::after {
    border: none;
}

#social-join-data span {
    display: none;
}

/* modify header to appear at the footer */
#kc-header-wrapper {
    position: absolute;
    bottom: 0px;

    width: 100%;
    min-height: 50px;
    padding: 15px;

    font-size: var(--pf-global--FontSize--sm);
    font-weight: initial;
    text-align: center;
    text-transform: initial;
    letter-spacing: 3px;
    line-height: 1.2em;
    white-space: normal;

    color: #326172;
}

/* 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;
    }
}
