/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
   This clashes with the "keycloak-bg.png' background defined on the body below.
   Therefore the Patternfly background must be set to none. */
.login-pf {
    background: none;
}

.login-pf body {
    background: none;
    height: 100%;
    overflow: hidden;
}

.login-pf body:before {
    background: url("../img/censhare-login-page-logo.svg") no-repeat top left;
    background-size: auto 45px;
    content: " ";
    height: 45px;
    left: 32px;
    top: 32px;
    padding: 0 120px 0 4px;
    position: absolute;
}

.login-pf-page {
    padding-top: 0;
    width: 50%;
}

#kc-header {
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -100;
}

#kc-header-wrapper {
    background-color: #302B52;
    overflow: visible;
    float: right;
    font-size: 0;
    height: 100%;
    width: 50%;
}

#kc-header-wrapper:before {
    background: url("../img/login-bubble.svg") no-repeat bottom left;
    content: " ";
    height: 100%;
    left: 45%;
    padding-left: 50%;
    position: absolute;
    width: 100%;
}

h1#kc-page-title {
    font-weight: 500;
    text-align: left;
}

.login-pf-page .card-pf {
    border-color: white;
    border: none;
    box-shadow: none;
    margin: 200px auto;
    max-width: 400px;
    padding: 20px 40px 30px 40px;
    background-color: transparent;
}

.pf-c-form-control:not(textarea) {
    border: 1px solid #CED4DA;
    border-radius: 4px;
}

.pf-c-button{
    border-radius: 4px;
}

.pf-c-button.pf-m-primary, .pf-c-button.pf-m-primary:hover, .pf-c-button.pf-m-primary:active, .pf-c-button.pf-m-primary:active:focus {
    background-color: #6380F7;
    background-image:none;
    color: #fff;
    line-height: inherit;
}

/* @media  */
@media(max-width: 768px) {

    .login-pf-page .card-pf {
        margin-top: 150px;
        padding: 20px 40px 30px 40px;
    }

    #kc-header {
        display: none;
    }

    #kc-header-wrapper:before {
        display: none;
    }

    .login-pf-page {
        width: 100%;
    }

}

@media(max-width: 576px) {

    body, html {
        overflow: auto;
    }

    .login-pf-page .card-pf {
        margin-top: 100px;
        padding: 20px 40px 30px 40px;
    }
}