@font-face {
    font-family: 'Archivo';
    font-style: normal;
    src: url('../../fonts/Archivo/Archivo-VariableFont_wdth,wght.ttf'); /* IE9 Compat Modes */
}

.msx {
    --scheme-msx-primary: #216487;
    --scheme-msx-primary-hover: #1a4f7a;
    --scheme-msx-surface: #F6FAFE;
    --scheme-msx-surface-container: #EBEEF3;
    --scheme-msx-outline: #C1C7CE;
    --scheme-msx-disabled: #EBEEF3;
    --scheme-msx-disabled-text: #909193;
    --scheme-msx-on-surface-text: #181C1F;
    --scheme-msx-on-primary-text: white;
    --scheme-msx-error-text: #D32F2F;
    --scheme-msx-on-surface-variant: #41484D;

    /* Icons in this section use the primary color and should be swapped on theme change */
    --icon-msx-eye: url("icons/eye.svg");
    --icon-msx-eyeslash: url("icons/eyeslash.svg");
    --icon-msx-close: url("icons/close.svg");
    --icon-msx-loader-primary: url("icons/loader_primary.svg");
    --icon-msx-organization: url("icons/organization.svg");


    --icon-msx-entraid: url("icons/entraid.svg");
    --icon-msx-entraid-primary: url("icons/entraid-primary.svg");
    --icon-msx-midp: url("icons/midp.png");
    --icon-msx-mslogo: url("icons/mslogo.svg");
    --icon-msx-error: url("icons/error.svg");
    --icon-msx-loader-white: url("icons/loader_white.svg");


    padding-left: 16px;
    padding-right: 16px;

    width: 100%;
    height: 100vh;
    padding-top: 8px;
    padding-bottom: 8px;
    background: var(--scheme-msx-surface);
    background-size: cover;
    color: var(--scheme-msx-on-surface-text);
    font-family: Archivo, "Roboto Thin", sans-serif;
    font-size: 16px;
}

.test-sso-mode .msx {
    /*make primary color different to indicate testing but same style*/
    --scheme-msx-primary: #cc2e2e;
    --scheme-msx-primary-hover: #ae2929;
    --icon-msx-eye: url("icons/eye_test.svg");
    --icon-msx-eyeslash: url("icons/eyeslash_test.svg");
    --icon-msx-close: url("icons/close_test.svg");
    --icon-msx-loader-primary: url("icons/loader_primary_test.svg");
    --icon-msx-organization: url("icons/organization_test.svg");

}

.msx-m-top-xsmall {
    margin-top: 8px !important;
}

.msx-m-top-small {
    margin-top: 16px !important;
}

.msx-m-top-medium {
    margin-top: 24px !important;
}

.msx-m-top-large {
    margin-top: 32px !important;
}

.msx.msx-primary {
    background: var(--scheme-msx-primary);
    color: var(--scheme-msx-on-primary-text);
}

.msx-header, .msx-content, .msx-footer {
    margin: auto;
    max-width: 400px;

    /*display: flex;*/
    /*flex-direction: column;*/
    /*gap: 8px;*/
}

.msx-header {
    /*margin-bottom: 16px;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    /*gap: 8px;*/
    user-select: none;
}

.msx-content {
    padding-top: 8px;
    padding-bottom: 8px;
}

.msx-footer {
    margin-top: 60px;
    text-align: center;
}

.msx-ms-logo {
    width: 96px;
    height: 96px;
    border-radius: 100%;
    background-color: white;
    background-image: var(--icon-msx-mslogo);
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
}

