:root {
    --rf-font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --rf-font-family-semibold: "Inter SemiBold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --rf-color-primary: #001E89;
    --rf-color-primary-hover: #2A66FF;
    --rf-color-secondary-hover: #EDF4FF;
    --rf-color-disabled: #DCDDE2;
    --rf-color-text: #20202C;
    --rf-color-gray: #767676;
    --rf-color-background: #F6F7FA;
    --rf-color-divider: #EEF0F6;
    --rf-border-radius: 4px;
    --rf-font-size-small: 10px;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../style/fonts/Open_Sans/OpenSans-Regular.ttf') format('truetype'),
    url('../style/fonts/Open_Sans/OpenSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open SansBold';
    src: url('../style/fonts/Open_Sans/OpenSans-Bold.ttf') format('truetype'),
    url('../style/fonts/Open_Sans/OpenSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Open SansSemiBold';
    src: url('../style/fonts/Open_Sans/OpenSans-SemiBold.ttf') format('truetype'),
    url('../style/fonts/Open_Sans/OpenSans-SemiBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Open SansLight';
    src: url('../style/fonts/Open_Sans/OpenSans-Light.ttf') format('truetype'),
    url('../style/fonts/Open_Sans/OpenSans-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open SansItalic';
    src: url('../style/fonts/Open_Sans/OpenSans-Italic.ttf') format('truetype'),
    url('../style/fonts/Open_Sans/OpenSans-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Open SansBoldItalic';
    src: url('../style/fonts/Open_Sans/OpenSans-BoldItalic.ttf') format('truetype'),
    url('../style/fonts/Open_Sans/OpenSans-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

/* INTER */
@font-face {
    font-family: 'Inter';
    src: url('../style/fonts/inter/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter Bold';
    src: url('../style/fonts/inter/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inter SemiBold';
    src: url('../style/fonts/inter/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Inter Light';
    src: url('../style/fonts/inter/Inter-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Inter Thin';
    src: url('../style/fonts/inter/Inter-Thin.ttf') format('truetype');
    font-style: normal;
}

/*
    We use Material Icon Round for all browsers but IE11. This is due to the fact that Google no longer provides
    alternatives to the woff2 format, which is not supported by IE11. As a fallback we use an older version of the
    regular material icons.
 */
@font-face {
    font-family: 'Material Icons Round';
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons Round'),
    url('../style/fonts/MaterialIcons/Material-Icons-Complete-Rounded.woff2') format('woff2'),
    url('../style/fonts/MaterialIcons/MaterialIcons-Regular.woff') format('woff');
}

@font-face {
    font-family: 'FontAwesome';
    src: url('../style/fonts/FontAwesome/fontawesome-webfont.eot?#iefix&v=4.6.3') format('embedded-opentype'),
    url('../style/fonts/FontAwesome/fontawesome-webfont.woff?v=4.6.3') format('woff'),
    url('../style/fonts/FontAwesome/fontawesome-webfont.ttf?v=4.6.3') format('truetype'),
    url('../style/fonts/FontAwesome/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

:focus, input:focus, button:focus, a:focus {
    outline: 2px solid var(--rf-color-primary);
    outline-offset: 4px;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-google:before {
    content: "\f1a0";
}

.material-icons, .custom-checkbox:before {
    font-family: 'Material Icons Round', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px; /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

.login-background-clean {
    background-image: none;
    background-color: #20202C;
}

.material-icons--inline-text {
    font-size: 13px;
}

.nowrap {
    white-space: nowrap;
}

body {
    margin: 0;
    background-color: var(--rf-color-background);
}

body, input, select {
    font-family: var(--rf-font-family), sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: var(--rf-color-text);
}

a {
    cursor: pointer;
}

h1, h2, h3, h4 {
    font-family: "Inter SemiBold", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
    font-size: 26px;
}

h1.login {
    font-size: 15px;
}

h2 {
    font-size: 18px;
}

form {
    margin-top: 24px;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mt-05 {
    margin-top: 4px;
}

.ml-05, .rf-button.ml-05 {
    margin-left: 4px;
}


.pt-1 {
    padding-top: 8px;
}

.pt-2 {
    padding-top: 16px;
}

.bluelink {
    color: var(--rf-color-primary);
    cursor: pointer;
    text-decoration: underline;
}

.body-link {
    text-decoration: underline;
    font-size: 13px;
    color: var(--rf-color-text);
}

.body-link.gray {
    color: var(--rf-color-gray);
}

.center {
    text-align: center;
}

.rf-link-discreet, .rf-link-discreet:hover, .rf-link-discreet:active {
    color: var(--rf-color-gray);
    text-decoration: none;
}

.rf-wrapper {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    align-items: stretch;
    box-sizing: border-box;
    padding: 24px;
    gap: 24px;
    min-width: 350px;
}

.rf-login-wrapper {
    flex: 0 0 500px;
    min-width: 350px;
    min-height: 720px;
    display: flex;
    align-items: center;
}

.rf-login-box {
    width: 100%;
    height: 100%;
    background: white linear-gradient(201.31deg, #FFFFFF 16.14%, rgba(255, 255, 255, 0.5) 85.59%);
    border-radius: 12px;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.rf-login {
    margin: 130px 100px 0 100px;
    flex: 1;
}

.rf-login-footer {
    padding: 24px;
    text-align: left;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0;
}

.rf-login-footer a,
.rf-login-footer a.body-link.gray {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    color: #01004C;
}

.rf-bodylogo {
    display: block;
}

.rf-bodylogo-link {
    display: block;
    margin-bottom: 64px;
}

.rf-bodylogo img {
    max-width: 100%;
    height: auto;
}

.rf-login-input::placeholder {
    color: var(--rf-color-gray);
}

.rf-login-input {
    padding: 8px 8px;
    border: solid 1px var(--rf-color-gray);
    border-radius: 4px;
    height: auto;
    width: 100%;
    margin-bottom: 8px;
    font-size: 13px;
    outline: none;
    transition: border linear .2s;
}

.rf-login-input.disabled {
    background-color: #f5f5f5;
    border-color: #cccccc;
    color: #555555;
}

.rf-login-input.no-margin {
    margin-bottom: 0;
}

.rf-login__button-wrap {
    display: flex;
    gap: 16px;
    width: 100%;
}

.rf-login__button-wrap .rf-button,
.rf-login__button-wrap .rf-button-secondary {
    flex: 1;
}

.rf-login-email-text {
    padding-top: 10px;
    margin-bottom: 0;
    overflow-x: scroll;
    white-space: nowrap;
}

.rf-marketing-wrapper {
    flex: 1;
    min-height: max(720px, calc(100vh - 48px));
    display: none;
    align-items: stretch;
}

.rf-marketing-box {
    width: 100%;
    height: 100%;
    padding: 24px;
    background: white linear-gradient(201.31deg, #FFFFFF 16.14%, rgba(255, 255, 255, 0.5) 85.59%);
    border-radius: 12px;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: stretch;
    overflow: hidden;
}

.rf-marketing {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.rf-marketing img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.rf-marketing-panel {
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    border: 1px solid #fff;
    box-sizing: border-box;
}

.rf-marketing :hover {
    cursor: pointer;
}

/* Hide inline footer on desktop - use .rf-login-footer instead */
.rf-inline-footer {
    display: none;
}

/* Mobile/Tablet: remove box styling to match normal mode (below 1250px) */
@media (max-width: 1249px) {
    .rf-wrapper {
        padding: 0;
        background-color: white;
        min-width: 350px;
    }

    .rf-login-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        overflow-y: auto;
    }

    .rf-login-box {
        background: white;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        height: 100%;
        display: flex;
        overflow-y: auto;
    }

    .rf-login {
        width: 350px;
        min-height: 536px;
        max-width: 100%;
        margin: auto;
        background-color: white;
    }

    .rf-login-footer {
        display: none;
    }

    /* Show inline footer on mobile */
    .rf-inline-footer {
        display: block;
    }
}

@media (min-width: 1250px) {
    .rf-marketing-wrapper {
        display: flex;
    }
}

.rf-sso__button-wrap {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
}

.rf-sso__button-wrap .rf-button,
.rf-sso__button-wrap .rf-button-secondary {
    flex: 1;
}

.rf-wide {
    width: 100%;
}

.capitalize, .rf-button.capitalize, .rf-button-secondary.capitalize {
    text-transform: capitalize;
}

.rf-button,
.rf-button-secondary {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    cursor: pointer;
    padding: 8px 32px;
    margin: 0;
    font-size: 15px;
    outline: none;
    text-decoration: none;
    border-radius: 4px;
    text-transform: capitalize;
    white-space: nowrap;
    text-align: center;
}

.rf-button {
    background-color: var(--rf-color-primary);
    color: white;
    border: 1px solid transparent;
}

.rf-button:hover:not(:disabled) {
    background-color: var(--rf-color-primary-hover);
}

.rf-button:disabled {
    background-color: var(--rf-color-disabled);
    color: white;
    opacity: 1;
}

.rf-button-secondary {
    background-color: #FFF;
    color: var(--rf-color-primary);
    border: 1px solid #5F76C8;
}

.rf-button-secondary:hover,
.rf-button-secondary:focus {
    background-color: var(--rf-color-secondary-hover);
}

.rf-button-sso,
.rf-button-google {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    text-transform: none;
}

.rf-button-sso__icon,
.rf-button-google__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.rf-button-sso__icon {
    font-size: 18px;
}

.rf-button.full-width {
    width: 100%;
}

.rf-link {
    color: var(--rf-color-primary);
    text-decoration: none;
}

.rf-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
    width: 100%;
}

#select-account-page ~ .rf-divider {
    margin: 16px 0;
}

#select-account-page h1.login {
    margin-bottom: 4px;
}

#linked-account-page .rf-main-wrapper {
    max-height: 480px;
    overflow-y: auto;
}

.rf-divider::before,
.rf-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #EEF0F6;
}

.rf-divider-label {
    color: #001E89;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 150%;
}

.rf-forgot-wrap {
    text-align: center;
}

.rf-text {
    padding-top: 24px;
    color: var(--rf-color-gray);
}

.lh-150 {
    line-height: 150%;
}

.message {
    padding: 8px;
    border: 1px solid #CC0000;
    margin-bottom: 16px;
}

.message, .info-message {
    margin-top: 28px;
    border-radius: 1px;
    transition: all .3s ease-in-out;
    text-align: center;
}

.message-error, .info-message.error {
    color: #CE0B22;
    background-color: #FCD9DF;
    border: none;
    border-radius: 4px;
}

.message-success, .info-message.success {
    background-color: #D6F5E4;
    border: none;
    border-radius: 4px;
    color: #20202C;
}

.message-success a, .info-message.success a {
    color: var(--rf-color-primary);
    text-decoration: underline;
}

.mfa-code {
    font-size: 26px;
    text-align: center;
    padding: 16px 16px;
    border: solid 1px #cccccc;
    border-radius: 4px;
    height: auto;
    width: 100%;
    transition: border linear .2s;
    margin-bottom: 16px;
}

.mfa-code::placeholder {
    color: var(--rf-color-gray);
}

.rf-login-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.rf-login-actions .rf-button,
.rf-login-actions .rf-button-secondary {
    flex: 1;
}

#mfaForm .rf-login-actions {
    flex-direction: column;
    gap: 8px;
}

#mfaForm {
    margin: 0;
}

.mfa-setup-wrap {
    text-align: center;
    background: #f7f7f7;
    padding: 12px;
}

.mfa-setup-wrap img {
    max-width: 150px;
    height: auto;
}

.mfa-setup-code {
    font-size: 14px;
    margin-bottom: 4px;
    padding-bottom: 4px;
}

/* MFA page action links styling (electric only) */
.mfa-action-link {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    color: var(--rf-color-text);
}

.mfa-verification-text {
    margin-bottom: 4px;
}

.rf-login p {
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

.bar {
    width: 0;
    transition: 2s;
}

.progress, .bar {
    height: 18px;
}

.progress {
    position: static;
    margin: 0 0 40px 0;
    width: 100%;
    background-color: #f7f7f7;
    border-radius: 4px;
    overflow: hidden;
}

.progress-danger .bar,
.progress .bar-danger {
    background-color: #dd514c;
    background-image: linear-gradient(to bottom, #ee5f5b, #c43c35);
    background-repeat: repeat-x;
}

.progress-warning .bar,
.progress .bar-warning {
    background-color: #faa732;
    background-image: linear-gradient(to bottom, #fbb450, #f89406);
    background-repeat: repeat-x;
}

.progress-success .bar,
.progress .bar-success {
    background-color: #5eb95e;
    background-image: linear-gradient(to bottom, #62c462, #57a957);
    background-repeat: repeat-x;
}

.checkbox-wrapper {
    margin-bottom: 16px;
    display: flex;
    position: relative;
}

.rf-checkbox {
    opacity: 0;
}

.rf-checkbox, .custom-checkbox {
    cursor: pointer;
}

.custom-checkbox:before {
    font-size: 16px;
    color: var(--rf-color-gray);
    position: absolute;
    left: 0;
    content: "check_box_outline_blank";
}

.rf-checkbox:checked + .custom-checkbox:before {
    content: 'check_box';
}

.checkbox-wrapper label {
    margin-left: 8px;
}

.checkbox-wrapper .rf-link {
    margin-left: 3px;
}

.info-message {
    opacity: 0;
    font-size: 13px;
}

.message.in, .info-message.in {
    opacity: 1;
    margin-bottom: 16px;
    padding: 8px;
}

.info-message.in {
    border-width: 1px;
    border-style: solid;
}

.suggestion-text {
    font-size: 13px;
    color: var(--rf-color-gray);
}

.ul-scratchCodes {
    padding-inline-start: 0;
    text-align: -webkit-center;
}

.scratchCodes {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.3;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    padding: 10px;
    display: grid;
    width: fit-content;
}