.pf-v5-c-login__container {
    grid-template-areas: "main";
    grid-template-columns: 34rem;
}

#kc-header-wrapper {
    padding: 62px 10px 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Styles from first login */
@font-face {
    font-family: "NHaasGrotesk";
    src: url("../fonts/NHaasGroteskDSPro-55Rg/font.woff2") format("woff2"),
    url("../fonts/NHaasGroteskDSPro-55Rg/font.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "NHaasGrotesk";
    src: url("../fonts/NHaasGroteskDSPro-65Md/font.woff2") format("woff2"),
    url("../fonts/NHaasGroteskDSPro-65Md/font.woff") format("woff");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "NHaasGrotesk";
    src: url("../fonts/NHaasGroteskDSPro-75Bd/font.woff2") format("woff2"),
    url("../fonts/NHaasGroteskDSPro-75Bd/font.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

.login-form-main-wrap button {
    border: 0;
    background: transparent;
    margin: 0;
}

body.CONFIGURE_TOTP {
    font-size: 16px;
}

.form-header>p {
    line-height: 28px;
}

input.pf-v5-c-form-control{
    height: 40px;
    padding: 6px 12px;
    width: 100%;
}

.CONFIGURE_TOTP .login-form-main-wrap form label {
    font-size: 16px;
}

.pf-v5-c-button {
    font-size: 16px;
    line-height: 1.25rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: baseline;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 6px;
    min-height: 40px;
    outline: none;
    cursor: pointer;
    transition: all .15s linear;
    border: 0;
    background-image: none;
    @media (max-width: 768px) {
        min-width: 80px;
    }
}

.pf-m-primary {
    background-color: #ef7700;
    border-color: #ef7700;
    color: #fff;
    box-shadow: unset;
}

.pf-v5-c-button.pf-m-primary:hover {
    color: #fff;
    background: #f08214;
    border-color: #f08214;
}

.pf-m-primary:focus-visible,
.pf-m-primary:focus {
    outline: 2px solid #4768ef;
    background-color: #f08214;
    outline-offset: -1px;
}

.pf-m-primary:active {
    background-color: #f1871f;
    border-color: #f1871f;
    color: #fff;
}

.pf-m-primary[disabled] {
    color: #fff;
    background-color: #fce4cc;
    border-color: #fce4cc;
    pointer-events: none;
    opacity: 1;
}

button.pf-v5-c-button:not(.pf-m-primary) {
    color: #4768ef;
    border: #4768EF solid 1px;
    --pf-v5-c-button--after--BorderColor: transparent;
}

button.pf-v5-c-button:not(.pf-m-primary):hover {
    background: #edf0fd;
}

.login-form-main-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 80px 10px;
}

.welcome {
    max-width: 680px;
    margin: 150px auto 0;
}

.login-form-main-wrap .form-header,
.welcome .form-header, .instruction, #kc-delete-text {
    text-align: center;
    color: #6E789A;
    font: 400 18px/32px "NHaasGrotesk";
    margin-bottom: 24px;
}

#kc-otp-login-form .pf-v5-c-button{
    margin-top: 14px;
}

.kt-main-message {
    color: #EF7700;
    font: 500 18px/32px "NHaasGrotesk";
    text-align: center;
}

h1 {
    color: #202541;
    font: 700 32px/40px "NHaasGrotesk";
    margin: 0 0 8px;
    text-align: center;
}

.login-form-main-wrap .form-footer,
.welcome .form-footer {
    margin-top: 24px;
    color: #34373B;
    text-align: center;
    font: 400 14px/32px "NHaasGrotesk";
}