.msx .headline-small {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

.msx .headline-medium {
    font-size: 32px;
    line-height: 41px;
    font-weight: 600;
}

.msx .headline-login-small {
    padding:32px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

.msx .headline-login-medium {
    padding: 32px;
    font-size: 32px;
    line-height: 41px;
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.msx .text-regular {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.msx .code-inputs {
    width: 100%;
    /*max-width: 350px;*/
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.msx .code-digit-input {
    width: 48px;
    height: 56px;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid var(--scheme-msx-outline);
    caret-color: transparent;
    text-align: center;
    font-size: 1.5rem;
    outline:none;

}

.msx input:disabled {
    background: var(--scheme-msx-disabled);
}

.msx input.has-error {
    border: 2px solid var(--scheme-msx-error-text) !important;
}

.msx .input-error-description {
    font-size: 12px;
    line-height: 16px;
    padding-top: 8px;
    color: var(--scheme-msx-error-text);
    display: none;
}

.msx input.has-error ~ .input-error-description {
    display: block;
}
.msx input.has-error ~ .input-description {
    display: none;
}

.msx input.has-error ~ .input-error-button {
    display: block;
}

.msx .code-digit-input:focus {
    border: 2px solid var(--scheme-msx-primary)
}

.msx .button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msx button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 12px 24px 12px 24px;
    gap: 8px;
    border-radius: 100px;
    opacity: 1;
    border:none;
    line-height: 24px;
    font-size: 16px;
    font-weight: 600;
    user-select: none;
}

.msx button.text-button {
    background: transparent;
    color: var(--scheme-msx-primary);
}

.msx button.filled-button {
    background: var(--scheme-msx-primary);
    color: white;
}
.msx button.filled-button:hover {
    background: var(--scheme-msx-primary-hover);
}

.msx.msx-primary button.filled-button {
    background: white;
    color: var(--scheme-msx-primary);
}
.msx.msx-primary button.filled-button:hover {
    background: var(--scheme-msx-outline);
    color: var(--scheme-msx-primary);
}

.msx button.filled-button.loading {
    pointer-events: none;
}
.msx button.filled-button.loading .button-text {
    display: none;
}

.msx button.filled-button.loading:after {
    display: block;
    width: 24px;
    height: 24px;
    margin: auto;
    content: "";
    background-image: var(--icon-msx-loader-white);
    background-size: contain;
    background-repeat: no-repeat;
    /*// animate rotate background image*/
    animation: rotate 1s infinite linear;
}

.msx .filled-button:disabled {
    background: var(--scheme-msx-disabled);
    color: var(--scheme-msx-disabled-text);
}

.msx .outlined-button {
    background: transparent;
    color: var(--scheme-msx-primary);
    border: 1px solid var(--scheme-msx-outline);
}

.msx .back-button {
    width: 48px;
    height: 48px;
    line-height: 48px;
    display: block;
    cursor: pointer;
}

.msx .back-button svg {
    width: 24px;
    height: 24px;
}

.msx .ms-page-header {
    font-size: 24px;
    line-height: 48px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 16px;

}

.msx button.narrow {
    width: auto;
}

.msx-form__group {
    position: relative;
    margin-top: 16px;
}
.msx-form__group:first-child {
    margin-top: 0;
}
.msx-form__group.has-label {
    position: relative;
}
.msx-form__field {
    font-family: inherit;
    width: 100%;
    border: 2px solid var(--scheme-msx-outline);
    border-radius: 8px;
    outline: 0;
    font-size: 16px;
    color: #212121;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    padding-bottom: 8px;
    height: 56px;
}

.msx-form__field::placeholder {
    color: transparent;
}

.input-right-button {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    background-size: initial;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.input-right-button.input-clear-button{
    display: none;
    background-image: var(--icon-msx-close);
}

.input-right-button.input-error-button {
    display: none;
    background-image: var(--icon-msx-error);
}

.msx-form__field:not(.has-error):not(:placeholder-shown) ~ .input-clear-button {
    display: block;
}

.msx-form__field:placeholder-shown ~ .msx-form__label {
    font-size: 16px;
    cursor: text;
    top: 18px;
    /*color: var(--scheme-msx-outline);*/
    color: var(--scheme-msx-on-surface-variant);
}

.msx input[type="password"] ~ .toggle-show-password {
    display: block;
    background-image: var(--icon-msx-eye);
}
.msx input[type="text"] ~ .toggle-show-password {
    display: block;
    background-image: var(--icon-msx-eyeslash);
}

.msx-form__label, .msx-form__field:focus ~ .msx-form__label {
    position: absolute;
    display: block;
    top: 8px;
    left: 16px;
    transition: 0.2s;
    font-size: 12px;
    color: var(--scheme-msx-on-surface-text);

}

.msx-form__field:focus ~ .form__label {
    color: var(--scheme-msx-on-surface-text);
}

.msx-form__field:focus {
    padding-bottom: 6px;
    border: 2px solid var(--scheme-msx-primary);
}

.msx-page-description {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    /*margin-top: 8px;*/
    margin-bottom: 24px;
}

.input-description {
    font-size: 12px;
    line-height: 16px;
    padding-top: 8px;
}

.flex-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /*display: flex;*/
    /*flex-direction: column;*/
}

.msx-loader {
    width: 42px;
    height: 42px;
    margin: auto;
    content: "";
    background-image: var(--icon-msx-loader-white);
    background-size: contain;
    background-repeat: no-repeat;
    /*// animate rotate background image*/
    animation: rotate 1s infinite linear;
}

.msx-loader.primary {
    background-image: var(--icon-msx-loader-primary);
}

.msx .msx-org-box {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--scheme-msx-surface-container);
    display: flex;
    margin-bottom: 16px;
}

.msx .msx-org-box div, .msx .msx-org-box button{
    margin: auto;
}

.msx .msx-org-box .msx-org-icon {
    width: 24px;
    height: 24px;
    background-image: var(--icon-msx-organization);
    margin: auto;
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    flex: none;
    margin-right: 16px;
}

.msx .msx-org-box .msx-org-info {
    flex: auto;
}

.msx .msx-org-box .msx-org-label {
    color: var(--scheme-msx-on-surface-variant);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.msx .msx-org-box .msx-org-name {
    color: var(--scheme-msx-on-surface-text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.msx .msx-org-box .msx-org-change-button {
    min-height: 32px;
    height: 32px;
    width: 80px;
    line-height: 20px;
    font-size: 14px;
    padding: 4px 6px;
}

.button-icon {
    width: 24px;
    height: 24px;
    padding-left: 28px;
    background-size: initial;
    background-repeat: no-repeat;
    background-position: left;
}

.sso-button .button-icon[idptype="MIDP"] {
    background-image: var(--icon-msx-midp);
}
.sso-button:not(.filled-button) .button-icon[idptype="ENTRA_ID"] {
    background-image: var(--icon-msx-entraid);
}
.sso-button .button-icon[idptype="ENTRA_ID"] {
    background-image: var(--icon-msx-entraid-primary);
}

.msx-having-issues-box {
    padding: 16px;
    font-size: 12px;
    border-radius: 12px;
    background: var(--scheme-msx-surface-container);
    right: 0;
    width: 200px;
    left: 0;
    margin: auto;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.msx a {
    color: var(--scheme-msx-primary);
    text-decoration: none;
}

.msx .link-button {
    color: var(--scheme-msx-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    padding-top: 16px;
    padding-bottom: 16px;
    user-select: none;
}

.msx-toggle-testmode-button {
    padding: 16px;
    font-size: 12px;
    border-radius: 12px;
    right: 0;
    width: 200px;
    left: 0;
    margin: auto;
    text-align: center;
    position: absolute;
    bottom: 20px;
    user-select: none;
    cursor: pointer;
}

.msx-toggle-testmode-button.enter {
    color: var(--scheme-msx-outline);
}

.msx-toggle-testmode-button.exit {
    color: #cc2e2e;
    font-weight: bold;
    text-transform: uppercase;
}

.msx-dialog {

}

.msx-dialog {
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    z-index:10;
}
.msx.msx-dialog {
    background: none;
}
.msx-dialog.closed {
    display: none;
}

.msx-dialog.open {
    display: block;

}
.msx-dialog .msx-dialog-foreground {
    z-index: 11;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: var(--scheme-msx-surface);
    border-radius: 20px;
    transition: 0.5s;
    position: fixed;
    opacity: 0;
    margin:auto;
    width: 300px;
    height: 400px;
}
.msx-dialog.msx-dialog--full .msx-dialog-foreground {
    width: 90%;
    height: 90%;
}
.msx-dialog.open .msx-dialog-foreground {
    opacity: 1;
}
.msx-dialog .msx-dialog-background{
    z-index:10;
    width:100vw;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    background: black;
    opacity: 0;
    transition: 0.5s;
    cursor: pointer;
}

.msx-dialog-content {
    width: 100%;
    padding: 20px;

}

.msx-dialog-footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 20px;
}

.msx-dialog.open .msx-dialog-background {
    opacity: 0.25;
}