@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

@font-face {
    font-family: "EDF 2020";
    src: url("../fonts/EDF2020W01-Regular.woff2") format("woff2"),
    url("../fonts/EDF2020W01-Regular.woff") format("woff"),
    url("../fonts/EDF2020W01-Bold.woff") format("woff");
}
* {
    font-family: 'EDF 2020', serif;
}

.kc-header {
    display: flex;
    flex-direction: column;
    margin-right: 68px;
    margin-left: 120px;
    width: 424px;
}

.page-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: hidden;
}

.side-background-container {
    width: 50%;
    background-color: #F3F5FA;
}

.side-content-container {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.side-content-container__img {
    background: url("../img/background.png") no-repeat center center;
    position: absolute;
    left: -817px;
    width: 937px;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.login-otp-page .form-container,
.login-totp-setup-page .form-container {
    width: 300px;
}

div.error.alert-wrapper ~ div.form-container > input {
    outline: none;
    border: solid 2px #FFCDBD;
    color: #151A2B;
}

div.error.alert-wrapper ~ div.form-container > label {
    color: #991B00;
}

.form-label {
    font-size: 14px;
    line-height: 18px;
    color: #151A2B;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #90A4AE;
    border-radius: 5px;
    color: #151A2B;
    padding: 8px;
}

.form-input:focus-visible {
    outline: none;
    border: solid 2px #005BFF;
}

.form-input:-webkit-autofill {
    color: #151A2B;
    background: #FFFFFF;
}

.login-otp-page .form-input[aria-invalid="true"],
.login-totp-setup-page .form-input[aria-invalid="true"] {
    border: solid 2px #991B00;
}

.input-error-message {
    display: block;
    margin-top: 4px;
    min-height: 16px;
    line-height: 16px;
    font-size: 12px;
    color: #991B00;
}

.form-label-error {
    color: #991B00;
}

.login-otp-page #kc-username {
    display: none;
}

.totp-login-message {
    padding-bottom: 16px;
}

.totp-identity {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.totp-identity-label {
    font-size: 13px;
    color: #415660;
}

.totp-identity-value {
    font-weight: 700;
    color: #151A2B;
}

.totp-page-title {
    font-family: 'EDF 2020', serif;
    font-size: 32px;
    color: #151A2B;
    margin: 24px 0 0;
}

#kc-page-title {
    font-family: 'EDF 2020', serif;
    font-size: 32px;
    color: #151A2B;
    margin-top: 32px;
    margin-bottom: 0;
}

.button {
    padding: 10px 20px;
    background: #005BFF;
    border-radius: 80px;
    border-style: none;
    font-family: 'EDF 2020', serif;
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: #1057C8;
}

.button:active {
    background: #001A70;
}

.button:disabled {
    background: #d6deee;
    color: #415660;
}

.forget-password-link {
    display: flex;
    justify-content: right;
}

.footer {
    margin-top: 32px;
    margin-bottom: 16px;
}

.footer .link {
    text-decoration: none;
}

.link {
    color: #005BFF;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
    border: none;
    background: none!important;
    cursor: pointer;
}

.bold {
    font-weight: 700;
}

.border-right {
    border-right: 1px solid #E0E6F1;
    padding-right: 5px;
}

.link-back {
    margin-bottom: 32px;
    align-self: start;
}

#kc-content {}

.kc-form-buttons {
    display: flex;
    justify-content: right;
    margin-top: 24px;
}

#kc-form-options {
    margin-top: 16px;
}

#kc-form-options label.form-label {
    cursor: pointer;
}

.body-container {
    flex: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.body-template-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 400px;
}

.login-otp-page .body-template-container,
.login-totp-setup-page .body-template-container {
    max-width: 472px;
}

