:root {
    --textColor: #f6f5f7;
    --textOffColor: #7c858d;
    --baseColor: #252C33;
    --baseDarkColor: #121317;
    --baseLightColor: #283b48;
    --secColor: rgb(255, 168, 70);
}

html, body, .login-pf-page body {
    background: var(--baseColor) !important;
    color: white;
}

.font-size-lg {
    font-size: 16px;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.pf-c-form__helper-text {
    display: block;
}

.pf-c-form__label {
    font-size: 15px;
    text-align: right;
    padding-right: 20px;
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}

.pf-c-form-control {
    display: inline-block;
    border-color: var(--textOffColor);
    flex: 0 0 50%;
    background: var(--baseColor) !important;
    color: white;
}

.form-check {
    margin-left: 33.3%;
    flex: 0 0 50%;
    max-width: 50%;
}

.form-check-label {
    width: calc(100% - 25px);
    margin-left: 10px;
}

.form-check-input {
    float: left;
}


.kc-form-options {
    font-size: 15px;
}

.btn-lg {
    font-size: 18px;
}

a {
    color: var(--secColor);
}

.pf-c-button {
    background: var(--secColor);
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    line-height: 24px;
}

.pf-c-button.pf-m-primary {
    background: var(--secColor);
    color: var(--baseColor);
}

.pf-c-button.pf-m-primary:hover {
    background: #CC942D;
    color: var(--baseColor);
}


#kc-content {
    padding: 0 20px 20px 20px;
}

.pf-c-form-control {
    display: inline-block;
    border-color: var(--textOffColor);
    flex: 0 0 50%;
}

.pf-c-form-control:hover, .pf-c-form-control:focus {
    border-color: inherit;
    border-bottom-width: 1px;
}

.pf-c-form-control:focus, .pf-c-form-control:focus-visible {
    border-color: #a1cbef;
    box-shadow: 0 0 0 .2rem rgba(52, 144, 220, .25);
    border-bottom-width: inherit;
    outline: 0;
}

#kc-header {
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--baseDarkColor);
    color: var(--textColor);
    z-index: 3;
}

#kc-header-wrapper {
    text-transform: none;
    line-height: 70px;
    letter-spacing: unset;
}

#kc-header-wrapper a {
    color: var(--textColor);
    text-decoration: none;
}

.login-pf-page .login-pf-settings, #kc-form-buttons, .form-check {
    margin-left: 33.33333% !important;
    margin-top: 0;
    justify-content: normal;
}

#kc-form-buttons a {
    line-height: 37px;
}

#kc-username {
    display: block;
    padding: 12px;
    line-height: 1.1;
    font-size: 20px;
    margin: 0;
}

#kc-username label {
    font-weight: 900;
}

.kc-login-tooltip .kc-tooltip-text {
    font-size: 15px;
}

.kc-login-tooltip:hover .kc-tooltip-text {
    opacity: 1;
}

.login-pf-page .card-pf {
    padding: 0;
    border: none;
    background: none;
    transform: translateY(-50%) translateX(-50%);
    position: absolute;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);
    width: 600px;
    max-width: 90%;
}

.card-pf header {
    background: var(--baseDarkColor);
    color: white;
}

h1#kc-page-title {
    font-weight: 900;
    font-size: 20px;
    padding: 12px;
    margin: 0;
}

.login-pf-page .card-pf {
    padding: 0;
}

.pf-c-button.pf-m-block {
    width: auto;
}

.login-pf-page {
    padding: 0;
    height: calc(100vh - 170px);
    min-height: 350px;
    position: relative;
    margin-top: 100px;
}

#kc-header-wrapper {
    padding: 0;
    height: 100px;
}

#kc-header-wrapper .logo {
    font-size: 45px;
    font-weight: 900;
}

#kc-header-wrapper img {
    margin: 10px;
    height: 80px;
}

footer {
    width: 100%;
    height: 50px;
    line-height: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);
    margin-top: 20px;
}

footer span {
    padding: 0 20px;
}

footer #rightFooter {
    height: 100%;
    color: white;
    text-align: center;
    float: right;
}

footer #rightFooter a {
    text-decoration: none;
    color: #fff;
    position: relative;
    margin: 0 20px;
    font-weight: 700;
}

footer #rightFooter a:hover::after {
    width: 120%;
}

footer #rightFooter a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #fff;
    bottom: -.4rem;
    float: left;
    left: -10%;
    transition: width .3s ease;
    -webkit-transition: width .3s ease;
    -moz-transition: width .3s ease;
    -ms-transition: width .3s ease;
    margin: 0 auto;
}

html, body, .login-pf body {
    height: auto;
}

.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 767px) {
    #kc-header {
        text-align: center;
    }

    .login-pf-page .card-pf {
        padding: 0;
        border: none;
        background: none;
        transform: translateY(-50%) translateX(-50%);
        position: absolute;
        top: 50%;
        left: 50%;
        box-shadow: 0 0 20px rgba(0, 0, 0, .5);
    }

    .form-group {
        display: block;
    }

    .pf-c-form__label {
        text-align: left;
    }

    .pf-c-form-control {
        max-width: 100%;
    }

    .form-check {
        margin-left: 0;
        max-width: 100%;
    }

    .login-pf-page .login-pf-settings, #kc-form-buttons {
        margin-left: 0;
    }

    footer {
        height: auto;
        text-align: center;
    }

    footer #rightFooter {
        width: 100%;
    }
}