.login-panel {
    /*text-align: center;
    width: 350px;*/
    min-height: 435px;
    padding: 15px 20px !important;
    margin: 0px 0% 0 0 !important;
    color: #757575;
    box-shadow: none !important;
    float: right;
    font-size: 14px;
    height: 100%;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    text-align: left !important;
}

.login-panel .ui-g .ui-g-12 {
    padding: 10px !important;
}

.nfr_login_sec .login-panel .ui-g .ui-g-12 .ui-button {
    background-color: #2589d0 !important;
    position: relative;
    transition: 0.5s;
    font-size: 15px;
    text-transform: capitalize;
    width: 300px !important;
    padding-left: 20px;
    margin-bottom: 0;
    background-image: url(../resources/images/loginbtn.png) !important;
}

.nfr_login_sec .login-panel .ui-g .ui-g-12 .ui-button:hover {
    background-color: #03A9F4 !important;
    background-image: url(../resources/images/loginbtnhover.png) !important;
}


.login-footer {
    position: absolute;
    bottom: 10px;
    font-size: 16px;
    width: 100%;
    text-align: center;
    color: #757575;
}

@media (max-width: 1024px) {
    .login-panel {
        text-align: center;
        min-height: 440px;
        margin: 100px auto 0 auto;
        width: 300px !important;
    }

    .nfr_login_sec {
        background-size: calc(100% - 300px) 100%;
        background-position: left center;
    }
}

@media (max-width: 640px) {
    .login-panel {
        text-align: center;
        width: 300px;
        min-height: 440px;
        padding: 40px 20px;
        margin: 75px auto 0 auto;
    }

    .login-panel .ui-g .ui-g-12 {
        padding: 20px 20px;
    }

    .login-panel .ui-g .ui-g-12 .ui-button {
        margin-top: 30px;
    }
}

.login-body {
    background-image: url(../resources/images/loginmainbg.png);
    /* background-size: 169px 125px !important;*/
    background-size: 100% !important;
    background-repeat: repeat !important;
    background-color: #fff !important;
    /*background-color: #DFDBE5;
  background-image: url("") !important;*/
}

/*Login Logo*/

#loginlogo {
    background-image: url(../resources/images/loginlogo.png);
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    width: 85px;
    height: 65px;
    flex: 0 0 auto;
    margin-right: 15px;
}

/* Brand logos row (SAIL + NMC Container Lines) at top of login card
   Images served from LRP.war/resources/images via JSF library="images" */
.nfr-brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 4px 0 12px !important;
}
/* SAIL + NMC brand logos. The whole row is rendered server-side ONLY when both
   image files exist (loginCBean.showBrandLogos), so it collapses cleanly with no
   gap in environments that don't have them, and never shows a broken-image icon. */
.nfr-brand-logo {
    display: block;
    width: auto;
}
.nfr-brand-sail {
    height: 64px;
}
.nfr-brand-nmc {
    height: 56px;
}
/* Keep the title centred. #loginlogo is intentionally NOT hidden — clients that
   ship a loginlogo.png still get it via the original mechanism; when the image
   is absent the element collapses to zero width and stays invisible. */
.sm-Title label {
    margin-left: 0 !important;
}

.nfr_login_sec .card.login-panel .ui-g-12.sm_login_errormessages {
    padding: 0px !important;
    /* Reserve enough height for the longest validation message (the 3-line
       "account locked" text) so it shows fully with NO scrollbar, and so the card
       height stays the SAME with or without an error -> login_bg stays identical. */
    min-height: 90px;
    display: flex;
    align-items: center;
    color: red;
    font-size: 12px;
}

/* Equal top offset for BOTH MFA states (method-selection and the after-OTP /
   changepass credential state). The offset is applied to the shared error-message
   area, which precedes the content in both states, so both shift down by the same
   amount - the content sits with better vertical balance under the logo while
   staying top-aligned between states (no jump). Small enough that the taller
   credential state still fits the 470px card (no resize). */
