/*
    iad-reactivation.css
    ====================
    Scoped CSS for the IAD (Inactive Account Deactivation) self-service reactivation screens
    shown inside the existing login popup(s)/card(s): header Login #mySidenav on Welcome.do,
    the Book Now popup (LoginPopup.jsp), and the login_G self-service sign-in card
    (login_G1.jsp, #iadReactivateSection) - see js/iad-reactivation.js for how the same
    controller and markup are reused across all three.

    Every rule is nested under .iad-reactivate-root, so this file cannot affect, or be
    affected by, Bootstrap/login.css/styleHome.css or any other existing stylesheet - and it
    is only ever <link>ed at all when Enable_InactiveUser_Mail is "Y" (see Edit 1 in the
    including JSPs), so the existing flow loads zero extra bytes when the flag is off.

    Deliberately conservative for older-browser support (same audience as the rest of this
    app's plain jQuery code):
      - literal colours only, no CSS custom properties (unsupported pre-IE11/old Safari)
      - no flexbox `gap` (unsupported in older Firefox/Safari flex implementations); OTP
        boxes are spaced with margins on inline-block elements instead.

    Accent colour: maroon (#8b1e41 / darker #73162f on hover) - the single source of truth
    for it is the .iad-primary / .iad-back / .iad-resend / .iad-otp-box:focus / .iad-badge.mail
    declarations below (edited in place, not shadowed by a later block) - change the hex
    values there and every screen (disabled, OTP, success) picks it up together, since all
    three reuse the same classes. To restore the previous teal, set them back to
    #0f9d94 / #0b7a73.
*/
.iad-reactivate-root {
    text-align: center;
    padding: 6px 4px 4px;
}
/* login_G1.jsp's #iadReactivateSection is rendered on every page load whenever
   Enable_InactiveUser_Mail is "Y" (not only on the one that's actually self-service-blocked) -
   until now an inline style="display:none;" on the div kept it hidden on every other render.
   That inline style was removed (Case-A first-paint flash fix, see login_G1.jsp) so the gated
   body.iad-reactivating rule below in this same file - which has higher specificity - can show
   it immediately on the one render where it's needed; this plain #id rule is what keeps it
   hidden everywhere else, exactly as the inline style used to. IAD.enter()/backToLogin() then
   take over via inline styles they set directly on the element, which always outrank both. */