.login-form-main-wrap .form-footer .encryption,
.welcome .form-footer .encryption {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.login-form-main-wrap .support {
    color: #6E789A;
}

.login-form-main-wrap form {
    border-radius: 8px;
    border: 1px solid #DAE1FC;
    background: #FFF;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.16);
    padding: 32px;

}

.delete_credential form{
    display: flex;
    column-gap: 10px;
    justify-content: center;
}

.login-form-main-wrap.login-form-main-wrap form .input-group input[disabled] {
    background: #F9FAFE;
}

.login-form-main-wrap form label {
    color: #6E779A;
    font: 400 14px/18px "NHaasGrotesk";
    margin-bottom: 8px;
}

.login-form-main-wrap form .password-help {
    border-radius: 8px;
    border: 1px solid #DAE1FC;
    background: #FFF;
    box-shadow: 0 4px 3px 0 rgba(0, 0, 0, 0.07), 0 2px 2px 0 rgba(0, 0, 0, 0.06);
    display: none;
    padding: 8px;
    color: #202741;
    font: 400 14px/20px "NHaasGrotesk";
    width: 266px;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 18px;

    ul {
        list-style: disc;
    }
}

.login-form-main-wrap form .password-help ul {
    padding: 0 0 0 12px;
    margin-bottom: 0;
}

.login-form-main-wrap form .password-help ul li {
    margin-top: 8px;
}

.login-form-main-wrap form .info-icon {
    cursor: pointer;
}

.psw-suggestion-holder .info-icon:hover + .password-help {
    display: block;
}

.login-form-main-wrap form .eye-icon,
.login-form-main-wrap form .lock-icon {
    position: absolute;
    right: 8px;
    top: 38px;
    z-index: 3;
    cursor: pointer;
}

.open-eye {
    background-image: url('../img/open_eye.svg');
}

.close-eye {
    background-image: url('../img/close_eye.svg');
}

.open-eye, .close-eye {
    width: 18px;
    height: 16px;
    background-repeat: no-repeat;
}

.login-form-main-wrap .confim-psw,
.login-form-main-wrap .confirm-parent {
    position: relative;
}

.login-form-main-wrap .confim-psw .eye-icon,
.login-form-main-wrap .confirm-parent .eye-icon,
.login-form-main-wrap .psw-suggestion-holder .eye-icon {
    top: 36px;
}

.login-form-main-wrap .psw-suggestion-holder {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.login-form-main-wrap form .input-group {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.login-form-main-wrap .form-group {
    margin-bottom: 0;
}

.login-form-main-wrap .confim-psw {
    margin-bottom: 24px;
}

.pf-v5-c-form-control {
    border-radius: 8px !important;
    border: 1px solid #DAE1FC;
    background: #fff;
}

input:focus {
    box-shadow: none;
    border: 1px solid #4768EF;
    color: #262626;
}

.btn-holder {
    display: flex;
    justify-content: flex-end;
    margin: 8px -32px 0;
    padding: 31px 32px 0;
    border-top: 1px solid #DAE1FC;

    @media (max-width: 768px) {
        margin: 8px 0 0;
    }
}
#kc-update-profile-form #kc-form-buttons {
    display: flex;
    justify-content: flex-end;
    margin: 8px -32px 0;
    padding: 31px 32px 0;
    border-top: 1px solid #DAE1FC;

    @media (max-width: 768px) {
        margin: 8px 0 0;
    }
}


#kc-update-profile-form #kc-form-buttons {
    border-top: none;
    margin-right: 0;
    margin-left: 10px;
}

#kc-update-profile-form input {
    margin-bottom: 20px;
}

.welcome {
    text-align: center;
}

.password-indicator {
    border-radius: 8px;
    height: 8px;
    width: 100%;
    margin-bottom: 45px;
    margin-top: -8px;
}

.indicator {
    border-radius: 8px;
    height: 8px;
    margin-bottom: 8px;
}

.status,
.no-match-message {
    font: 400 12px/18px "NHaasGrotesk";
    margin-bottom: 24px;
    display: block;
}