.nfr_login_sec_mfa .card.login-panel .ui-g-12.sm_login_errormessages {
    /* 5px (was 25px): the empty 90px error reserve left too much dead space between
       the title and the "Choose how you'd like to sign in" / Microsoft / OTP block,
       so the block sat low with a big gap above it. Shifting the shared error area up
       pulls the whole content stack up by the same amount in BOTH the method and the
       credential states (so no relative jump on "Sign in with OTP"), centering the
       method block between the title and the card bottom. */
    margin-top: 5px;
}

/* Password-expired (passreset) state shows the credential form (USERNAME / PASSWORD /
   Log In) PLUS the "click here to reset your password" line, so it has one message row
   more than the login-expired state. The 90px reserve (sized for the 3-line account-
   locked message) is not needed here - the passreset error is always the single-line
   "Your Password has been Expired!" - so shrink it to offset the reset-message height
   and keep the card at the same ~470px as the login-expired card (no zoom). */
.sm_login_errormessages.nfr-err-passreset {
    min-height: 48px !important;
}

/* When the SAIL brand-logos row is shown the login card is taller, so lift the
   downtime banner higher to clear the card's top instead of merging with it. */
.marquee-text.nfr-marquee-tall {
    top: calc(50% - 300px) !important;
}

#nfr_fragOTP {
    position: relative;
}

.sm_login_errormessagesotp {
    padding: 0px !important;
    height: auto;
    /* The PrimeFaces theme puts float:left on the OTP input's .ui-g-12 wrapper, which
       took this (non-cleared) error container out from under the input and made the
       alert overlap the input field (Screenshot_1). clear:both drops the alert BELOW
       the input; float:none + width:100% keep it full width and centered. */
    clear: both;
    float: none;
    width: 100%;
    position: relative;
}

/* Invalid-OTP alert (expected design, Screenshot_2): a light-pink card that flows
   below the OTP input, with a red filled "!" circle, a bold red title line and a
   lighter red detail line. Width/centering match the OTP input + Proceed button so
   the card's edges line up with them. */
#nfr_login_otpmsg {
    list-style: none;
    width: 300px;
    max-width: 100%;
    margin: 10px auto 2px;
    padding: 11px 14px 11px 46px;
    position: relative;
    box-sizing: border-box;
    background: #fdecec;
    color: #c0434c;
    border: 1px solid #f0b2b8;
    box-shadow: 0 2px 8px rgba(226, 55, 68, 0.12);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    animation: nfrOtpErrIn 0.22s ease-out;
}
/* On initial page load h:messages renders an empty <ul> (no <li>); without this it
   would still paint the card + icon. Hide the container when it has no message
   so the alert only appears after a real validation error. */
#nfr_login_otpmsg:empty {
    display: none !important;
}
#nfr_login_otpmsg::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 12px;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23e01e2b'/%3E%3Crect x='11' y='6' width='2' height='8' rx='1' fill='white'/%3E%3Ccircle cx='12' cy='17' r='1.25' fill='white'/%3E%3C/svg%3E") no-repeat center / 22px 22px;
}
@keyframes nfrOtpErrIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

#nfr_login_otpmsg li {
    position: relative;
    list-style: none;
    color: #c0434c;
    font-weight: 400;
    margin: 0;
}
/* First message ("OTP is invalid") = bold red title; the second ("Still You have N
   attempt(s)") stays the lighter red detail colour set above. */
#nfr_login_otpmsg li:first-child {
    font-weight: 700;
    color: #b02733;
    font-size: 13.5px;
}

.sm_login_title {
    line-height: 36px;
    height: 100%;
    font-size: 24px;
    color: #03a9f4;
    vertical-align: bottom;
}

.nfr_login_sec .ui-lg-12.sm-credentials-container {
    padding: 0px !important;
}

.nfr_login_sec .login-panel .sm-credentials-container>div {
    padding-left: 6px !important;
    padding-right: 0px !important;
}

.sm-qr-container {
    /*border-left-style: outset;*/
    padding: 0px !important;
    padding-right: 0px !important;
}

.sm-Title {
    font-family: 'NebulousContent', sans-serif;
    text-align: center;
    color: #232121;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.sm-Title label {
    line-height: 30px;
    margin-left: -24px;
    font-size: 17px;
    max-width: 210px;
    display: block;
}

