
/* ============================================================
   NEUTRALIZE MASTER PAGE CONTAINER
   ============================================================ */
html, body { height: 100%; }
.container-fluid.marginContent:has(.login-page-wrapper) { margin: 0 !important; padding: 0 !important; }
#mainContent, #alertBox { padding: 0; margin: 0; }


/* ============================================================
   WRAPPER — flex row, full viewport height
   ============================================================ */
.login-page-wrapper {
    display: flex;
    min-height: 100vh;
}


/* ============================================================
   LEFT: BRAND PANEL (desktop only)
   ============================================================ */
.login-brand-panel {
    flex: 0 0 60%;
    background: var(--hrnext-primaryblue, #143D8D);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
    overflow: hidden;
}

.login-brand-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hrnext-loginpill-bg, #ffffff);
    border-radius: 60px;
    padding: 24px 60px;
    min-width: 320px;
    min-height: 130px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.isPlatformEP .login-brand-pill,
.isPlatformEP .login-card-pill {
    box-shadow: none;
}

.login-brand-logo {
    max-width: 320px;
    max-height: 128px;
    object-fit: contain;
}

.login-brand-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    max-width: 360px;
    line-height: 1.5;
    padding-left: 60px;
}


/* ============================================================
   RIGHT: FORM PANEL
   ============================================================ */
.login-form-panel {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top nav */
.login-form-topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 20px 48px;
    font-size: 14px;
}

.login-topnav-text {
    color: #6b7280;
}

.login-topnav-link {
    color: var(--hrnext-primaryblue, #143D8D);
    font-weight: 600;
    text-decoration: none;
}

.login-topnav-link:hover {
    text-decoration: underline;
    color: var(--hrnext-primaryblue, #143D8D);
}

/* Card wrapper — no visual card on desktop */
.login-form-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mobile pill (hidden on desktop) */
.login-card-pill {
    display: none;
}

/* Form inner — centered vertically, max-width constrained */
.login-form-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    max-width: 520px;
    width: 100%;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.login-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 28px;
}


/* ============================================================
   FORM FIELDS
   ============================================================ */
.login-form-inner .form-group {
    margin-bottom: 18px;
}

.login-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.login-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.login-field-header .login-field-label {
    margin-bottom: 0;
}

/* "Forgot password?" inline link */
.login-forgot-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--hrnext-primaryblue, #143D8D);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.login-forgot-link:hover {
    text-decoration: underline;
}

/* Form controls — email input uses this directly; password input uses it inside .input-group */
.login-form-inner .form-control {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    font-size: 15px;
    height: auto;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.login-form-inner .form-control:focus {
    border-color: var(--hrnext-primaryblue, #143D8D);
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 61, 141, 0.12);
}

/* .input-group wrapper around the password field — the bootstrap-show-password plugin
   inserts a text twin and .input-group-addon eye icon as siblings inside this wrapper */
.login-form-inner .input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    width: 100%;
}

.login-form-inner .input-group:focus-within {
    border-color: var(--hrnext-primaryblue, #143D8D);
    box-shadow: 0 0 0 3px rgba(20, 61, 141, 0.12);
}

.login-form-inner .input-group .form-control {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    min-width: 0;
    width: auto;
}

.login-form-inner .input-group .form-control:focus {
    border: none;
    box-shadow: none;
}

/* Eye icon span generated by bootstrap-show-password (.add-on.input-group-addon).
   Bootstrap 3 sets width:1% on .input-group-addon which becomes flex-basis in a flex
   container, collapsing the addon to almost nothing. width:auto overrides this. */
.login-form-inner .input-group .input-group-addon {
    display: flex;
    align-items: center;
    width: auto;
    padding: 10px 14px;
    border: none;
    border-radius: 0;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
}

.login-form-inner .input-group .input-group-addon:hover {
    background: #f9fafb;
    color: #374151;
}

/* Sign in button */
.login-signin-btn {
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    letter-spacing: 0.01em;
    margin-top: 4px;
}


/* ============================================================
   OR CONTINUE WITH divider
   ============================================================ */
.login-or-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.login-or-divider::before,
.login-or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 72px);
    height: 1px;
    background: #e5e7eb;
}

.login-or-divider::before { left: 0; }
.login-or-divider::after  { right: 0; }


/* ============================================================
   SSO BUTTONS — side by side
   ============================================================ */
.login-sso-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.login-sso-row > div {
    flex: 1;
    display: flex;
}

.login-sso-row .oauth-signin-btn {
    flex: 1;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
}


/* ============================================================
   HELP LINK
   ============================================================ */