.password-indicator .stage-1 {
    width: 112px;
    background: linear-gradient(90deg, #F23041 0%, #EF7700 72.40%);
}

.stage-1 + .status {
    color: #F44958;
}

.password-indicator .stage-2 {
    width: 208px;
    background: linear-gradient(90deg, #EF7700 0%, #EFC900 100%);
}

.stage-2 + .status {
    color: #F79700;
}

.password-indicator .stage-3 {
    width: 288px;
    background: linear-gradient(90deg, #EFC900 0.01%, #B1EF00 93.23%);
}

.stage-3 + .status {
    color: #F79700;
}

.password-indicator .stage-4 {
    width: 416px;
    background: linear-gradient(90deg, #B1EF00 0%, #5FBD5D 100%);
}

.stage-4 + .status {
    color: #2BC04F;
}

#top-menu .navbar-nav li:first-of-type:before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml; utf-8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 125" x="0px" y="0px" fill="%23fff"><g><path d="M50,5.5A44.5,44.5,0,1,0,94.5,50,44.5,44.5,0,0,0,50,5.5Zm2.955,70.651a6.127,6.127,0,0,1-4.314,1.657,6.061,6.061,0,0,1-4.3-1.657,5.375,5.375,0,0,1-.018-7.961,5.993,5.993,0,0,1,4.244-1.642,6.269,6.269,0,0,1,4.366,1.642,5.175,5.175,0,0,1,1.808,3.972A5.247,5.247,0,0,1,52.955,76.151ZM65.09,43.669a15.288,15.288,0,0,1-2.1,3.84,30.01,30.01,0,0,1-4.034,3.874,27.677,27.677,0,0,0-3.822,3.66,9.441,9.441,0,0,0-1.3,2.84,21.417,21.417,0,0,0-.666,4.924H43.66l-.035-1.477a18.3,18.3,0,0,1,1.718-7.994,20.011,20.011,0,0,1,5.576-6.746,28.067,28.067,0,0,0,4.491-4.2,4.71,4.71,0,0,0,.771-2.691A4.375,4.375,0,0,0,54.3,36.136a7.977,7.977,0,0,0-5.033-1.462,7.83,7.83,0,0,0-5.3,1.78,5.878,5.878,0,0,0-2.1,4.588h-9.19A13.093,13.093,0,0,1,37.311,30.6q4.7-4.128,12.381-4.127a18.955,18.955,0,0,1,8.419,1.707A13.715,13.715,0,0,1,63.67,33.1a12.236,12.236,0,0,1,2.087,6.762A11.28,11.28,0,0,1,65.09,43.669Z"/></g></svg>');
    background-repeat: no-repeat;
    position: absolute;
    top: 19px;
    left: -4px;
}

#top-menu-beacon-search .top-menu-search .icon-top-menu-search {
    display: none;
}

#top-menu-beacon-search {
    width: 15px;
    height: 50px;
}

.password-suggestions,
.password-strength,
div.password-confirm {
    visibility: hidden !important;
    display: none !important;
}

.no-match-message, #input-error-otp-code {
    color: #F44958;
    margin-top: 10px;
}

/* :::::::::::::::::::REWARD STAGE:::::::::::::::::::::: */
.region-content .reward-banner .container {
    margin-top: -21px;
}

.reward-banner {
    display: block;
    width: 100vw;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    left: 50%;
    right: 50%;
    position: relative;
    box-shadow: 0 4px 3px 0 rgba(0, 0, 0, .07), 0 2px 2px 0 rgba(0, 0, 0, .06);
    padding-left: 0;
}

.reward-banner .container {
    padding-top: 24px;
    padding-bottom: 24px;
    text-align: center;
}

.reward-item-holder {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.reward-item {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #404040;
    position: relative;
    display: inline-flex;
}

.reward-item-icon-holder {
    color: #B7BED8;
    width: 17px;
    height: 18px;
}

.reward-item-icon-holder.current {
    color: #4768EF;
}

.reward-item-icon-holder.current + .title {
    color: #202741;
}

.reward-item-icon-holder.completed {
    color: #2BC04F;
}

.reward-banner .stage {
    width: 89px;
    height: 1px;
    background-color: #B7BED8;
    display: inline-block;
    position: relative;
    margin: 0 8px;
}

.reward-item .title {
    color: #8f93a3;
    margin-left: 8px;
}


@media screen and (max-width: 768px) {
    .reward-item-holder {
        display: block;
    }

    .reward-item {
        display: flex;
        justify-content: center;
    }

    .reward-banner .stage:after {
        display: none;
    }

    .reward-banner .stage {
        margin: 16px 0;
    }

    .reward-banner .stage {
        height: 10px;
        width: 1px;
        margin: 8px 0;
    }
}

.main-header img {
    height: 26px;
}

.main-footer .kt-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 4;
}