@media (max-width: 640px) {
    .sm-qr-container {
        display: none !important;
    }
}

.nfr_login_sec .sm-auth-container.ui-g-12 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.login-panel {
    width: 375px !important;
}

/* Desktop split-view only: pin the card panel to a RIGID width so it cannot flex
   with its content. Previously it was a flex item that shrank (~357px) on the
   method-selection screen and grew (~377px) once the username/password fields
   rendered, which changed the width of the login_bg image column (the image
   "zoomed"/shifted) when clicking "Sign in with OTP". flex:0 0 375px + border-box
   keeps the image/panel split identical in both states. Scoped to >=641px (the
   side-by-side range; the card is always wider than 375px there, so no overflow) so
   the <=640px mobile layout keeps its flexible panel. */
@media (min-width: 641px) {
    .nfr_login_sec .login-panel {
        flex: 0 0 375px;
        min-width: 375px;
        max-width: 375px;
        box-sizing: border-box;
    }
}

.sm_login_title {
    padding-top: 0px !important;
    padding-bottom: 5px !important
}

.nfr_login_sec .ui-g-12.sm-signin-options {
    padding-top: 10px !important;
    padding-bottom: 0px !important;
    text-align: center;
}

.logiOTPlabel {
    font-size: 12px;
    font-weight: 600;
    color: #054077;
    padding-left: 8px;
}

.login-panelcopyrights {
    text-align: center;
    margin: 0px auto 0 auto;
    position: fixed;
    bottom: 0;
    background: #f2f2f2;
    width: 100%;
}

body .md-inputfield1 {
    display: block;
    position: relative;
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    /* width: 100%; */
    border: 1px solid #bdbdbd;
    /* margin: 0 0 15px; */
    padding: 6px;
    /* box-sizing: border-box; */
    font-size: 14px;
}

.sm-login-button {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    outline: 0;
    background: #43A6EB !important;
    border: 1px solid #26759e !important;
    width: 100%;
    border: 0;
    height: 42px !important;
    padding: 6px;
    color: #FFFFFF;
    font-size: 14px;
    -webkit-transition: all 0.3 ease;
    transition: all 0.3 ease;
    cursor: pointer;
    box-shadow: none !important;
    /* border-box so width:100% (incl. padding) matches the border-box inputs;
       otherwise the Login button overflows past the fields' right edge. */
    box-sizing: border-box;
}

.sm-border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.26) !important;
}

.sm-img {
    max-width: 285px !important;
    height: auto !important;
    margin-left: -16px !important;
    object-fit: contain !important;
}

.sm-fontsize12 {
    font-size: 12px !important;
}

.sm-white {
    color: #f7f7f7 !important;
}

.sm-blue {
    color: #43A6EB !important;
}

.sm-text-align-center {
    text-align: center !important;
}

.nfr_login_sec .ui-g-12.sm-padding0 {
    padding: 0px 0px !important
}

/* Added by Paul*/

.sm_login_verifyQR {
    padding: 0px !IMPORTANT;
}

.sm_login_or {
    padding: 0px !important;
}

/** new **/
/* login_bg handled the UAFL way: .nfr_login_sec is a flex row that places the
   login_bg <img> on the left and the login card on the right
   (justify-content:space-between), both vertically centred. The image is a real
   <img> capped at 70% of the panel width (.nfr_login_bg_logo) with
   max-width:100%, so it scales by its own natural size/aspect as the browser is
   resized, never distorted. */
