/* Login page (Admin and Member). Same rules in two files, keep them equal:
   - StaticContent/Content/pb-login.css, linked by both login views;
   - PayrollBozzMember/Views/Member/Account/_LoginCritical.css, which LoginPageOptimizer writes into the Member page
     so it paints before the stylesheets arrive (font url from the site root there, relative here).
   bootstrap and style.min.css may arrive later than these rules, so every property the page needs is set here.
   Every class starts with pbl- so nothing here reaches another page. The dark theme is the data-pbl-theme
   attribute that the login page script puts on <html>; no other page sets it. */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/plus-jakarta-sans/PlusJakartaSans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* html body: ahead of the body rules of the shared stylesheets, which may come later in the page */
html body.pbl-body {
    --pbl-bg: #f3f6f8;
    --pbl-surface: #fff;
    --pbl-surface-muted: #f8fafb;
    --pbl-border: rgba(28, 25, 23, .09);
    --pbl-border-strong: rgba(28, 25, 23, .16);
    --pbl-text: #1c1917;
    --pbl-text-secondary: #57534e;
    --pbl-text-muted: #736c66;
    --pbl-accent: #0d6fbe;
    --pbl-accent-dark: #0a5a9c;
    --pbl-accent-mid: #3b8fd6;
    --pbl-accent-50: #eaf3fb;
    --pbl-accent-on: #0d6fbe;
    --pbl-green: #6ebf4b;
    --pbl-danger-bg: #fef2f2;
    --pbl-danger-fg: #b91c1c;
    --pbl-warn-bg: #fffbeb;
    --pbl-warn-fg: #b45309;
    --pbl-ok-bg: #effaf0;
    --pbl-ok-fg: #2f7a1f;
    --pbl-panel-a: #0a3d6b;
    --pbl-panel-b: #0d6fbe;
    --pbl-panel-c: #2f9e6e;
    --pbl-hl: #b9e6a3;
    --pbl-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--pbl-bg);
    color: var(--pbl-text);
    font-family: var(--pbl-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

html[data-pbl-theme="dark"] {
    color-scheme: dark;
}

.pbl,
.pbl *,
.pbl *::before,
.pbl *::after {
    box-sizing: border-box;
}

body.pbl-body .hidden {
    display: none !important;
}

html[data-pbl-theme="dark"] body.pbl-body {
    --pbl-bg: #0b1218;
    --pbl-surface: #121b24;
    --pbl-surface-muted: #18232e;
    --pbl-border: rgba(255, 255, 255, .09);
    --pbl-border-strong: rgba(255, 255, 255, .17);
    --pbl-text: #e6e7eb;
    --pbl-text-secondary: #b6b9c2;
    --pbl-text-muted: #9095a1;
    --pbl-accent: #1f86d6;
    --pbl-accent-dark: #1673bd;
    --pbl-accent-mid: #5aa9ec;
    --pbl-accent-50: #0f2a42;
    --pbl-accent-on: #9fd0f5;
    --pbl-green: #7fcf5c;
    --pbl-danger-bg: #3b1515;
    --pbl-danger-fg: #fca5a5;
    --pbl-warn-bg: #3a2a0f;
    --pbl-warn-fg: #fcd34d;
    --pbl-ok-bg: #12301a;
    --pbl-ok-fg: #9fdc84;
    --pbl-panel-a: #06182b;
    --pbl-panel-b: #0a3a5e;
    --pbl-panel-c: #0f5646;
    --pbl-hl: #9fdc84;
}

.pbl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.pbl a {
    color: var(--pbl-accent-on);
    text-decoration: none;
}

.pbl a:hover,
.pbl a:focus {
    color: var(--pbl-accent-on);
    text-decoration: underline;
}

.pbl button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    padding: 0;
}

.pbl :focus-visible {
    outline: 2px solid var(--pbl-accent-mid);
    outline-offset: 2px;
}

.pbl-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Brand panel ---------- */
.pbl-brand {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 44px 56px;
    color: #fff;
    background: radial-gradient(900px 520px at 110% -10%, rgba(110, 191, 75, .40), transparent 60%), linear-gradient(155deg, var(--pbl-panel-a) 0%, var(--pbl-panel-b) 55%, var(--pbl-panel-c) 100%);
}

.pbl-brand::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: .18;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 70%);
    mask-image: linear-gradient(180deg, #000 0, transparent 70%);
}

.pbl-brand-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbl-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6fbe, #6ebf4b);
    border: 1px solid rgba(255, 255, 255, .22);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -.02em;
}

.pbl-brand-top strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.pbl-brand-top span {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
}

.pbl-brand-body {
    position: relative;
    margin: auto 0;
    max-width: 520px;
    padding: 40px 0;
}

.pbl-eyebrow {
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    margin-bottom: 20px;
}