.navbar-inverse {
    background-color: #222;
    border-color: #080808
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff;
}

/*
* Styles to make the footer responsive
*/
.kt-navigation nav {
    display: grid;
    grid-template-areas:
        "copyright links";
    grid-template-columns: 1fr auto;

    @media (max-width: 768px) {
        grid-template-areas:
                "links links"
                "copyright toggle"
    }
}

.navbar-nav {
    grid-area: links;
    display: none;
    @media (min-width: 768px) {
        display: flex;
    }
}

.navbar-toggle {
    grid-area: toggle;
}

.navbar-text {
    grid-area: copyright;
}

.navbar-nav.show {
    display: flex;
    flex-direction: column;
}

/* End of responsive footer styles */

.kt-global-message span {
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 40px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.kt-error {
    color: #F44958;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
}

.login-form-main-wrap .input-group .kt-field-error {
    color: #F44958;

    input {
        border: solid 1px #F44958;
    }
}

.kt-success {
    color: #2BC04F;
    background-color: #dff0d8;
    border: 1px solid #8dcd8d;
}

.kt-warning {
    background-color: #fcf8e3;
    border: 1px solid #fde975;
    color: #e59400;
}

.kt-info {
    background-color: #d9edf7;
    border: 1px solid #a1c5e5;
    color: #3276b1;
}

.pf-v5-c-login__main-body {
    display: flex;
    flex-direction: column;
}

#kc-logout-confirm {
    text-align: center;
}


#kc-username {
    order: 1;
    margin-top: 10px;
    text-align: center;

    label {
        font-weight: 400;
    }
}

.CONFIGURE_TOTP {
    .kt-dropdown {
        display: none;
    }
    .pf-v5-c-login__container.login-form-main-wrap {
        max-width: 900px;
    }

    .pf-v5-c-login {
        background-color: #333;
    }

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

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

    #kc-page-title {
        text-align: left;
        font-size: 24px;
    }

    .pf-v5-c-login__main {
        border-radius: 8px;
        border: 1px solid #DAE1FC;
        background: #FFF;
        box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.16);
        padding: 32px;
        width: 100%;
    }

    #kc-totp-settings ul {
        margin-bottom: 2rem;
    }

    #kc-totp-settings-form {
        display: flex;
        flex-wrap: wrap;
        border: none;
        box-shadow: none;
        padding: 16px 0;
    }

    #kc-totp-settings-form .pf-v5-c-form__group {
        width: 50%;
    }

    #kc-totp-settings-form .pf-v5-c-form__group:nth-child(3) {
        width: 100%;
    }

    #saveTOTPBtn {
        margin-right: 1rem;
        margin-left: 20px;
    }

    #copyOfCancelTOTPBtn {
        cursor: pointer;
        position: relative;
        font-size: 20px;
        @media (max-width: 768px) {
            right: 20px;
        }
    }

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

}

.UPDATE_PROFILE .pf-v5-c-login__main-body>.col-md-10 {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.frontchannel-logout {
    .form-footer {
        display: none;
    }
}

.kt-display-none {
    display: none;
}

.keycloak__loading-container {
    text-align: center;
    margin-bottom: 14px;
}

#kc-page-title .kt-oauth-logo {
    display: block;
    max-width: 56px;
    max-height: 56px;
    margin: 0 auto 16px;
}

#kc-oauth-grant-form .kt-oauth-scopes {
    list-style: none;
    margin: 0;
    padding: 0;
}

#kc-oauth-grant-form .kt-oauth-scopes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: #202541;
    font: 400 16px/24px "NHaasGrotesk";
}

#kc-oauth-grant-form .kt-oauth-scope-icon {
    flex: 0 0 20px;
    margin-top: 2px;
    line-height: 0;
}

#kc-oauth-grant-form .kt-oauth-origin,
#kc-oauth-grant-form .kt-oauth-legal {
    margin: 16px 0 0;
    color: #6E789A;
    font: 400 14px/20px "NHaasGrotesk";
}

#kc-oauth-grant-form .kt-oauth-legal a {
    color: #4768EF;
}