.nfr_login_sec {
    background-color: #fff;
    background-position: left center;
    width: 76%;
    margin: auto;
    box-sizing: border-box;
    box-shadow: 0px 0 15px #a9a6a6;
    border-radius: 20px;
    /* min-height (not a fixed height) so the card grows to fit taller content —
       e.g. when the SAIL + NMC brand-logos row is shown — instead of clipping the
       OR divider and the Sign in with OTP button. Kept vertically centred via
       top:50% + translateY so it still centres at any height. 510px so the plain
       index (direct) login card matches the MFA card height -> the login_bg cover
       image is cropped/scaled identically on both (no "zoomed out" difference).
       510 (was 470): clients that ship a header login logo (showLoginLogo) have a
       ~35px taller .sm-Title, which pushed the revealed username/password state past
       470 while the method-selection state stayed at 470 -> the card grew and the bg
       image zoomed when "Sign in with OTP" was clicked (the "jump" seen on envs with a
       logo). 510 reserves enough height for the credential state WITH a logo header,
       so method and reveal stay the same height (no jump); logo-less envs just get a
       little more bottom whitespace. */
    min-height: 510px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    overflow: hidden;
    max-width: 1080px;
    display: flex;
    justify-content: space-between;
    /* stretch so the login_bg box always fills the full card height (no white gap
       at the bottom when the panel is taller, e.g. a multi-line error). */
    align-items: stretch;
}
/* Keep the MFA card a CONSISTENT height across the method-selection state and the
   after-"Sign in with OTP" credential state, so the panel (and the stretched bg
   image) does not grow / "zoom" when the username/password fields are revealed.
   The credential block + the 90px error-reserve is taller than the method block and
   was pushing the card past the 430px min-height; size the card to fit the tallest
   state and let the shorter method-selection block centre within it. 510 (was 470)
   also covers the taller .sm-Title when a header login logo is shown (see the base
   .nfr_login_sec rule), so revealing the credentials never grows the card. */
.nfr_login_sec.nfr_login_sec_mfa {
    min-height: 510px;
}

/* Password-expired reset message ("Please click here to reset your password"): render
   it as ONE tidy centred line. The old markup put the three pieces as separate flex
   items of .ui-g, so they stacked with uneven vertical gaps (Screenshot_4). */
.nfr-reset-msg {
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    padding: 4px 12px !important;
    margin: 0;
}
.nfr-reset-msg .nfr-reset-link {
    color: #e23744;
    margin: 0 4px;
}


.nfr_login_bg_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    /* No fixed height — let the card's align-items:stretch stretch this box to the
       FULL card height so the login_bg fills top-to-bottom with no bottom gap.
       (A height:100% here would override the stretch and leave a bottom gap.) */
    min-width: 0;
    overflow: hidden;
}
/* Default (LOGO / transparent login_bg): whole logo shown, centred, never
   cropped. The server auto-detects the image type (LoginCBean.loginBgCover). */
.nfr_login_bg_logo img {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    object-position: center;
}
/* PHOTO env (auto-detected opaque login_bg.png): fill the panel edge-to-edge. */
.nfr_login_sec.nfr-bg-cover .nfr_login_bg_logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}


.nfr_login_sec .ui-fluid .ui-inputtext,
.nfr_login_sec .ui-fluid .ui-password {
    border: 1px solid #cdcdcd;
    padding: 5px 5px 5px 50px;
    box-sizing: border-box;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 20px;
    position: relative;
    background-position: 15px;
    font-size: 18px;
}

/* Password field: reserve right padding for the show/hide eye toggle (positioned
   at right:34px, ~16px wide) so long password text/dots never run under it. The
   toggle stays fixed on the right and clickable; the text simply ends before it.
   Only the password input is affected (username keeps its normal right padding). */
.nfr_login_sec .ui-fluid .ui-password {
    padding-right: 50px;
}