.pbl-eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pbl-green);
    box-shadow: 0 0 0 3px rgba(110, 191, 75, .3);
}

.pbl-brand h1 {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 35px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
}

.pbl-brand h1 em {
    font-style: normal;
    color: var(--pbl-hl);
}

.pbl-lead {
    margin: 0;
    max-width: 460px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.pbl-feats {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pbl-feats li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: rgba(255, 255, 255, .88);
}

.pbl-feats svg {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 9px;
    background: rgba(110, 191, 75, .22);
    border: 1px solid rgba(110, 191, 75, .4);
}

.pbl-feats b {
    display: block;
    color: #fff;
    font-weight: 650;
    font-size: 14px;
}

.pbl-feats small {
    display: block;
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
}

.pbl-illus {
    position: absolute;
    right: -70px;
    bottom: 70px;
    width: 340px;
    opacity: .55;
    pointer-events: none;
}

.pbl-brand-foot {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

/* ---------- Form side ---------- */
.pbl-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px 40px;
}

.pbl-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.pbl-seg {
    display: inline-flex;
    background: var(--pbl-surface);
    border: 1px solid var(--pbl-border);
    border-radius: 999px;
    padding: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.pbl .pbl-seg button {
    height: 28px;
    min-width: 36px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pbl-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pbl .pbl-seg button[aria-pressed="true"] {
    background: var(--pbl-accent-50);
    color: var(--pbl-accent-on);
}

.pbl-seg svg {
    width: 14px;
    height: 14px;
}

.pbl-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.pbl-card {
    width: 100%;
    max-width: 420px;
}

/* flex, not inline-flex: an inline box sits on the text baseline, which moves when the web font replaces the fallback */
.pbl-logo {
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    margin: 0 0 22px -10px;
}

.pbl-logo img {
    display: block;
    width: auto;
    height: 34px;
}

.pbl-card h2 {
    margin: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--pbl-text);
}

.pbl-sub {
    margin: 6px 0 24px;
    color: var(--pbl-text-secondary);
    font-size: 14px;
}

/* Messages written by the PBBeginForm script (validation, summary, warning, success) */
.pbl .display-hide {
    display: none;
}

.pbl .alert {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(185, 28, 28, .22);
    background: var(--pbl-danger-bg);
    color: var(--pbl-danger-fg);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.pbl .alert-warning {
    border-color: rgba(180, 83, 9, .25);
    background: var(--pbl-warn-bg);
    color: var(--pbl-warn-fg);
}

.pbl .alert-success {
    border-color: rgba(47, 122, 31, .25);
    background: var(--pbl-ok-bg);
    color: var(--pbl-ok-fg);
}

.pbl .alert ul {
    margin: 0;
    padding-left: 18px;
}

.pbl .alert .close {
    float: right;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    line-height: 16px;
    font-size: 18px;
    font-weight: 400;
    color: inherit;
    text-shadow: none;
    opacity: .7;
    background-image: none;
    text-indent: 0;
}

.pbl .alert .close::before {
    content: "\00d7";
}

/* PBBeginForm makes the form .form-horizontal, whose groups have negative side margins (.form-horizontal .form-group);
   the extra class in the selector keeps this rule ahead of it whatever the order of the stylesheets */
.pbl .form-group.pbl-field {
    margin: 0 0 14px;
}

.pbl .pbl-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pbl-text-secondary);
}

.pbl .pbl-label label {
    margin: 0;
    font-weight: 600;
}

.pbl .pbl-label a {
    font-size: 12px;
    font-weight: 600;
}

.pbl .pbl-ctl {
    position: relative;
    display: flex;
    align-items: center;
}

.pbl .pbl-ctl > svg {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--pbl-text-muted);
    pointer-events: none;
}

.pbl .pbl-ctl input.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border-radius: 10px;
    border: 1px solid var(--pbl-border-strong);
    background: var(--pbl-surface);
    box-shadow: none;
    color: var(--pbl-text);
    font-family: inherit;
    font-size: 14px;
    line-height: normal;
    transition: border-color .15s, box-shadow .15s;
}

.pbl .pbl-ctl input.form-control::placeholder {
    color: var(--pbl-text-muted);
    opacity: 1;
}

.pbl .pbl-ctl input.form-control:hover {
    border-color: var(--pbl-accent-mid);
}

.pbl .pbl-ctl input.form-control:focus {
    outline: none;
    /* !important: style.min.css sets its own focus colour with !important */
    border-color: var(--pbl-accent) !important;
    box-shadow: 0 0 0 4px rgba(31, 134, 214, .18);
}

.pbl .pbl-ctl input.form-control[disabled] {
    background: var(--pbl-surface-muted);
    color: var(--pbl-text-muted);
}