.logo {
    max-width: 250px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.alert-wrapper {
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    display: flex;
    margin-top: 16px;
}

.alert-content-side-text {
    padding-left: 10px;
    align-self: center;
    display: inline;
}

.alert-content-img {
    display: flex;
    justify-content: center;
    vertical-align: center;
}

.error {
    background-color: #FFCDBD;
}

.error img {
    background: url("../icons/Danger.svg") no-repeat center center / contain;
    padding: 22px;
}

.info {
    background-color: #B7DCFF;
}

.info img {
    background: url("../icons/Info.svg") no-repeat center center / contain;
    padding: 22px;
}

.success {
    background-color: #ECF7B7;
}

.success img {
    background: url("../icons/Check-Circle.svg") no-repeat center center / contain;
    padding: 22px;
}

.warning {
    background-color: #B7DCFF;
}

.warning img {
    background: url("../icons/Info.svg") no-repeat center center / contain;
    padding: 22px;
}

#temporaryMessage {
    font-weight: normal;
}

.instruction {
    padding-bottom: 16px;
    text-align: center;
}

.login-otp-page .link,
.login-totp-setup-page .link {
    font-weight: bold;
    text-decoration: unset;
}

.totp-steps {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 12px;
    position: relative;
}

.totp-steps::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 12px;
    transform: translateX(-50%);
    width: 2px;
    background: #E0E6F1;
}

.totp-step-index {
    grid-column: 1;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #005BFF;
    color: #005BFF;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.totp-step-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap:10px;
    padding-bottom: 24px;
}


.totp-step-content > p {
    margin: unset;
}

.totp-step-title {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: #151A2B;
    margin: 0 0 4px;
}

.totp-step-subtitle {
    color: #415660;
    font-size: 13px;
}

.totp-toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.totp-manual-toggle {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 12px;
}

.totp-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
}

#kc-totp-secret-qr-code {
    max-width: 160px;
    display: block;
}

.totp-secret-key {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0px;
}

.totp-secret-key #kc-totp-secret-key {
    font-family: monospace;
    word-break: break-all;
}

.totp-secret-key a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.password-field-input{
    display: flex;
    position: relative;
}

.password-reveal {
    position: absolute;
    color: #005BFF;
    right: 8px;
    top: 50%;
    translate: 0 -50%;
    font-size: 20px !important;
}

@media (max-width: 1000px) OR (max-device-width: 1000px) {
    .side-content-container__img {
        background: url("../img/mini_background.png") no-repeat center center;
        left: -690px;
    }
}

@media (max-width:950px) OR (max-device-width: 950px) {
    .totp-manual-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .body-container {
        width: 100%;
    }

    .body-template-container,
    .login-otp-page .body-template-container,
    .login-totp-setup-page .body-template-container {
        max-width: 90%;
    }

    .totp-step-title,
    .totp-step-subtitle,
    .totp-manual-toggle,
    .totp-identity-label {
        font-size: 16px;
        line-height: 20px;
    }

    .side-background-container {
        display: none;
    }

    .side-content-container__img {
        display: none;
    }

    .side-content-container {
        width: 100%;
    }

    #kc-page-title {
        font-size: 24px;
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: center;
    }

    .kc-header {
        width: 100%;
        margin: 0;
    }

    .kc-header-wrapper{
        margin: 20px auto;
    }

    .kc-logo-text {
        display: flex;
        justify-content: center;
    }

    .kc-form-buttons {
        margin: 40px 0;
        justify-content: center;
    }

    .button {
        width: 100%;
        padding: 15px 0;
        font-size: 18px;
    }

    .button-reset-wrapper {
        width: 100%;
        text-align: center;
    }

    .button-reset {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 18px;
    }

    .form-container {
        margin: 20px 0;
    }

    .form-label {
        font-size: 16px;
        line-height: 32px;
    }

    .form-input {
        font-size: 18px;
        height: 38px;
    }

    .forget-password-link {
        justify-content: left;
        margin: 20px 0;
    }

    .link {
        font-size: 16px;
    }

    .link-back {
        margin-bottom: 40px;
    }

    .alert-wrapper {
        font-size: 18px;
    }


    #rememberMe {
        width: 14px;
        height: 14px;
    }

    #kc-form-options {
        align-self: center;
    }

    .instruction {
        font-size: 28px;
    }

    .password-reveal {
        right: 15px;
        top: 50%;
        font-size: 20px;
    }
}