@font-face {
    font-family: 'NebulousContent';
    src: url('../fonts/NebulousContent.eot');
    src: url('../fonts/NebulousContent.eot?#iefix') format('embedded-opentype'),
        url('../fonts/NebulousContent.svg#NebulousContent') format('svg'),
        url('../fonts/NebulousContent.ttf') format('truetype'),
        url('../fonts/NebulousContent.woff') format('woff'),
        url('../fonts/NebulousContent.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.login-body {
    overflow: hidden;

}

/*.nfr_dec_circle_top {
    width: 250px;
    height: 250px;
    background: #057ca4;
    border-radius: 50%;
    position: absolute;
    top: -49px;
    right: -81px;
    z-index: -1;
    border: 10px solid #389afd;
}
.nfr_dec_circle_bottom {
    width: 135px;
    height: 135px;
    background: #057ca4;
    border-radius: 50%;
    position: absolute;
    bottom: -22px;
    left: -80px;
    z-index: -1;
    border: 10px solid #389afd;
}*/
.nfr_reset_password {
    font-size: 12px !important;
    color: #43A6EB !important;
}

.nfr_login_sec .ui-fluid .ui-inputtext::-webkit-input-placeholder,
.nfr_login_sec .ui-fluid .ui-password::-webkit-input-placeholder {

    font-size: 13px;
}

.nfr_login_sec .ui-fluid .ui-inputtext::-moz-placeholder,
.nfr_login_sec .ui-fluid .ui-password::-moz-placeholder {

    font-size: 13px;
}

.nfr_login_sec .ui-fluid .ui-inputtext:-ms-input-placeholder,
.nfr_login_sec .ui-fluid .ui-password:-ms-input-placeholder {

    font-size: 13px;
}

.nfr_login_sec .ui-fluid .ui-inputtext::placeholder,
.nfr_login_sec .ui-fluid .ui-password::placeholder {

    font-size: 13px;
}

.loader {
    border: 16px solid #F3F3F3;
    border-radius: 50%;
    border-top: 16px solid blue;
    border-bottom: 16px solid blue;
    width: 100px;
    height: 100px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.smpassword {
    display: none !important;
}

#nfr_pwdCompTxt {
    padding: 0px !important;
    height: 50px;
    color: red;
    font-size: 14px;
}

#nfr_pwdCompTxt a {
    color: #0277bd
}

body #nfr_resLink.ui-widget-content {
    background-color: transparent;
}

ul#nfr_login_msg {
    font-size: 12px;
    list-style-type: none;
    padding-left: 15px;
}

.small-button {
    background-color: #008CBA;
    border: none;
    color: white;
    padding: 6px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 10px;
    margin: 4px auto;
    cursor: pointer;
    width: 100px !important;
    margin-left: 125px;
}

.microsoft-button {
    background-color: #264a62;
    border: none;
    padding: 8px 16px;
    display: block;
    transition: background-color 0.3s ease;
    width: 300px;
    box-sizing: border-box;
}

.microsoft-button:hover {
    background-color: #005A9E;
}

.sm-mic-logo {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-size: 100% 100%;
    background-image: url("../resources/images/microsoftlogo.png");
}

body .md-inputfield label {
    top: 8px;
    left: 15px;
}

#nfr_login_btnlogin {
    margin-bottom: 5px;
}

#otpmsg {
    color: #2b5912;
    font-size: 14px;
}

/* Old tooltip arrow retired: the OTP alert is now an inline card, not a pointer
   tooltip. */
#nfr_login_otpmsg li:last-child:after {
    display: none;
}

#nfr_txtOTP {
    background-image: url("../resources/images/otpicon.png");
}

#userinputId:after,
#pswdinputId:after {
    background-image: url(../resources/images/loginuser.svg);
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: 100%;
    content: '';
    top: 10px;
    left: 15px;
}

#pswdinputId:after {
    background-image: url(../resources/images/loginlock.svg);
}

.nfr-pwd-toggle {
    position: absolute;
    right: 34px;
    top: 10px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    z-index: 2;
    user-select: none;
    display: none;
}

.nfr-pwd-toggle:hover {
    color: #555;
}

input:-internal-autofill-selected {
    box-shadow: 0 0 0px 1000px white inset;
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

@-webkit-keyframes blinker {
    from {
        opacity: 1.0;
    }

    to {
        opacity: 0.0;
    }
}

.licblink {
    text-decoration: blink;
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 0.6s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
}

.lic_icon {
    font-size: 2rem !important;
    color: #09c916;
    margin-right: 5px;
    position: relative;
    top: 4px;
    padding: 0
}

.lic_exp_red {
    color: #ff4708;
}

.lic_exp_war {
    color: #f49f03
}

.lic_icon {
    border: none;
    background: transparent;
    position: absolute;
    left: 150px;
    top: -45px;
}

.lic_icon .ui-button-text.ui-c {
    display: none;
}

.licencetimericon {
    float: left;
    width: 30px;
    margin-right: 5px;

}

#userinputId input,
#pswdinputId input {
    width: 300px;
    position: relative;
}

