.login-pf {
    background: none;
}

.login-pf body {
    background: white;
    margin: 0;
    font-family: Roboto, sans-serif;
    color: #212529;
    text-align: left;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}
.login-pf-page {
    padding-top: 5px;
    padding-bottom: 70px;
}

.login-pf-page .card-pf {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #d1d1d1;
    box-shadow: 5px 5px 6px -6px #777;
    border-radius: 5px;
    margin-bottom: 10px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 70px;
    margin: 0 auto;
    max-width: 500px;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.btn-primary {
    font-size: 26px;
    font-weight: bold;
}

label {
    font-weight: 400;
    font-size: 22px;
    color: #212529;
    line-height: 24px;
}

.login-pf-page .form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 3px 12px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: rgb(103, 199, 123);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(47, 128, 64, 0.25);
}

.login-pf-page .btn-primary, .login-pf-page .login-pf-social-link a.btn-primary {
    margin-top: 0;
    color: white;
    background-image: none;
    background-color: #307d3d;
    border-color: #307d3d;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

.login-pf-page .btn-primary:hover, .login-pf-page .btn-primary:focus,
.login-pf-page a.btn-primary:hover, .login-pf-page a.btn-primary:focus {
    color: white;
    background-color: #266230;
    border-color: #22592b;
}

.login-pf body {
    background-size: cover;
    height: 100%;
}

.alert-error {
    background-color: #ffffff;
    border-color: #cc0000;
    color: #333333;
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    right: 0;
    top: 20px;
    min-width: 100px;
    padding: 2px 0;
    border: solid 1px #bbb;
}

#kc-locale:hover ul {
    display: block;
    margin: 0;
}

#kc-locale ul li a {
    display: block;
    padding: 5px 14px;
    color: #000 !important;
    text-decoration: none;
    line-height: 20px;
}

#kc-locale ul li a:hover {
    color: #4d5258;
    background-color: #d4edfa;
}

#kc-locale-dropdown a {
    color: #4d5258;
    background: 0 0;
    padding: 0 15px 0 0;
    font-weight: 300;
}

#kc-locale-dropdown a:hover {
    text-decoration: none;
}

a#kc-current-locale-link {
    display: block;
    padding: 0 5px;
}


a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 4px;
}

.login-pf .container {
    padding-top: 40px;
}

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

#kc-page-title {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 25px;
    margin-top: 25px;
}

a {
    text-decoration: underline;
    color: #307d3d
}

a:hover {
    text-decoration: underline;
    color: #133219
}

.form-group.login-pf-settings {
    position: relative;
}

.form-group.login-pf-settings a[tabindex='1'] {
    font-size: 0;
    font-weight: normal;
}

.form-group.login-pf-settings a[tabindex='1']:focus {
    color: #266230;
}

.form-group.login-pf-settings a[tabindex='1']::after {
    content: "Initial Login/Forgot Password?";
    right: 0;
    width: 100%;
    text-align: right;
    font-size: 18px;
    display: inline-block;
}

.form-group.login-pf-settings a::after:hover {
    text-decoration: underline;
    color: #133219
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {

    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 62px auto 0;
}

div.kc-logo-text {
    background-image: url(../img/Qpercom-with-tagline.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    background-image: url(../img/Qpercom-with-tagline.png);
    background-size: 360px;
    background-repeat: no-repeat;
    height: 64px;
    overflow: visible;
    white-space: nowrap;
    margin-bottom: 100px;
    position: relative;
    border-bottom: 1px solid #dee2e6;
}

#kc-header-wrapper {
    font-size: 22px;
    letter-spacing: 3px;
    line-height: 2.8em;
    color: #307d3d;
    font-weight: bold;
    text-align: end;
    margin-right: 15px;
}

#kc-content {
    width: 100%;
    padding: 30px 25px;
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding-bottom: 0;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

#restart-wrapper {
    margin-bottom: 0 !important;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#kc-webauthn-settings-form {
    padding-top: 8px;
}


#kc-info {
    padding-bottom: 200px;
    margin-bottom: -200px;
}

#kc-info-wrapper {
    font-size: 15px;
}

#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 20px;
    color: #72767b;
}

#kc-form-options label {
    font-size: 16px;
}
#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration {
    margin-bottom: 15px;
}

/* TOTP */

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

.required {
    color: #CB2915;
}

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
    margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width: 150px;
    max-height: 150px;
}

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

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-oauth ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Code */
#kc-code textarea {
    width: 100%;
    height: 8em;
}

/* Social */

#kc-social-providers ul {
    padding: 0;
    margin: 0;
}

#kc-social-providers li {
    display: block;
    margin: 0;
}

#kc-social-providers li:first-of-type {
    margin-top: 0;
}

#kc-form-login div.form-group:last-of-type {
    display: flex;
}


