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

/*
Pro Aegris Custom styling Start
*/

[data-page-id="login-login-config-totp"] {

    .login-pf-page .card-pf, .card-pf {
        top: 50px;
    }

    #kc-totp-settings{
        padding-top: 8px;
        padding-left: 18px;
        padding-right: 18px;
        color: black;

        p {
            color: black;
        }
    }

    #kc-form-options {
        display: none;
    }
}

[data-page-id="login-login-update-password"] {
    #kc-form-options {
        display: none;
    }
}

[data-page-id="login-login-otp"] {

    #kc-content {
        padding-top: 70px;
    }
    #kc-username {
        text-align: center;
        padding-top: 40px;
        line-height: 18px;

        #reset-login {
            line-height: 18px;
            .kc-login-tooltip {
                line-height: 18px;
            }
        }
    }
}

.login-pf-page-header {
    display: none;
}

.login-pf body {
    background: #EAEEEE;
}


@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: normal;
    src: url('Montserrat-Regular.ttf');
}
body {
    margin: 0;
    padding: 16px;
    font-family: 'Montserrat';
    background: #EAEEEE;
}

.login-pf-header {
    content: "";
    padding: 0;
    line-height: 50px;
    background-repeat: no-repeat;
    background-image: url("proaegris_logo.svg");
    margin: 16px auto 0;
    background-size: 320px 38px;
    height: 38px;
    width: 320px;
    h1 {
       display: none;
    }
}

* {
    font-size: 14px;

    h2 {
        font-size: 18px;
    }
}

.pf-c-button.pf-m-primary {
    margin-top: 16px;
    color: white;
    line-height: 38px;
    background-color: #2f5854;
    font-size: 16px;
    font-family: Montserrat, serif;
    font-weight: 600;
}

.pf-c-form-control {
    outline-width: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.pf-c-form-control:focus, .pf-c-form-control:hover {
    --pf-c-form-control--BorderBottomColor: #2f5854;
    border-bottom-width: 1px;
}

.login-pf a:hover {
    color: #2f5854;
}

#kc-header {
    color: black;
    overflow: visible;
    font-size: 25px;
    white-space: nowrap;
}

.subtitle {
    text-align: right;
    margin-top: 30px;
    color: black;
}

.required {
    color: #E53243;
}

#kc-totp-secret-key {
    background-color: #fff;
    color: black;
    font-size: 16px;
    padding: 10px 0;
}

.select-auth-box-headline {
    font-size: var(--pf-global--FontSize--md);
    color: #2f5854;
}

.login-pf-page .card-pf,
.card-pf {
    max-width: 648px;
    border: none;
    margin-left: auto;
    margin-right: auto;
    width: 648px;
    background-color: white;
    padding: 16px 24px;
    position: relative;
    top: calc((100vh / 2) - 250px);

    .pf-c-button.pf-m-control:not([type="button"]),
    .pf-c-input-group {
        background-color: rgba(234, 238, 238, 0.5);
        opacity: 1;
        border: 1px solid #6d8a87;
        height: 38px;
    }

    .pf-c-button.pf-m-control[type="button"] {
        background-color: rgba(234, 238, 238, 0.5);
        border-bottom: none;
    }

    .pf-c-button.pf-m-control:after {
        border: none;
    }

    input[type="text"] {
        border: 1px solid #6d8a87;
        background-color: rgba(234, 238, 238, 0.5);
        opacity: 1;
    }

    .pf-c-form-control[type="password"] {
        border-bottom: 0;
        background-color: rgba(234, 238, 238, 0.5);
        opacity: 1;
    }

    .pf-c-form__label,
    label {
        font-size: 14px;
        text-transform: uppercase;
        page-break-after: avoid;
        color: #2f5854;
    }
}