/* Reserve room on the right for the show/hide eye toggle. The toggle
   (.nfr-pwd-toggle) sits at right:34px and the icon is ~16px wide, so its
   left edge reaches ~50px from the right; pad to 56px so long password text
   ends before the icon and never runs under it. This ID rule is the effective
   one (higher specificity than the .ui-password class rule above). */
#pswdinputId input {
    padding-right: 56px;
    box-sizing: border-box;
}

#updatelicencetimericon {
    position: relative;
}

.lic_dig_text {
    border: none !important;
    width: 100%;
    font-size: 14px;
}

#NFR_LicenseMsgDialog {
    position: absolute;
    top: auto !important;
    left: auto !important;
    bottom: 15px;
    right: 0px;
    width: 620px !important;
    max-height: fit-content;
    border: 2px solid #d59b29;
    border-radius: 10px;
    background: #fee0a5;
    display: none;
}
#NFR_LicenseMsgDialog .ui-dialog-titlebar {
    display: none;
}

.NFR_LicenseMsgDeatails span {
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    display: block;
    color: #030303;
}

#NFR_LicenseMsgDialog.active {
    display: block;
}

#lic_dig_close {
    width: 20px;
    height: 20px;
    display: inline-block;
    float: right;
    background: #737373;
    text-align: center;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    line-height: 20px;
    font-size: 13px;
}

.NFR_LicenseMsgDeatails {
    color: #090909;
}

#NFR_LicenseMsgDialog.lic-expired {
    background: #f2a790;
    border: 2px solid #fc3d01;
}

.NFR_LicenseMsgDeatails span.bold-text {
    font-weight: 600;
    font-size: 15px;
}

#expireddialog {
    width: 460px !important;
}

/* .nfr_login_sec_mfa .login-panel {
    background: #3379A1;
    background: linear-gradient(90deg, rgba(51, 121, 161, 1) 0%, rgba(80, 116, 182, 1) 50%, rgba(46, 86, 162, 1) 100%) !important;
} */



/* .nfr_login_sec_mfa .microsoft-button {
    background: #CF93F6;
    background: linear-gradient(90deg, rgba(207, 147, 246, 1) 0%, rgba(255, 111, 175, 1) 50%, rgba(255, 161, 116, 1) 100%);
    box-shadow: 0px 2px 2px #504d4d;
    border-radius: 5px;
}

.nfr_login_sec_mfa .login-panel #showLoginBtn {
    background: linear-gradient(90deg, rgba(150, 53, 157, 1) 0%, rgba(241, 31, 44, 1) 50%, rgba(252, 159, 64, 1) 100%) !important;
    border-radius: 50px;
    font-weight: bold;
} */

.nfr_login_sec_mfa .microsoft-button {
    background: #fff;
    box-shadow: 3px 0px 7px #b6b6b6;
    border-radius: 5px;
    border: 1px solid #a29e9e;
}

/* "Sign in with OTP" button uses the same loginbtn / loginbtnhover images as the
   index login button; if an image is missing the background-color shows as the
   default (same behaviour as index). */
.nfr_login_sec_mfa .login-panel #showLoginBtn {
    background-color: #2589d0 !important;
    background-image: url(../resources/images/loginbtn.png) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 5px;
}

.nfr_login_sec_mfa .login-panel #showLoginBtn:hover {
    background-color: #03A9F4 !important;
    background-image: url(../resources/images/loginbtnhover.png) !important;
}

/* MFA "Login" submit button uses the same loginbtn / loginbtnhover images as
   index.xhtml. If the image is missing, the background-color below shows as the
   default (exactly like index). */
.nfr_login_sec_mfa .login-panel #nfr_login_btnlogin {
    background-color: #2589d0 !important;
    background-image: url(../resources/images/loginbtn.png) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.nfr_login_sec_mfa .login-panel #nfr_login_btnlogin:hover {
    background-color: #03A9F4 !important;
    background-image: url(../resources/images/loginbtnhover.png) !important;
}

