/* color css variables */
:root {
    --grey-30: #FAFAFC;
    --grey-50: #F6F7F9;
    --grey-70: #EDEFF2;
    --grey-100: #E5E7EA;
    --grey-200: #CDD2D7;
    --grey-300: #9DA5AE;
    --grey-400: #7E8791;
    --grey-500: #656E78;
    --grey-700: #48525B;
    --grey-750: #404B54;
    --grey-800: #353F48;
    --grey-900: #212931;
    --accent: #DD3608;
    --accent-dark: #CC2C00;
    --accent-light: #FA4616;
    --accent-bg: #FEE8E2;
    --accent-shadow: rgba(221, 54, 8, 0.3);
    --white: #FFFFFF;
    --warning-bg: #FFEAA8;
    --warning-text: #AD4000;
    --error-bg: #FFD6E0;
    --error-text: #990033;
}

/* fonts */
@font-face {
    font-family: DMSans-Italic-VariableFont;
    src: url('/fonts/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: DMSans-VariableFont;
    src: url('/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
}

/* Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DMSans-VariableFont' !important;
    font-feature-settings: 'ss03' 1;
}

body, html {
    height: 100%;
    /*font-family: 'DMSans-VariableFont' !important;
    font-feature-settings: 'ss03' 1;*/
    font-size: 15px;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    background-color: #fff;
}

.main-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px;
}

.header img.logo {
    max-height: 50px;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 16px;
    max-width: 420px;
}

.splash-panel {
    background-image: url('/images/login-splash-1.jpg');
    background-size: cover;
    background-position: center;
    display: none;
}

@media (min-width: 1152px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }

    .splash-panel {
        display: block;
    }
}

@media (max-width: 522px) {
    .main-panel {
        width: 100%;
    }

    .header,
    .content {
        padding: 16px;
    }

    .footer {
        display: none;
    }
}


/* Typography */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--grey-900);
    line-height: 36px;
    text-transform: uppercase;
}

.body-small {
    font-size: 13px;
    font-weight: 400;
    color: var(--grey-700);
    line-height: 15px;
    letter-spacing: 0.221px;
}

.body-medium {
    font-size: 15px;
    font-weight: 500;
    color: var(--grey-900);
    line-height: normal;
}

.label-medium {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: var(--grey-900);
}
.label-medium a {
    color: var(--grey-900);
    font-weight: bold;
}

.label-button {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.28px;
    text-transform: uppercase;
}

.label-button-small {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.24px;
    text-transform: uppercase;
    color: var(--grey-500);
}

.label-italic-semibold {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
    color: var(--grey-300);
}

/* Form */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
    align-self: stretch;
}

.button-group {
    display: flex;
    padding: 24px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
}

label,.form-label {
    display: flex;
    padding-bottom: 6px;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: var(--grey-400);
}