#iadReactivateSection {
    display: none;
}
.iad-reactivate-root .iad-screen {
    display: none;
}
.iad-reactivate-root .iad-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    margin: 0 auto 14px;
    font-size: 26px;
    text-align: center;
}
.iad-reactivate-root .iad-icon-warn { background-color: #fff4e5; color: #e2a03f; }
.iad-reactivate-root .iad-icon-mail { background-color: #e6f7f6; color: #0f9d94; }
.iad-reactivate-root .iad-icon-success { background-color: #e7f8ee; color: #28a745; }
.iad-reactivate-root .iad-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.iad-reactivate-root .iad-copy {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 18px;
    line-height: 1.5;
    padding: 0 6px;
}
.iad-reactivate-root .iad-primary {
    display: block;
    width: 100%;
    max-width: 360px; /* caps + centers the button instead of stretching the full card */
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    background-color: #8b1e41;
    color: #ffffff;
}
.iad-reactivate-root .iad-primary:hover { background-color: #73162f; }
.iad-reactivate-root .iad-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.iad-reactivate-root .iad-back,
.iad-reactivate-root .iad-resend {
    display: inline-block;
    font-size: 13px;
    color: #8b1e41;
    text-decoration: none;
    margin-top: 6px;
    cursor: pointer;
}
.iad-reactivate-root .iad-back:hover,
.iad-reactivate-root .iad-resend:hover {
    text-decoration: underline;
    color: #73162f;
}
.iad-reactivate-root .iad-resend {
    display: none;
    margin-left: 6px;
}
/* Forward-compatible hook - inert today (no markup toggles .on yet), matches the base
   .iad-resend colour above so it's a no-op if/when something does start adding it. */
.iad-reactivate-root .iad-resend.on {
    color: #8b1e41;
}
.iad-reactivate-root .iad-otp-boxes {
    margin-bottom: 14px;
}
.iad-reactivate-root .iad-otp-box {
    display: inline-block;
    width: 38px;
    height: 46px;
    margin: 0 4px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937; /* dark, legible - same colour as .iad-title/.iad-h so the typed code
                        matches the rest of this form's text (was unset before, so it fell
                        through to whatever faint default the browser/page picked). */
    -webkit-text-fill-color: #1f2937; /* guards against a lighter fill colour some mobile
                                          Safari builds apply to text inputs independently of
                                          `color` - keeps the fix effective there too. */
    border: 1px solid #d1d5db;
    border-radius: 6px;
}
.iad-reactivate-root .iad-otp-box:focus {
    border-color: #8b1e41;
    outline: none;
}
.iad-reactivate-root .iad-otp-box:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}
.iad-reactivate-root .iad-timer-row {
    margin-bottom: 14px;
    font-size: 12px;
    color: #6b7280;
    min-height: 16px;
}
.iad-reactivate-root .iad-timer {
    font-weight: 600;
}
.iad-reactivate-root .iad-msg {
    display: block;
    min-height: 16px;
    font-size: 12px;
    color: #dc3545;
    margin-bottom: 8px;
}
.iad-reactivate-root .iad-msg.iad-msg-success {
    color: #28a745;
}
/* Small muted static note (e.g. the OTP screen's security note above "Back to Sign In") -
   text only, no logic. Same muted tone as .iad-copy, one size down to read as secondary. */
.iad-reactivate-root .iad-note {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 6px 10px;
}

/*
    Agency-only ("Manual reactivation required") notice - IadManualReactivation.jsp.
    Informational only, no controller JS: reuses .iad-icon/.iad-icon-warn above for visual
    consistency with the self-service screens, plus these screen-specific rules.
*/
.iad-reactivate-root .iad-manual-screen {
    text-align: center;
}
.iad-reactivate-root .iad-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.iad-reactivate-root .iad-badge.warn {
    background-color: #fff4e5;
    color: #e2a03f;
}
/* Forward-compatible hook - inert today (no .iad-badge.mail in any fragment yet), uses the
   same accent as .iad-primary above so it's already correct whenever one is added. */
.iad-reactivate-root .iad-badge.mail {
    color: #8b1e41;
}
.iad-reactivate-root .iad-h {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.iad-reactivate-root .iad-p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    padding: 0 6px;
}

/*
    Manual/agency screen - readable text on the white card. Scoped to .iad-manual-screen
    (higher specificity than both the base .iad-h/.iad-p rules above AND the dark-card media
    query below), so this wins regardless of prefers-color-scheme while leaving the disabled/
    OTP/success screens (which use .iad-title/.iad-copy, not .iad-h/.iad-p) untouched.
*/
.iad-reactivate-root .iad-manual-screen .iad-h { color: #1b2a3f; }
.iad-reactivate-root .iad-manual-screen .iad-p { color: #4a5561; }
.iad-reactivate-root .iad-manual-screen .iad-badge.warn {
    color: #9a5b00;
    background-color: #fdeccb;
}

/*
    Dark-card legibility only - does not touch light rendering (no selector overlap with the
    rules above; this only ever activates under prefers-color-scheme: dark).

    The OTP boxes themselves are NOT included here (on purpose - this used to set
    `.iad-otp-boxes input { color: #e8edf3; }`, a light colour meant for a dark card
    background). This card is always light/white regardless of prefers-color-scheme - only
    the OS/browser preference toggles here, not this card's own background - so that rule was
    actually the bug: on a device with a dark OS theme, it made the typed OTP nearly invisible
    against the box's still-white background. The box now always keeps the single dark,
    legible colour set on .iad-otp-box above, in both light and dark OS modes.
*/
@media (prefers-color-scheme: dark) {
    .iad-reactivate-root .iad-h { color: #e8edf3; }
    .iad-reactivate-root .iad-p { color: #b9c2cc; }
}

/*
    Book Now modal override - orange accent, Book Now ONLY.
    =========================================================
    The Book Now popup (LoginPopup.jsp) shares this exact file/markup/classes with the main
    login (Layout/MainLoginLayout.jsp) via .iad-reactivate-root - see the file header above.
    No new markup/class was needed to scope this override: LoginPopup.jsp's own wrapper div
    already carries a class the main login's wrapper does NOT use - .sidenav_right_popup
    (LoginPopup.jsp) vs .sidenav_right (MainLoginLayout.jsp) - confirmed unique to this one
    popup in the whole webapp. Every selector below is prefixed with that existing,
    Book-Now-only class, which also gives it higher specificity (3 classes) than the base
    rules above (2 classes), so it wins regardless of source order - and it can never match
    anything inside the main login's #mySidenav or login_G1.jsp's #iadReactivateSection,
    since neither of those sits inside .sidenav_right_popup.

    Colour: orange #ff6633 / darker #d9572b on hover. #ff6633 is the EXACT colour of this
    same popup's own "Login" button (.login_btn, Design/assets/css/login.css) - not the
    #FF6B35 placeholder floated when this change was requested - so the IAD accent now
    matches that button pixel-for-pixel. .login_btn has no :hover rule anywhere in this
    app to borrow, so #d9572b is a plain ~15% per-channel darken of #ff6633, computed the
    same way this file already darkens its other accents for :hover. (Previously teal
    #0f9d94/#0b7a73 - see git history if that ever needs restoring.)

    Covers every currently-accented element across all three screens (audited against
    IadReactivation.jsp / IadReactivationSuccess.jsp): the disabled screen's "Reactivate
    Account" button + "Back to Sign In" link, the OTP screen's "Verify OTP" button, OTP box
    focus border, "Resend OTP" link and "Back to Sign In" link, and the success screen's
    "Continue to sign in" button (also .iad-primary). .iad-badge.mail is included only for
    parity with its base-rule counterpart above - inert today, as no fragment uses it yet.
    .iad-primary/.iad-otp-box have no `border` in the base rules (border: none / a fixed
    grey border respectively), so no border-color override was added for them - only
    properties that are actually accent-coloured today are touched, per the no-impact
    requirement. .iad-primary's own text colour (#ffffff, set in the base rule above,
    untouched here) keeps the button label white and readable on this orange background,
    exactly as it already is on the real "Login" button using this same #ff6633.
*/
.sidenav_right_popup .iad-reactivate-root .iad-primary {
    background-color: #ff6633;
}
.sidenav_right_popup .iad-reactivate-root .iad-primary:hover {
    background-color: #d9572b;
}
.sidenav_right_popup .iad-reactivate-root .iad-back,
.sidenav_right_popup .iad-reactivate-root .iad-resend,
.sidenav_right_popup .iad-reactivate-root .iad-resend.on {
    color: #ff6633;
}
.sidenav_right_popup .iad-reactivate-root .iad-back:hover,
.sidenav_right_popup .iad-reactivate-root .iad-resend:hover {
    color: #d9572b;
}
.sidenav_right_popup .iad-reactivate-root .iad-otp-box:focus {
    border-color: #ff6633;
}
.sidenav_right_popup .iad-reactivate-root .iad-badge.mail {
    color: #ff6633;
}