/* "Choose a secure sign-in method to continue." subtitle (Screenshot_7) */
.sm-signin-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.3;
    /* No negative pull: the method block is now top-anchored (like the credential
       state), so the -80px that used to centre it would drag the subtitle up over
       the title/error area and reintroduce the jump when switching to OTP. */
    margin: 0 0 12px;
}

/* Password-expired (passreset) state: the "click here to reset your password"
   message renders ABOVE the method-selection block, so the -80px upward pull made
   the subtitle/buttons collapse over that message (Screenshot_4). Cancel the pull
   here (the block is also pinned near the top via nfr-creds-active in this state),
   so the subtitle + Microsoft + OR + OTP flow cleanly BELOW the reset message. */
.sm-signin-subtitle.nfr-subtitle-flat {
    margin-top: 12px;
}

/* Secure shield icon on the "Sign in with OTP" button. Inline SVG (no font
   dependency), overrides the PrimeFaces .ui-icon sprite. */
/* --- Screenshot_8: consistent Microsoft + OTP sign-in buttons --- */
/* Identical box for both buttons: same width, height and corner radius. Colours
   are left to the existing per-button rules. */
.sm-signin-options .microsoft-button,
.sm-signin-options #showLoginBtn {
    width: 300px !important;
    max-width: 100%;
    height: 44px !important;
    border-radius: 6px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}
/* Microsoft button: flex-centre its logo+label. NOTE: no !important on display,
   so showLoginFields() (which sets inline display:none when "Sign in with OTP"
   is clicked) can still hide it. */
.sm-signin-options .microsoft-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
}
/* OTP button keeps its inline display toggle (none/inline-block), so centre the
   icon+label with text-align + line-height rather than flex. */
.sm-signin-options #showLoginBtn {
    text-align: center !important;
    line-height: 44px !important;
    /* tighten the gap after the OR divider (overrides the inline margin-top:12px) */
    margin-top: 4px !important;
}
/* Keep the OTP label in sentence case ("Sign in with OTP"), matching the
   Microsoft button, instead of the uppercase/capitalize button default. */
.sm-signin-options #showLoginBtn,
#showLoginBtn .ui-button-text {
    text-transform: none !important;
}
/* Shield icon inline, directly beside the centred label (icon + label centred
   together, like the Microsoft button). */
#showLoginBtn .ui-button-icon-left.sm-otp-shield {
    position: static;
    display: inline-block;
    vertical-align: middle;
    top: auto;
    left: auto;
    margin: 0 8px 0 0;
    width: 18px !important;
    height: 18px !important;
    text-indent: 0 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: 18px 18px !important;
}
#showLoginBtn .ui-button-text {
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}
/* OR divider: light-grey lines with a centred "OR", ~12px above and below. */
.sm-or-divider {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 12px;
    width: 300px;
    max-width: 100%;
    /* tighter gap below OR before the Sign in with OTP button */
    margin: 12px auto 4px;
}
.sm-or-divider::before,
.sm-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.sm-or-divider span {
    padding: 0 12px;
}

/* The MFA "after Sign in with OTP" step reuses the same base field/button CSS as
   the index login (inputs + .sm-login-button, which is border-box), so username,
   password and Login button line up identically with no MFA-specific overrides. */
/* ============================================================================
   3.22 - Login UI refresh (index.xhtml + indexmfa.xhtml)

   Reference: Screenshot_3.jpg - corner radius / alignment only.
   Colours deliberately left at their existing values.
   ============================================================================ */

/* --- Username / password fields ------------------------------------------ */
/* Corner radius only - fill and border colour stay as they were. */
.nfr_login_sec .ui-fluid .ui-inputtext,
.nfr_login_sec .ui-fluid .ui-password {
    border-radius: 8px !important;
}

/* --- Login / sign-in buttons --------------------------------------------- */
/* Corner radius only - existing background / border colours are left alone,
   including the loginbtn.png the MFA rules apply. */
.nfr_login_sec .sm-login-button,
.nfr_login_sec .login-panel #showLoginBtn,
.nfr_login_sec .login-panel #nfr_login_btnlogin,
.nfr_login_sec_mfa .login-panel #showLoginBtn,
.nfr_login_sec_mfa .login-panel #nfr_login_btnlogin {
    border-radius: 8px !important;
}