.pbl .pbl-ctl.pbl-pw input.form-control {
    padding-right: 46px;
}

.pbl .pbl-ctl input.form-control.error,
.pbl .pbl-ctl input.form-control.error:focus {
    border-color: var(--pbl-danger-fg) !important;
}

.pbl .pbl-ctl input.form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(185, 28, 28, .16);
}

.pbl .pbl-field .help-block {
    display: block;
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--pbl-danger-fg) !important;
}

.pbl .pbl-field .help-block:empty {
    display: none;
}

.pbl .pbl-eye {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--pbl-text-muted);
}

.pbl .pbl-eye:hover {
    background: var(--pbl-surface-muted);
    color: var(--pbl-text);
}

.pbl-eye svg {
    width: 18px;
    height: 18px;
}

.pbl-eye .pbl-eye-off,
.pbl-eye[aria-pressed="true"] .pbl-eye-on {
    display: none;
}

.pbl-eye[aria-pressed="true"] .pbl-eye-off {
    display: block;
}

.pbl-caps {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--pbl-warn-fg);
}

.pbl-caps.pbl-show {
    display: flex;
}

.pbl-caps svg {
    width: 14px;
    height: 14px;
}

.pbl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 16px;
}

.pbl .pbl-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--pbl-text-secondary);
    cursor: pointer;
    user-select: none;
}

.pbl .pbl-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 5px;
    border: 1.5px solid var(--pbl-border-strong);
    background: var(--pbl-surface);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .15s;
}

.pbl .pbl-check input[type="checkbox"]:checked {
    background: var(--pbl-accent);
    border-color: var(--pbl-accent);
}

.pbl .pbl-check input[type="checkbox"]:checked::after {
    content: "";
    width: 9px;
    height: 5px;
    border: 2px solid #fff;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* The Cloudflare widget (data-size="flexible") is 65px high; the height is reserved so nothing moves when it loads */
.pbl-turnstile {
    min-height: 65px;
    margin: 0 0 16px;
}

.pbl .pbl-btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    background: var(--pbl-accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 16px -6px rgba(13, 111, 190, .7);
    transition: background .15s, transform .05s;
}

.pbl .pbl-btn:hover {
    background: var(--pbl-accent-dark);
}

.pbl .pbl-btn:active {
    transform: translateY(1px);
}

.pbl-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--pbl-text-muted);
    font-size: 12px;
}

.pbl-or::before,
.pbl-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pbl-border);
}

.pbl-sso {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pbl .pbl-sso button {
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--pbl-border-strong);
    background: var(--pbl-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pbl-text);
    transition: background .15s, border-color .15s;
}

.pbl .pbl-sso button:only-child {
    grid-column: 1 / -1;
}

.pbl .pbl-sso button:hover {
    background: var(--pbl-surface-muted);
    border-color: var(--pbl-accent-mid);
}

.pbl-sso svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.pbl-foot {
    display: none;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--pbl-text-muted);
}

/* ---------- Loading panel ("Authenticating...") ----------
   Built by $.fn.pbLoadPanel with blockUI while the form is posted. blockUI writes the overlay colour inline, hence
   the !important; the spinner is defined here so it does not depend on style.min.css or the old theme.css. */
body.pbl-body .blockUI.blockOverlay {
    background-color: var(--pbl-bg) !important;
    opacity: .78 !important;
}

body.pbl-body .blockUI.blockMsg {
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--pbl-text) !important;
    text-align: center;
}

body.pbl-body .loading-message {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 14px 22px;
    border: 1px solid var(--pbl-border-strong);
    border-radius: 12px;
    background: var(--pbl-surface);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .35);
    color: var(--pbl-text);
    font-family: var(--pbl-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

body.pbl-body .loading-message .sk-spinner {
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    height: auto;
    margin: 0;
}

body.pbl-body .loading-message .sk-spinner div {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--pbl-accent);
    animation: pbl-bounce 1.2s infinite ease-in-out both;
}

body.pbl-body .loading-message .sk-spinner .sk-bounce1 {
    animation-delay: -.32s;
}

body.pbl-body .loading-message .sk-spinner .sk-bounce2 {
    animation-delay: -.16s;
}

@keyframes pbl-bounce {
    0%, 80%, 100% {
        transform: scale(.45);
        opacity: .45;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pbl-body .loading-message .sk-spinner div {
        animation-duration: 2.4s;
    }
}

@media (max-width: 960px) {
    .pbl {
        grid-template-columns: minmax(0, 1fr);
    }

    .pbl-brand {
        display: none;
    }

    .pbl-side {
        padding: 16px 20px;
    }

    .pbl-foot {
        display: flex;
    }
}

@media (max-width: 420px) {
    .pbl-card h2 {
        font-size: 21px;
    }
}