.login-help {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.login-support-link {
    color: var(--hrnext-primaryblue, #143D8D);
    font-weight: 600;
    text-decoration: none;
}

.login-support-link:hover {
    text-decoration: underline;
}


/* ============================================================
   FOOTER — privacy policy link
   ============================================================ */
.login-form-footer {
    padding: 16px 48px;
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
}

.login-form-footer .privacyPolicyLink {
    color: #9ca3af;
    text-decoration: none;
    cursor: pointer;
}

.login-form-footer .privacyPolicyLink:hover {
    text-decoration: underline;
}


/* ============================================================
   MOBILE / TABLET (≤991px)
   ============================================================ */
@media (max-width: 991px) {
    body:has(.login-page-wrapper) {
        background: var(--hrnext-primaryblue, #143D8D);
    }

    .login-page-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 16px 24px;
        background: var(--hrnext-primaryblue, #143D8D);
        min-height: 100vh;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-topnav {
        display: none;
    }

    .login-form-panel {
        width: 100%;
        max-width: 480px;
        background: transparent;
        flex: none;
    }

    .login-form-card {
        background: #fff;
        border-radius: 16px;
        padding: 64px 28px 28px;
        position: relative;
        margin-top: 44px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        flex: none;
    }

    /* Pill floats above card */
    .login-card-pill {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: -44px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--hrnext-loginpill-bg, #ffffff);
        border-radius: 50px;
        padding: 10px 36px;
        min-width: 220px;
        min-height: 76px;
        /* --login-card-pill-border defaults to the primary blue (looks right on a white pill).
           It is overridden to white via JS when a non-white custom pill color is set, and via
           the .isPlatformEP rule below for the EUP platform. */
        border: 3px solid var(--login-card-pill-border, var(--hrnext-primaryblue, #143D8D));
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* EUP pill background is the Execupay blue, so the border needs to be white to be visible. */
    .isPlatformEP .login-card-pill {
        border-color: #ffffff;
    }

    .login-card-pill img {
        max-height: 48px;
        max-width: 200px;
        object-fit: contain;
    }

    .login-form-inner {
        padding: 0;
        max-width: none;
        flex: none;
    }

    .login-form-footer {
        padding: 12px 0;
        justify-content: center;
    }

    .login-form-footer .privacyPolicyLink {
        color: rgba(255, 255, 255, 0.6);
    }
}


/* ============================================================
   OAUTH BUTTON BASE STYLES (carry forward from old login.css)
   ============================================================ */
.oauth-signin-btn {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
    gap: 10px;
}

.oauth-signin-btn:hover {
    box-shadow: rgba(60, 64, 67, 0.3) 0px 2px 3px 1px, rgba(60, 64, 67, 0.15) 0px 3px 8px 3px;
}

.oauth-button-text {
    vertical-align: middle;
}

.google-logo {
    background: url('https://developers.google.com/identity/images/g-logo.png') no-repeat center center;
    background-size: contain;
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
}

.microsoft-logo {
    background: url('/images/3rdPartyLogos/microsoftlogo.png') no-repeat center center;
    background-size: contain;
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
}

/* -------------------------------------------------------
   FORGOT PASSWORD MODAL
   ------------------------------------------------------- */

/* Rounded card to match the login form card */
#modalForgotPassword .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Blue header band — mirrors the left brand panel on desktop */
#modalForgotPassword .modal-header {
    background: var(--hrnext-highlightgreen, #78A22F);
    border-bottom: none;
    padding: 24px 28px 20px;
}

#modalForgotPassword .modal-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

/* Make the × visible on the dark header */
#modalForgotPassword .close {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
    text-shadow: none;
    padding: 12px 16px;
    margin: -4px -8px -4px 0;
}
#modalForgotPassword .close:hover {
    color: #ffffff;
}

/* The inner panel-default is structural only — strip its visual styling */
#modalForgotPassword .panel.panel-default {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
}

/* Lock icon + description paragraphs side by side */
#modalForgotPassword .forgotpass-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

#modalForgotPassword .forgotpass-intro > .fa-lock {
    font-size: 5em;
    flex-shrink: 0;
}

#modalForgotPassword .forgotpass-intro-text p {
    margin: 0 0 4px;
}

#modalForgotPassword .forgotpass-intro-text p:last-child {
    margin-bottom: 0;
}

#modalForgotPassword .form-control:focus {
    border-color: var(--hrnext-primaryblue, #143D8D);
    box-shadow: 0 0 0 3px rgba(20, 61, 141, 0.12);
}

/* Reset button styled to match the green sign-in button.
   bootstrap-theme.css applies a gradient via background-image and shifts it
   on hover with background-position:-15px — background-color alone can't beat
   a background-image, so we explicitly clear both here. */
#modalForgotPassword .forgotpassbutton {
    background-image: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
#modalForgotPassword .forgotpassbutton:hover,
#modalForgotPassword .forgotpassbutton:focus {
    background-image: none;
}


/* -------------------------------------------------------
   TFA CHALLENGE MODAL
   ------------------------------------------------------- */

#modalTFAChallenge .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#modalTFAChallenge .modal-header {
    background: var(--hrnext-highlightgreen, #78A22F);
    border-bottom: none;
    padding: 24px 28px 20px;
}

#modalTFAChallenge .modal-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

#modalTFAChallenge .panel.panel-default {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
}

#modalTFAChallenge #TFAChallengeForm h3 {
    font-size: 15px;
    color: #374151;
    font-weight: 400;
    margin: 0 0 16px;
}

#modalTFAChallenge .input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    width: 100%;
}

#modalTFAChallenge .input-group:focus-within {
    border-color: var(--hrnext-primaryblue, #143D8D);
    box-shadow: 0 0 0 3px rgba(20, 61, 141, 0.12);
}

#modalTFAChallenge .input-group .form-control {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    min-width: 0;
}

#modalTFAChallenge .input-group .form-control:focus {
    border: none;
    box-shadow: none;
}

#modalTFAChallenge .input-group .input-group-addon {
    display: flex;
    align-items: center;
    width: auto;
    padding: 10px 14px;
    border: none;
    border-radius: 0;
    background: #fff;
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
}

#modalTFAChallenge .btn-primary {
    border-radius: 8px;
    font-weight: 600;
    background-image: none;
}

#modalTFAChallenge .btn-primary:hover,
#modalTFAChallenge .btn-primary:focus {
    background-image: none;
}


/* -------------------------------------------------------
   TFA TRUST MODAL
   ------------------------------------------------------- */

#modalTFATrust .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#modalTFATrust .modal-header {
    background: var(--hrnext-highlightgreen, #78A22F);
    border-bottom: none;
    padding: 24px 28px 20px;
}

#modalTFATrust .modal-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

#modalTFATrust .panel.panel-default {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
}

#modalTFATrust .btn-success,
#modalTFATrust .btn-danger {
    border-radius: 8px;
}