/* Microsoft button keeps its white fill; match the 8px corner. */
.sm-signin-options .microsoft-button,
.sm-signin-options #showLoginBtn {
    border-radius: 8px !important;
}

/* --- Username / password / Login edge alignment -------------------------- */
/* The credentials rows carried padding-left:6px while the button row did not,
   so the fields sat 6px right of the Login button. Zero both so all three
   controls share one content box and their left/right edges line up. */
.nfr_login_sec .login-panel .sm-credentials-container > div {
    /* zero ALL padding (the ui-g-12 default ~8px top/bottom is the real gap
       between the fields) so username/password sit close together */
    padding: 0 !important;
}
/* Center the whole credentials column (labels + inputs) as a 300px block so it
   lines up with the centred 300px Login / sign-in buttons. Previously it was left
   aligned, ~7px left of the centred Login button, making the button look shifted
   right (Screenshot_5). */
.nfr_login_sec .login-panel .sm-credentials-container {
    width: 300px !important;
    max-width: 100%;
    /* float:none so the auto margins actually centre it - the PrimeFaces grid makes
       this a float:left element, which ignores margin:auto and left it ~7px left of
       the centred Login button. */
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}
.nfr_login_sec .ui-g-12.sm-signin-options {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 4px !important;
}
/* Vertical rhythm between the two fields and the button. Roomier spacing so the
   USERNAME / PASSWORD / LOGIN stack breathes (Screenshot_10). */
.nfr_login_sec .login-panel .sm-credentials-container > div + div {
    margin-top: 10px;
}
/* Gap between the password field and the Login button. Overrides the button's
   inline margin-top:12px. */
.nfr_login_sec .login-panel #nfr_login_btnlogin {
    margin-top: 15px !important;
}

/* Field caption above each input (USERNAME / PASSWORD) - small, uppercase, muted
   blue-grey, left aligned (Screenshot_10). Sits outside .md-inputfield so it is not
   treated as a floating placeholder label. */
.nfr-field-label {
    display: block;
    text-align: left;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #5b7a9d;
    margin: 0 0 -1px 2px;
}

/* --- MFA: gap between the downtime banner and the login card ------------- */
/* The MFA card is taller than the index card, so the banner's shared
   calc(50% - 250px) left it sitting on the card's top edge. Lift it clear.
   Tune the 285px alone to widen or narrow the gap. */
.marquee-text.nfr-marquee-mfa {
    top: calc(50% - 300px) !important;
}
/* Brand-logos variant: .nfr-marquee-tall already lifts the banner to -300px for
   the taller card; keep the same extra MFA clearance on top of that. Three
   classes so this beats both single-variant rules regardless of source order. */
.marquee-text.nfr-marquee-mfa.nfr-marquee-tall {
    top: calc(50% - 350px) !important;
}

/* --- MFA: centre the sign-in options in the card ------------------------- */
/* Title stays pinned at the top; auto margins center the options block in the
   space left below it, instead of letting it sit low in the card. */
.nfr_login_sec_mfa .login-panel {
    display: flex;
    flex-direction: column;
}
.nfr_login_sec_mfa .login-panel > .ui-g {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
/* Anchor the sign-in block at the TOP in BOTH states (method selection AND the
   after-"Sign in with OTP" / changepass credential state). Previously the method
   block was vertically centred (margin-top:auto) while the credential block was
   pinned to the top (nfr-creds-active, margin-top:6px) — so clicking "Sign in with
   OTP" made the content leap from the middle to the top. Using the same top anchor
   for both keeps the content in place; with the fixed card min-height the panel no
   longer jumps or resizes on OTP click. margin-bottom:auto keeps the empty space at
   the bottom (block stays top-aligned). */
.nfr_login_sec_mfa .login-panel > .ui-g > .ui-g-12.sm-signin-options {
    margin-top: 6px;
    margin-bottom: auto;
}
.nfr_login_sec_mfa .login-panel > .ui-g > .ui-g-12.sm-signin-options.nfr-creds-active {
    margin-top: 6px !important;
    margin-bottom: auto !important;
}
