p {
    font-size: 14px !important;
    line-height: 1.4;
}
.nirv #header {
    background:#536bb2 !important;
    line-height: 12px;
    border-bottom: none !important;
}

/* Sign In link shown in the header on Privacy / Terms / FAQ / Contact Us. */
#header .header-signin-link {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    margin: 9px 16px 0 0;
    padding: 0 14px;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}
#header .header-signin-link:hover,
#header .header-signin-link:focus {
    color: #ffffff95;
    text-decoration: none;
}
#header .header-signin-link .ico {
    font-size: 20px;
}
.lp_container {
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: #edf2f9;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}
/* fixed-header pulls #header out of flow; offset so the landing page isn't under it */
.fixed-header .lp_container {
    margin-top: 50px;
}

/*
  Landing pages: use the browser scrollbar for long text.
  Header, art, footer links + copyright stay put (position: fixed);
  only the document scrolls (driven by .landing-panel height).
*/
html:has(.lp_container--landing),
body:has(.lp_container--landing) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}
body:has(.lp_container--landing) #header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1099;
}
.lp_container--landing {
    height: auto;
    min-height: calc(100vh - 50px);
    overflow: visible !important;
    margin-top: 50px; /* under fixed header */
    /* room for fixed links + copyright so content isn't covered */
    padding-bottom: 88px;
    box-sizing: border-box;
}
.fixed-header .lp_container--landing {
    margin-top: 50px; /* same offset; avoid double if both apply */
}
.lp_container--landing .lp_columns {
    align-items: flex-start;
    min-height: calc(100vh - 50px - 88px);
    overflow: visible !important;
}
/* Short pages (Contact Us): keep the text column vertically centered */
.lp_container--landing.lp_container--vcenter .lp-col-2 {
    min-height: calc(100vh - 50px - 88px);
    justify-content: center;
}
/* Keep col-1 in the flex flow as a width spacer; pin the art itself */
.lp_container--landing .lp-col-1 {
    position: relative;
    align-self: flex-start;
    overflow: visible !important;
}
.lp_container--landing .lp-col-1 .lp-art {
    position: fixed;
    top: 50px; /* below fixed header */
    bottom: 88px; /* above fixed footer */
    /* Align with left column of the centered 1400px grid */
    left: max(0px, calc(50% - 700px));
    width: min(650px, 100vw);
    height: fit-content;
    max-height: calc(100vh - 50px - 88px);
    margin-block: auto; /* vertically center in the header↔footer band */
    z-index: 2;
    padding: 0 8px;
    box-sizing: border-box;
    overflow: auto;
}
.lp_container--landing .lp-col-2,
.lp_container--landing .landing-wrapper,
.lp_container--landing .landing-panel {
    overflow: visible !important;
}
.lp_container--landing .landing-content {
    max-height: none;
    overflow: visible !important;
    padding-right: 0;
}
.lp_container--landing .landing-content .label {
    background-color: #536bb2;
}
.lp_container--landing > .links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 36px;
    background: #edf2f9;
    padding: 12px 20px;
    z-index: 100;
}
.lp_container--landing > .copyright-text {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 8px 20px 10px;
    background: #edf2f9;
    z-index: 100;
}
.lp_columns {
    --lp-col-max: 650px;
    --lp-gap-max: 100px;
    --lp-stack-at: 1280px;
    max-width: calc(var(--lp-col-max) * 2 + var(--lp-gap-max)); /* 1400px */
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    /* Outer margins go first (max-width 1400 centered). Then gap 100→0 from 1400px down to 1280px. */
    gap: clamp(0px, calc((100vw - var(--lp-stack-at)) * 100 / 120), var(--lp-gap-max));
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.lp_columns > .lp-col-1,
.lp_columns > .lp-col-2 {
    flex: 1 1 var(--lp-col-max);
    width: var(--lp-col-max);
    max-width: var(--lp-col-max);
    margin: 0;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 0 16px;
}

.lp_columns > .lp-col-1 {
    z-index: 2;
}

.lp_columns > .lp-col-2 {
    z-index: 1;
}

/* Column that holds logo + illustration */
.lp-art {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.lp-art .client-logo {
    flex: 0 0 auto;
    width: 220px;
    height: auto;
    max-height: 120px;
    margin: 0 0 4px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}
.lp-art .client-logo img {
    max-width: 100% !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.lp-art .image-wrapper {
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 650px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.lp-art .image {
    z-index: 0;
    width: 100%;
    max-width: 580px;
    height: auto;
    max-height: min(480px, calc(100vh - 340px));
    object-fit: contain;
    color: #e9f4fc;
    display: block;
    margin-left: 30px;
}

.lp-art .lp-tagline {
    flex: 0 0 auto;
    width: 100%;
    max-width: 610px;
    margin: 45px auto 0;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
}
.lp-art .lp-tagline-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #2a5dc4;
    margin: 0 0 8px;
}
.lp-art .lp-tagline-body {
    font-size: 16px;
    line-height: 1.5;
    color: #333
    margin: 0;
}

.login-wrapper,
.landing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
}
.login-wrapper {
    width: 450px;
}

.login-panel,
.landing-panel {
    width: 100%;
    max-width: 650px;
    color: #333
    box-sizing: border-box;
    padding: 30px;
    position: relative;
    z-index: 2;
}
.lp_container:not(.lp_container--landing) .login-panel,
.lp_container:not(.lp_container--landing) .landing-panel {
    background-color: #FFF;
    box-shadow: 0px 0px 70px 0px #777;
    max-width: 550px;
}
.login-panel .panel-title,
.landing-panel .panel-title {
    display: block;
    font-size: 32px;
    line-height: 32px;
    color: #2a5dc4;
    margin-bottom: 24px;
}

.login-panel .panel-title::before {
    margin-right: 10px;
    font-size: 32px;
}

.login-panel,
.landing-panel {
    width: 100%;
    max-width: 650px;
    padding: 24px 28px;
}
.landing-content {
    line-height: 1.5;
    font-size: 14px;
    color: #333
}
.landing-content h1,
.landing-content h2,
.landing-content h3,
.landing-content h4 {
    color: #2a5dc4;
    margin-top: 18px;
}
.landing-content h2 { font-size: 22px; }
.landing-content h3 { font-size: 18px; }
.landing-content h4 { font-size: 16px; font-weight: 700; }
.landing-content p { margin: 0 0 10px; }
.landing-content a { color: #2a5dc4; }

.login-panel .login-information {
    margin: 30px 0!important;
    display: block;
    height: auto !important;
    padding: 0px !important;
    line-height: 1.5;
    border: none !important;
    font-weight: normal;
    font-size: 14px;
    color: #333
    box-shadow: none !important;
}
.login-panel .login-label {
    font-size: 12px;
    width: 70px;
    float: left;
    clear: both;
    line-height: 20px;
}
.login-panel .input-wrapper {
    position: relative;
}
.login-panel .input-wrapper .icon {
    position: absolute;
    left: 15px;
    margin: 14px 0;
    font-size: 15px;
    color: #555;
}
.login-panel input {
    width: calc(100% - 55px);
    font-size: 14px;
    border: none;
    background-color: #edf2f9;
    box-shadow: none;
    padding: 12px 15px 12px 40px;
}
.login-panel input:focus {
    background-color: white;    
}
.login-panel input:focus {
    background-color: #edf2f9;
    border-color: #c5ccd299;
    outline: 0;
    outline: thin dotted \9;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px #c5ccd299;
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px #c5ccd299;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px #c5ccd299;
}
.login-panel input::placeholder {
    font-size: 14px;
}
.login-panel input[name=password]:placeholder-shown {
    font-size: 14px;
}
.login-panel input[name=password] {
    font-size: 20px;
}
.login-panel .login-buttons {
    clear: both;
    padding: 10px 0px 0px 0px;
}
.login-panel .login-buttons .login-buttons-left {
    display: inline-block;
}
.login-panel .twofa-message {
    text-align: center;
}
.login-panel .login-buttons .login-buttons-left a {
    font-size: 14px;
    line-height: 1.5;
    color: #2a5dc4;
}
.login-panel .login-buttons .forgot-pwd-btn {
    font-size: 14px;
    line-height: 30px;
    color: #2a5dc4;
}
.login-panel .login-buttons .login-btn {
    font-size: 14px !important;
    background: #2a5dc4 !important;
    box-sizing: border-box;
    color: #fff!important;
    float: right;
    min-width: 90px;
    height: 34px;
}
.login-panel .login-buttons .forgot-back-btn {
    font-size: 14px !important;
    box-sizing: border-box;
    min-width: 130px;
    height: 34px;
}
.login-panel .external-auth .login-btn {
    font-size: 14px !important;
    background: #990033 !important;
    border-color: #990033 !important;
    box-sizing: border-box;
    color: #fff!important;
    width: 100%;
    height: 34px;
}
.login-panel .login-buttons .verify-code-btn {
    font-size: 14px !important;
    box-sizing: border-box;
    float: right;
    min-width: 160px;
    height: 34px;
    margin-top: 4px;
}
.login-panel .external-auth .login-btn .fa:before {
    color: #fff;
}

.login-panel .login-buttons .login-btn .text,
.login-panel .login-buttons .forgot-back-btn .text,
.login-panel .external-auth .login-btn .text {
    font-size: 14px !important;
}
.login-panel .external-auth {
    text-align: center;
}
.login-panel .external-auth div:first-child {
    margin: 15px;
    font-size: 14px;
}

.lp_container > .links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    flex: 0 0 auto;
    padding: 20px 20px 5px;
    box-sizing: border-box;
    z-index: 100;
}

.lp_container > .links a {
    font-size: 14px;
    color: #2a5dc4;
    margin: 0 15px;
    white-space: nowrap;
}

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

.lp_container .icons-top {
    top: 50px;
}
.lp_container .icons-bottom {
    bottom: 0;
}
.lp_container .icons {
    position: absolute;
    color: #b8c1d6;
    width: 100vw;
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-content: center;
    flex-wrap: wrap;
}

.lp-art .login-btn {
    width: 100px;
    position: absolute;
    top: -30px;
    left: calc(50% - 60px);
    transition: top cubic-bezier(0, 0, 0.26, 1.14) 0.5s;
    z-index: 100;
}

.lp-art .login-btn.show {
    top: 20px;
    transition: top cubic-bezier(0, 0, 0.26, 1.14) 0.5s;
}

.iframe-wrapper {
    display: none;
    background-color: #fff;
}

.iframe-wrapper.terms,
.iframe-wrapper.faq,
.iframe-wrapper.privacy,
.iframe-wrapper.contact {
    display: initial;
    padding: 0;
}

.iframe-wrapper.terms + .login-wrapper,
.iframe-wrapper.faq + .login-wrapper,
.iframe-wrapper.privacy + .login-wrapper,
.iframe-wrapper.contact + .login-wrapper {
    display: none;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    display: none;
    border: none;
}

.iframe-wrapper.terms .terms,
.iframe-wrapper.faq .faq,
.iframe-wrapper.privacy .privacy,
.iframe-wrapper.contact .contact {
    display: initial;
    padding: 0;
}

/* Stack: logo above forms/text; art image gone */
@media (max-width: 1280px) {
    .lp_columns {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 0 24px;
        max-width: 650px;
    }
    .lp_columns > .lp-col-1,
    .lp_columns > .lp-col-2 {
        flex: 0 0 auto;
        align-self: center;
        width: 100%;
        max-width: 650px;
        height: auto;
        padding: 0;
    }
    /* Login: art is in col-2 — pull it above the form */
    .lp_container:not(.lp_container--landing) .lp-col-2 {
        order: 1;
        padding: 16px 0 0;
    }
    .lp_container:not(.lp_container--landing) .lp-col-1 {
        order: 2;
        padding: 0 0 20px;
    }
    /* Landing: art is already in col-1 — keep natural order */
    .lp_container--landing .lp-col-1 {
        order: 1;
        padding: 16px 0 0;
    }
    .lp_container--landing .lp-col-2 {
        order: 2;
        padding: 0 0 20px;
    }
    .lp_container--landing.lp_container--vcenter .lp-col-2 {
        min-height: 0;
        justify-content: flex-start;
    }
    /* Stacked landing: don't pin art; let logo sit in normal flow above the text */
    .lp_container--landing .lp-col-1 .lp-art {
        position: static;
        left: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        max-height: none;
        margin-block: 0;
        padding: 0;
        overflow: visible;
    }
    .lp-art {
        height: auto;
        gap: 0;
        padding: 0;
        display: none;
    }
    .lp_container > .links a {
        margin: 0 10px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .lp_container {
        height: auto;
        min-height: calc(100vh - 50px);
        overflow: visible;
    }
    .lp_columns {
        padding: 0 16px;
        gap: 8px;
    }
    .lp_container:not(.lp_container--landing) .lp-col-1,
    .lp_container--landing .lp-col-2 {
        padding: 8px 0 20px;
    }
    .lp_container:not(.lp_container--landing) .lp-col-2,
    .lp_container--landing .lp-col-1 {
        padding: 16px 0 8px;
    }
    .lp-art .client-logo {
        width: 200px;
        height: auto;
        max-height: 84px;
    }
    .lp-art .client-logo img {
        max-height: 84px !important;
    }
    .login-panel,
    .lp_container:not(.lp_container--landing) .login-panel,
    .login-panel.landing-panel {
        width: 100%;
        max-width: 420px;
        padding: 24px;
    }
    .lp_container > .links {
        flex-wrap: wrap;
        padding: 8px 12px 20px;
    }
    .lp_container > .links a {
        margin: 6px 10px;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 20px 16px;
    }
    .login-panel .panel-title {
        font-size: 26px;
    }
    .login-panel .panel-title::before {
        font-size: 26px;
    }
    .lp-art .client-logo {
        width: 180px;
        height: auto;
        max-height: 64px;
    }
    .lp-art .client-logo img {
        max-height: 64px !important;
    }
}