input[type="text"],
input[type="email"],
input[type="password"],
.form-input {
    display: flex;
    padding: 10.5px 12px;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 2px;
    border: 1px solid var(--grey-200);
    background: var(--grey-30);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: var(--grey-900);
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
.form-input::placeholder {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
    color: var(--grey-300);
}

input:focus {
    box-shadow: 0 0 0 .05rem var(--grey-700);
    border-color: var(--grey-500);
}

input:focus-visible {
    outline: none;
}

input[type="checkbox"] {
    display: flex;
    width: 22px;
    height: 22px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 2px;
    border: 1px solid var(--grey-100);
    background: var(--grey-50);
    accent-color: var(--grey-50);
    cursor: pointer;
}
input[type="checkbox"]:checked {
    background: var(--grey-700);
    accent-color: var(--grey-700);
}
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.checkbox-container label {
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: var(--grey-900);
    padding: 0;
    padding-left: 8px;
    cursor: pointer;
}

button {
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    padding: 9px 28px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.28px;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    transition: color .2s ease-in-out, background-color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
button:focus, button:focus-visible {
    outline-color: transparent;
    outline-style: solid;
    outline-width: thin;
}

a.button {
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    padding: 9px 28px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px; /* 142.857% */
    letter-spacing: 0.28px;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    transition: color .2s ease-in-out, background-color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
a.button:focus, a.button:focus-visible {
    outline-color: transparent;
    outline-style: solid;
    outline-width: thin;
}

.button-primary, a.button-primary {
    background: var(--accent);
    color: var(--white);
}

.button-primary:focus-visible, a.button-primary:focus-visible {
    box-shadow: 0 0 0 .25rem var(--accent-shadow);
}

.button-primary:active, a.button-primary:active,
.button-primary:hover, a.button-primary:hover {
    background: var(--accent-dark);
}

.button-disabled.button-primary:active, a.button-disabled.button-primary:active,
.button-disabled.button-primary:hover, a.button-disabled.button-primary:hover {
    background: var(--accent);
}

.button-secondary, a.button-secondary {
    background: var(--grey-700);
    color: var(--white);
}

.button-secondary:focus-visible, a.button-secondary:focus-visible {
    box-shadow: 0 0 0 .25rem var(--grey-300);
}

.button-secondary:active, a.button-secondary:active,
.button-secondary:hover, a.button-secondary:hover {
    background: var(--grey-900);
}

.button-disabled.button-secondary:active, a.button-disabled.button-secondary:active,
.button-disabled.button-secondary:hover, a.button-disabled.button-secondary:hover {
    background: var(--grey-700);
}

.button-outline, a.button-outline {
    border: 1px solid var(--grey-400);
    background: var(--white);
    color: var(--grey-900);
    outline-color: transparent;
    outline-style: solid;
    outline-width: thin;
}

.button-outline:focus-visible, a.button-outline:focus-visible {
    box-shadow: 0 0 0 .25rem var(--grey-200);
}

.button-outline:active, a.button-outline:active,
.button-outline:hover, a.button-outline:hover {
    border-width: 1px;
    outline-color: var(--grey-800);
    outline-offset: 0;
}

.button-disabled.button-outline:active, a.button-disabled.button-outline:active,
.button-disabled.button-outline:hover, a.button-disabled.button-outline:hover {
    outline-color: transparent;
    outline-style: solid;
    outline-width: thin;
}

a.button-disabled {
    cursor: default;
}

.button-ghost, a.button-ghost {
    height: 38px;
    padding: 9px 16px;
    gap: 2px;
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0.24px;
    color: var(--grey-500);
    background: none;
    border: none;
}

.button-ghost-md, a.button-ghost-md {
    height: 42px;
    padding: 9px 16px;
    gap: 2px;
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0.24px;
    color: var(--grey-500);
    background: none;
    border: none;
}

.button-ghost:active, a.button-ghost:active,
.button-ghost:hover, a.button-ghost:hover,
.button-ghost-md:active, a.button-ghost-md:active,
.button-ghost-md:hover, a.button-ghost-md:hover {
    color: var(--grey-800);
}

.alert {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    margin: 24px 0;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding-left: 50px;
    width: 100%;
}
.alert::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/icons/warning.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.alert.text-warning::before {
    background-image: url('/icons/warning.svg');
}
.alert.text-warning {    
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.alert.no-image {
    padding-left: 16px;
}
.alert.no-image::before {
    background-image: none;
}

.alert.text-error::before {
    background-image: url('/icons/close-outline.svg');
}
.alert.text-error {
    background-color: var(--error-bg);
    color: var(--error-text);
}

.alert .validation-summary li {
    list-style: none;
}

/* icons */
.svg-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
.svg-icon.login-icon {
    background-image: url('/icons/login.svg');
}
.svg-icon.arrow-back-icon {
    background-image: url('/icons/arrow_back.svg');
}
.svg-icon.retry-icon {
    background-image: url('/icons/retry.svg');
}

/* custom elements */

.content-wrapper .content form,
.login-form {
    width: 100%;
}

.heading-group {
    display: flex;
    padding: 32px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}
.heading-group.sign-in {
    padding: 48px 0px;
}
.signin-checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.text-justify {
    text-align: justify;
}

.mt-negative-20 {
    margin-top: -20px;
}

/* pages */
.logged-out-page iframe {
    display: none;
    width: 0;
    height: 0;
}

.login-external-providers {
    display: flex;
    padding: 12px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
}

/* disable password reveal control */
.password-toggle-view-group input::-ms-reveal {
    display: none;
}
.password-toggle-view-group {
    position: relative;
}
.password-toggle-view-group input {
    padding-right: 35px;
}
.password-toggle-view-group i.far {
    cursor: pointer;
    position: absolute;
    display: inline-block;
    right: 10px;
    top: 12px;
    color: gray;
}

/* 2FA */
#manualCodeDiv {
    display: none;
}

.google-auth-app-setup {    
    margin-top: -24px;
}

.google-qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}

.google-otp-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    word-break: break-all;
    padding: 24px 0;
}

.toggle-google-qrcode {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* LoggedOut */
iframe.signout {
    border: none;
}
