body {
    --app-background: #021D3F;
    --app-background-color: #021D3F;
    --primary-text-color: #ffffff;
    --secondary-text-color: #A9CDD4;
    --inverse-text-color: #1D2433;
    --primary-background-color: #123456;
    --secondary-background-color: #234768;
    --tertiary-background-color: #0F2E4D;
    --background-highlight-color: #597BA0;
    --background-highlight-color-bright: #A4B1BE;
    --shadow-color: rgba(255, 255, 255, 0.5);
    --primary-button-background: #ffffff;
    --secondary-button-background: #2A5073;
    --placeholder-color: var(--background-highlight-color);

    --app-background-color-red: #622211;
    --secondary-text-color-red: #D4A9CD;
    --inverse-text-color-red: #331D24;
    --primary-background-color-red: #561234;
    --secondary-background-color-red: #682347;
    --tertiary-background-color-red: #4D0F2E;
    --background-highlight-color-red: #A0597B;
    --background-highlight-color-bright-red: #BEA4B1;
    --secondary-button-background-red: #732A50;

    --control-width: 440px;
}

html {
    font-size: 18px;
    margin-top: 0px;
}

body {
    font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--primary-text-color);
    background-color: var(--app-background);
    overflow: auto;
    margin: 0;
    width: 100%;
    height: 100%;
}

.login-box-container {
    background: transparent url(/images/mzone-x-background.jpg) center / cover no-repeat;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: auto;
}

.login-box {
    /* from mzone-ui .shadow-panel */
    background: var(--primary-background-color);
    box-shadow: 0 0 8px var(--shadow-color);
    border-radius: 16px;
    padding: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    padding: 3rem 0rem 0rem;
}

/* .login-header .logo {
 
} */

.login-header .logo:after {
    content: url(/images/mzone-x-logo.svg);
}

.form-fields {
    margin: 2rem 3rem;
}

.form-fields,
.external-providers {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: stretch;
}

.input-label {
    margin-top: 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
}

input {
    &::placeholder {
        color: var(--placeholder-color);
    }
}

input[type=text],
input[type=password] {
    font-size: 1rem;
    color: var(--primary-text-color);
    background: var(--secondary-background-color);
    border: 2px solid transparent;
    border-radius: 23px;
    line-height: 46px;
    height: 46px;
    width: var(--control-width);
    padding: 0 0 0 16px;
    outline: none;
}

/* A hack to prevent browser autofill styling https://stackoverflow.com/a/59572885 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-transition-delay: 99999s;
}

.login-remember {
    margin-top: 1rem;
}

label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    color: var(--primary-text-color);
    display: inline-flex;
    align-items: center;
    cursor: pointer;

    input {
        margin-right: 8px;
    }
}

input[type="checkbox"] {
    position: relative;
    appearance: none;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    cursor: pointer;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        width: 18px;
        height: 18px;
        border: solid 2px var(--primary-text-color);
        border-radius: 3px;
    }

    &:checked::before {
        background: var(--primary-text-color);
    }

    &:checked::after {
        content: "";
        position: absolute;
        left: 3px;
        top: 5px;
        width: 12px;
        height: 9px;
        mask-image: url("data:image/svg+xml;utf8,<svg width='12' height='9' viewBox='0 0 12 9' xmlns='http://www.w3.org/2000/svg'><path d='M3.81353 7.10067L0.968732 4.30201L0 5.24832L3.81353 9L12 0.946309L11.0381 0L3.81353 7.10067Z' /></svg>");
        background: var(--primary-background-color);
    }

    &:disabled {
        background: transparent;
        opacity: 0.5;
    }
}

.external-providers {
    margin-top: 2rem;
}

.btn-login-mz,
.external-providers .btn {
    margin-top: 0.5rem;
    padding: 0;
    width: var(--control-width);
    height: 46px;
    font-size: 1rem;
    vertical-align: middle;
    line-height: 46px;
    border-radius: 12px;
    border: none;
}

.btn-login-mz {
    color: var(--inverse-text-color);
    background-color: var(--primary-button-background);
}

.external-providers .btn {
    color: var(--primary-text-color);
    background-color: var(--secondary-button-background);
}

.idsvr-mz-validation-container {
    position: inherit;
    width: var(--control-width);
    padding: 0;
}

.alert-danger {
    --alert-text-color: #CB8B92;
    --alert-background-color: #7F1320;

    color: var(--alert-text-color);
    background-color: var(--alert-background-color);
    border: none;

    font-size: 1rem;
}

.alert {
    padding: 20px;
    border-radius: 16px;
    margin: 0;
}

.alert ul {
    padding-inline-start: 1rem;
}

.alert li {
    padding-top: 0.25rem;
}

.password-input-container {
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
}

.password-input-eye {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;

    path {
        fill: var(--primary-text-color);
    }

    &:hover {
        path {
            fill: var(--secondary-text-color);
        }
    }
}