.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text {
    top: -3px;
    left: 160%;
    background-color: black;
    visibility: hidden;
    color: #fff;

    min-width: 130px;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    padding: 5px;

    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity: 0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

.zocial,
a.zocial {
    width: 100%;
    font-weight: normal;
    font-size: 14px;
    text-shadow: none;
    border: 0;
    color: #307d3d!important;
    border-radius: 0;
    white-space: normal;
    padding: 0!important;
    font-size: 18px!important;
}

.zocial:before {
    border-right: 0;
    margin-right: 0;
}

.zocial span:before {
    padding: 7px 10px;
    font-size: 14px;
}

.zocial:hover {
    background: none!important;
    text-decoration: underline!important;
    color: #266230!important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
    background-image: none;
    border: 0;

    box-shadow: none;
    text-shadow: none;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft:before {
    content: "\f15d";
}

.zocial.stackoverflow:before {
    color: inherit;
}

.bottom-options {
    display: flex;
    justify-content: space-between;
    line-height: 20px;
}

.reset-password-cancel-button {
    text-decoration: none;
    color: #4d5258 !important;
}


@media (min-width: 768px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {

    .login-pf body {
        background: white;
    }

    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
        position: absolute;
        right: 50%;
        bottom: calc(-100% - 20px);
        transform: translate(50%, 0);
        margin-right: 0;
        line-height: 1em;
    }

    div.kc-logo-text {
        margin: 0;
        width: 150px;
        height: 32px;
        background-size: 100%;
    }

    #kc-form {
        float: none;
    }

    #kc-social-providers li {
        display: block;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

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

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 20px 0 0 20px;
    }

}

@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

#kc-form-buttons {
    margin: 20px 0;
    width: 100%;
    display: grid;

}

.login-pf-page-page-header {
    background: url("../img/Qpercom-with-tagline.png") no-repeat fixed;
    background-size: contain;
    height: 100%;
}

.login-pf-page .login-pf-brand {
    margin-top: 20px;
    max-width: 360px;
    width: 40%;
}

@media (max-width: 576px) {
    .login-pf-page .card-pf {
        max-width: 95%;
    }

    .card-pf.login-pf-accounts {
        max-width: 95%;
    }
}

.login-pf-page .login-pf-signup {
    font-size: 15px;
    color: #72767b;
}

#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 768px) {
    .login-pf-page .login-pf-social-section:first-of-type {
        padding-right: 39px;
        border-right: 1px solid #d1d1d1;
        margin-right: -1px;
    }

    .login-pf-page .login-pf-social-section:last-of-type {
        padding-left: 40px;
    }

    .login-pf-page .login-pf-social-section .login-pf-social-link:last-of-type {
        margin-bottom: 0;
    }
}

.login-pf-page .login-pf-social-link {
    margin-bottom: 25px;
}

.login-pf-page .login-pf-social-link a {
    padding: 2px 0;
}

.login-pf-page.login-pf-page-accounts {
    margin-left: auto;
    margin-right: auto;
}

.login-pf-page .btn-primary {
    margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid #ededed;
}

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


#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type {
    margin-bottom: 0px;
    position: absolute;
    bottom: 0;
    justify-content: center;
    height: 70px;
    flex-direction: column;
    width: calc(100% - 50px);
}

.login-pf-settings >div {
    width: 100%;
}

#kc-back {
    margin-top: 5px;
}

form#kc-select-back-form div.login-pf-social-section {
    padding-left: 0px;
    border-left: 0px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    color: #fff;
    background: #307d3d;
}

.shadow {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    padding-top: 12px;
}

.copywrite {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

#privacy-terms {
    margin-right: auto;
    line-height: 0;
}

#privacy-terms a {
    color: #fff;
    vertical-align: text-bottom;
    line-height: 1;
    padding: 4px 0;
    font-size: 14px;
    text-decoration: underline;
}
#privacy-terms a:hover {
    text-decoration: underline;
}

.login-pf-page .login-pf-header {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

#kc-reset-password-form #kc-form-options {
    position: absolute;
    top: 164px;
}

#kc-info.login-pf-signup {
    margin-top: 0;
}
#kc-reset-password-form .control-label {
    margin-bottom: 5px;
}

@media (max-width: 440px) {
    #kc-reset-password-form #kc-form-options {
        top: 185px;
    }
}


#kc-register-form div.form-group:last-of-type {
    position: static;
}
.new-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
}
#kc-social-providers {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

#kc-form.row #kc-form-login {
    display: none;
}

#kc-form.row.show-form #kc-form-login {
    display: block;
}

#kc-form.row.show-form .basic-login {
    display: none;
}

.basic-login {
    display: block;
    margin-bottom: 15px;
    color: #307d3d;
    text-decoration: underline;
    border: none;
    background: none;
}

.basic-login:focus, .basic-login:hover {
    color: #266230;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container {
    position: relative;
    display: inline;
}

.tooltip-text {
    visibility: hidden;
    width: 256px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 0;
    margin-left: -120px;
    opacity: 0;
    transition: opacity 0.3s;
}