#kc-oauth-grant-form .kt-oauth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 24px -32px 0;
    padding: 24px 32px 0;
    border-top: 1px solid #DAE1FC;

    @media (max-width: 768px) {
        margin: 24px 0 0;
        padding: 24px 0 0;
    }
}

#kc-oauth-grant-form #kc-login {
    width: 100%;
}

#kc-oauth-grant-form .kt-oauth-cancel {
    padding: 9px 16px;
    border-radius: 6px;
    color: #4768EF;
    font: 700 16px/20px "NHaasGrotesk";
    cursor: pointer;
    transition: all .15s linear;
}

#kc-oauth-grant-form .kt-oauth-cancel:hover {
    background: #EDF0FD;
}

#kc-oauth-grant-form .kt-oauth-cancel:focus-visible {
    outline: 2px solid #4768EF;
    outline-offset: 2px;
}

/* Recovery codes setup. Upstream styles this page in login.css, which our styles.css replaces. */
.CONFIGURE_RECOVERY_AUTHN_CODES {
    .pf-v5-c-login__main {
        border-radius: 8px;
        border: 1px solid #DAE1FC;
        background: #FFF;
        box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.16);
        padding: 32px;
        width: 100%;
    }

    #kc-page-title {
        text-align: left;
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 24px;
    }

    .kc-recovery-codes-warning {
        margin-bottom: 24px;
        padding: 16px;
        background: #fcf8e3;
        border: 1px solid #fde975;
        border-radius: 8px;
        box-shadow: none;
        font-family: "NHaasGrotesk";
    }

    .kc-recovery-codes-warning .pf-c-alert__icon {
        color: #e59400;
    }

    .kc-recovery-codes-warning .pf-c-alert__title {
        color: #202541;
        font: 700 16px/22px "NHaasGrotesk";
    }

    .kc-recovery-codes-warning .pf-c-alert__description p {
        margin: 4px 0 0;
        color: #202541;
        font: 400 14px/20px "NHaasGrotesk";
    }

    /* The list numbers come from the <span> - copy, print and download read it too. */
    .kc-recovery-codes-list {
        list-style: none;
        columns: 2;
        column-gap: 24px;
        margin: 0 0 16px;
        padding: 16px 16px 8px;
        border: 1px solid #DAE1FC;
        border-radius: 8px;
        background: #F9FAFE;
    }

    .kc-recovery-codes-list li {
        margin-bottom: 8px;
        break-inside: avoid;
        color: #202541;
        font: 500 14px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        white-space: nowrap;
    }

    .kc-recovery-codes-list li span {
        display: inline-block;
        min-width: 3ch;
        margin-right: 4px;
        text-align: right;
        color: #6E789A;
        font-weight: 400;
    }

    .kc-recovery-codes-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 24px;
        margin-bottom: 24px;
    }

    .kc-recovery-codes-actions button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        color: #4768EF;
        font: 500 16px/24px "NHaasGrotesk";
    }

    .kc-recovery-codes-actions button:hover {
        text-decoration: underline;
    }

    .kc-recovery-codes-actions button i {
        margin: 0;
    }

    .kc-recovery-codes-confirmation {
        float: none;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 0;
        margin-bottom: 24px;
    }

    .kc-recovery-codes-confirmation input {
        flex: none;
        margin: 3px 0 0;
    }

    .kc-recovery-codes-confirmation label {
        margin: 0;
        color: #202541;
        font: 500 16px/22px "NHaasGrotesk";
        cursor: pointer;
    }

    #kc-recovery-codes-settings-form {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin: 0;
        padding: 24px 0 0;
        border: none;
        border-top: 1px solid #DAE1FC;
        border-radius: 0;
        box-shadow: none;
    }

    #kc-recovery-codes-settings-form #kc-form-options {
        float: none;
        width: 100%;
        padding: 0;
    }

    #kc-recovery-codes-settings-form #kc-form-options .checkbox {
        margin: 0;
    }

    /* The two long button labels never fit side by side in this card. */
    #saveRecoveryAuthnCodesBtn,
    #cancelRecoveryAuthnCodesBtn {
        width: 100%;
    }

    @media (max-width: 480px) {
        .kc-recovery-codes-list {
            columns: 1;
        }
    }
}
