/* Job Portal - candidate/PRO-facing pages under /portal/*. Deliberately its own visual language
   (not the internal RMS admin theme) - see the approved design mockup this was ported from. */
.job-portal {
    --jp-bg: #eef3f4;
    --jp-surface: #ffffff;
    --jp-surface-2: #f5f8f9;
    --jp-border: #dde5e7;
    --jp-text: #142433;
    --jp-text-muted: #5b6e77;
    --jp-text-faint: #8a9aa1;
    --jp-brand: #0f6e6b;
    --jp-brand-dark: #0a4f4d;
    --jp-brand-tint: #e2f0ef;
    --jp-accent: #e08a2a;
    --jp-accent-dark: #b96f1c;
    --jp-accent-tint: #fbead4;
    --jp-success: #2e9e6d;
    --jp-success-tint: #e3f5ec;
    --jp-danger: #c0533e;
    --jp-shadow: 0 1px 2px rgba(20,36,51,0.04), 0 8px 24px -12px rgba(20,36,51,0.12);

    background: var(--jp-bg);
    color: var(--jp-text);
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
    /* The app's global stylesheet sets overflow:hidden on html/body - every admin page scrolls via
       its own .content-area instead, but PortalLayout/ClientPortalLayout (both wrap their pages in
       this .job-portal div) have no such region of their own. min-height:100vh let the div grow
       taller than the screen with nothing able to scroll to the rest of it, so content past the
       fold (nav items on a narrow/mobile screen, long forms, tables) was simply unreachable.
       Making this the scroll region itself - fixed at 100vh, scrolling internally - mirrors how
       .content-area already works for the main admin shell. */
    height: 100vh;
    overflow-y: auto;
}
.job-portal h1, .job-portal h2, .job-portal h3, .job-portal h4, .job-portal h5, .job-portal h6 {
    font-family: "Sora", "IBM Plex Sans", sans-serif;
}
.job-portal .tabular { font-variant-numeric: tabular-nums; }

.jp-topbar {
    background: var(--jp-surface);
    border-bottom: 1px solid var(--jp-border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.jp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--jp-brand-dark);
    flex-shrink: 0;
    text-decoration: none;
}
.jp-brand-logo {
    height: 38px; width: auto; max-width: 160px; object-fit: contain; border-radius: 6px; flex-shrink: 0;
}
.jp-brand-name {
    min-width: 0; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 700px) { .jp-brand-name { max-width: 170px; font-size: 16px; } }
.jp-brand-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--jp-brand) 0%, var(--jp-brand-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.jp-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }
.jp-nav-link { font-size: 14px; font-weight: 500; color: var(--jp-text-muted); white-space: nowrap; text-decoration: none; }
.jp-nav-link.active { color: var(--jp-brand-dark); font-weight: 600; }
.jp-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--jp-brand-tint); color: var(--jp-brand-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}

.jp-page { max-width: 1280px; margin: 0 auto; padding: 28px 28px 60px; }
.jp-layout { display: grid; grid-template-columns: 272px 1fr; gap: 24px; }
@media (max-width: 900px) { .jp-layout { grid-template-columns: 1fr; } }

.jp-filters {
    background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 14px;
    padding: 20px; align-self: start; position: sticky; top: 20px;
}
.jp-filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.jp-filters-head h4 { font-size: 15px; margin: 0; }
.jp-clear-link { font-size: 12.5px; color: var(--jp-brand); font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; }
.jp-filter-group { margin-bottom: 20px; }
.jp-filter-group:last-child { margin-bottom: 0; }
.jp-filter-label {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--jp-text-faint); margin-bottom: 10px; display: block;
}
.jp-check-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0; font-size: 13.5px; color: var(--jp-text); cursor: pointer; width: 100%; background: none; border: none; text-align: left;
}
.jp-check-row .jp-box {
    width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--jp-border);
    flex-shrink: 0; margin-right: 9px; display: inline-flex; align-items: center; justify-content: center;
}
.jp-check-row.checked .jp-box { background: var(--jp-brand); border-color: var(--jp-brand); color: #fff; }
.jp-check-row-main { display: flex; align-items: center; }
.jp-check-count { color: var(--jp-text-faint); font-size: 12px; }
.jp-gender-pills { display: flex; gap: 8px; }
.jp-pill-btn {
    flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 0;
    border-radius: 8px; border: 1.5px solid var(--jp-border); color: var(--jp-text-muted); background: var(--jp-surface); cursor: pointer;
}
.jp-pill-btn.sel { background: var(--jp-brand-tint); border-color: var(--jp-brand); color: var(--jp-brand-dark); }

.jp-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 720px) { .jp-stat-row { grid-template-columns: repeat(2, 1fr); } }
.jp-stat-tile {
    background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 14px;
    padding: 16px; display: flex; align-items: center; gap: 12px;
}
.jp-stat-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.jp-stat-icon.brand { background: var(--jp-brand-tint); color: var(--jp-brand-dark); }
.jp-stat-icon.accent { background: var(--jp-accent-tint); color: var(--jp-accent-dark); }
.jp-stat-icon.success { background: var(--jp-success-tint); color: var(--jp-success); }
.jp-stat-value { font-size: 21px; font-weight: 700; line-height: 1.1; }
.jp-stat-label { font-size: 12px; color: var(--jp-text-muted); margin-top: 2px; }

.jp-list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.jp-list-head h2 { font-size: 19px; margin: 0; }
.jp-list-head .jp-count { color: var(--jp-text-muted); font-weight: 500; font-size: 14px; }

.jp-job-card {
    background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 16px;
    padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--jp-shadow);
    display: flex; gap: 18px;
}
.jp-job-flag {
    width: 52px; height: 52px; border-radius: 12px; background: var(--jp-surface-2);
    display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.jp-job-main { flex: 1; min-width: 0; }
.jp-job-top-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.jp-job-title { font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.jp-job-sub { font-size: 13px; color: var(--jp-text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jp-job-sub .jp-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--jp-text-faint); }
.jp-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.jp-badge.jp-new { background: var(--jp-accent-tint); color: var(--jp-accent-dark); }
.jp-badge.jp-urgent { background: #fde3e0; color: var(--jp-danger); }
.jp-job-meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.jp-meta-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--jp-text-muted); }
.jp-meta-item strong { color: var(--jp-text); font-weight: 600; }
.jp-job-bottom-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 10px; }
.jp-job-expiry { font-size: 12px; color: var(--jp-text-faint); }
.jp-job-actions { display: flex; gap: 10px; flex-shrink: 0; }

.jp-btn {
    font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 9px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.jp-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.jp-btn-primary { background: var(--jp-accent); color: #fff; }
.jp-btn-ghost { background: transparent; color: var(--jp-text-muted); border: 1.5px solid var(--jp-border); }

.jp-apply-status {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--jp-success);
    background: var(--jp-success-tint); padding: 8px 14px; border-radius: 9px;
}

.jp-empty { text-align: center; padding: 60px 20px; color: var(--jp-text-muted); }

/* Auth pages (login/register/complete-profile) */
.jp-auth-wrap { max-width: 460px; margin: 60px auto; padding: 0 20px; }
.jp-auth-card {
    background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 18px;
    padding: 32px 30px; box-shadow: var(--jp-shadow);
}
.jp-auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.jp-auth-card .jp-sub { font-size: 13.5px; color: var(--jp-text-muted); margin: 0 0 24px; }
.jp-field { margin-bottom: 16px; }
.jp-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--jp-text-muted); margin-bottom: 6px; }
.jp-field input, .jp-field select, .jp-field textarea {
    width: 100%; padding: 10px 12px; border-radius: 9px; border: 1.5px solid var(--jp-border);
    font-size: 14px; font-family: inherit; background: var(--jp-surface); color: var(--jp-text);
}
.jp-field input:focus, .jp-field select:focus, .jp-field textarea:focus { outline: none; border-color: var(--jp-brand); }
.jp-error { background: #fde3e0; color: var(--jp-danger); font-size: 13px; padding: 10px 14px; border-radius: 9px; margin-bottom: 16px; }
/* Same box, a neutral/informational tone - being signed out because the same account logged in
   elsewhere isn't a mistake the user made, unlike a wrong password. */
.jp-error-info { background: #e3f0fd; color: #0a6ebd; }
.jp-success-box { background: var(--jp-success-tint); color: var(--jp-success); font-size: 13.5px; padding: 12px 14px; border-radius: 9px; margin-bottom: 16px; }
.jp-auth-footer { text-align: center; font-size: 13px; color: var(--jp-text-muted); margin-top: 18px; }
.jp-auth-footer a { color: var(--jp-brand); font-weight: 600; text-decoration: none; }

/* Applications list */
.jp-app-row {
    background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 14px;
    padding: 16px 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.jp-status-pill { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.jp-status-pill.pending { background: var(--jp-accent-tint); color: var(--jp-accent-dark); }
.jp-status-pill.assigned { background: var(--jp-success-tint); color: var(--jp-success); }
.jp-status-pill.rejected { background: #fde3e0; color: var(--jp-danger); }

/* Job detail page */
.jp-crumb { font-size: 13px; color: var(--jp-text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 18px; text-decoration: none; width: fit-content; }
.jp-crumb:hover { color: var(--jp-brand-dark); }

.jp-hero {
    background: linear-gradient(135deg, var(--jp-brand-dark) 0%, var(--jp-brand) 100%);
    border-radius: 20px; padding: 32px 34px; color: #fff; position: relative; overflow: hidden;
    display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.jp-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
}
.jp-hero-left { display: flex; gap: 18px; position: relative; z-index: 1; }
.jp-hero-flag { width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.jp-hero-eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 6px; }
.jp-hero-title { font-size: 26px; font-weight: 800; text-wrap: balance; margin-bottom: 8px; color: #fff; }
.jp-hero-sub { font-size: 14.5px; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jp-hero-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.jp-hero-badges { display: flex; gap: 8px; position: relative; z-index: 1; align-self: flex-start; }
.jp-badge-open { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,0.18); color: #fff; }

.jp-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin-top: 22px; }
@media (max-width: 860px) { .jp-detail-layout { grid-template-columns: 1fr; } }

.jp-detail-card { background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 16px; padding: 24px 26px; box-shadow: var(--jp-shadow); margin-bottom: 20px; }
.jp-detail-card h3 { font-size: 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.jp-detail-card h3 .jp-dot-marker { width: 6px; height: 6px; border-radius: 50%; background: var(--jp-accent); }

.jp-fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
.jp-fact { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px dashed var(--jp-border); }
.jp-fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--jp-text-faint); font-weight: 600; }
.jp-fact-value { font-size: 14.5px; font-weight: 600; color: var(--jp-text); }
.jp-fact-value.accent { color: var(--jp-accent-dark); }

.jp-chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.jp-chip { background: var(--jp-surface-2); border: 1px solid var(--jp-border); border-radius: 10px; padding: 9px 13px; font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--jp-text); }
.jp-chip strong { color: var(--jp-text); }
.jp-chip .jp-chip-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--jp-brand); }

.jp-responsibilities { font-size: 14px; line-height: 1.7; color: var(--jp-text-muted); white-space: pre-wrap; margin: 0; }

.jp-side-card { background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 16px; padding: 22px; box-shadow: var(--jp-shadow); position: sticky; top: 20px; }
.jp-side-stat-row { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.jp-side-stat { display: flex; align-items: center; gap: 12px; }
.jp-side-stat-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--jp-brand-tint); color: var(--jp-brand-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jp-side-stat-ic.accent { background: var(--jp-accent-tint); color: var(--jp-accent-dark); }
.jp-side-stat-val { font-size: 17px; font-weight: 700; line-height: 1.1; }
.jp-side-stat-lbl { font-size: 11.5px; color: var(--jp-text-muted); margin-top: 2px; }

.jp-vacancy-bar { height: 8px; border-radius: 999px; background: var(--jp-surface-2); overflow: hidden; margin: 6px 0 4px; }
.jp-vacancy-fill { height: 100%; background: linear-gradient(90deg, var(--jp-brand) 0%, var(--jp-accent) 100%); border-radius: 999px; }
.jp-vacancy-txt { font-size: 12px; color: var(--jp-text-muted); display: flex; justify-content: space-between; }

.jp-side-btn { font-size: 14.5px; font-weight: 700; padding: 13px 0; border-radius: 11px; border: none; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; margin-top: 16px; }
.jp-side-btn.jp-btn-primary { background: var(--jp-accent); color: #fff; }
.jp-side-btn.jp-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.jp-side-btn.jp-btn-ghost { background: var(--jp-brand-tint); color: var(--jp-brand-dark); }
.jp-side-applied { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--jp-success); background: var(--jp-success-tint); padding: 12px 0; border-radius: 11px; margin-top: 16px; }
.jp-closing-note { font-size: 12px; color: var(--jp-text-faint); text-align: center; margin-top: 10px; }

/* Profile page (tabbed) */
.jp-profile-shell { display: grid; grid-template-columns: 220px 1fr; background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 16px; box-shadow: var(--jp-shadow); overflow: hidden; }
@media (max-width: 760px) { .jp-profile-shell { grid-template-columns: 1fr; } }
.jp-profile-nav { background: var(--jp-surface-2); border-right: 1px solid var(--jp-border); padding: 16px 0; }
@media (max-width: 760px) { .jp-profile-nav { border-right: none; border-bottom: 1px solid var(--jp-border); display: flex; overflow-x: auto; } }
.jp-profile-nav-item { display: block; width: 100%; text-align: left; padding: 11px 20px; font-size: 13.5px; font-weight: 600; color: var(--jp-text-muted); border-left: 3px solid transparent; background: none; border-top: none; border-bottom: none; border-right: none; cursor: pointer; white-space: nowrap; }
.jp-profile-nav-item.active { color: var(--jp-brand-dark); background: var(--jp-brand-tint); border-left-color: var(--jp-brand); }
.jp-profile-body { padding: 26px 30px; }
.jp-profile-body h3 { font-size: 16px; margin-bottom: 4px; }
.jp-profile-body p.jp-sub2 { font-size: 12.5px; color: var(--jp-text-muted); margin: 0 0 20px; }

.jp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 560px) { .jp-form-grid { grid-template-columns: 1fr; } }
.jp-form-grid .jp-full { grid-column: 1 / -1; }

.jp-rep-card { border: 1px solid var(--jp-border); border-radius: 11px; padding: 16px 18px; margin-bottom: 12px; position: relative; }
.jp-rep-remove { position: absolute; top: 12px; right: 14px; color: var(--jp-danger); font-size: 12px; font-weight: 600; background: none; border: none; cursor: pointer; }
.jp-add-row-btn { border: 1.5px dashed var(--jp-border); border-radius: 10px; padding: 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--jp-brand); cursor: pointer; background: var(--jp-brand-tint); width: 100%; }

.jp-upload-field { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.jp-upload-preview { width: 76px; height: 76px; border-radius: 10px; border: 1.5px dashed var(--jp-border); background: var(--jp-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: var(--jp-text-faint); font-size: 22px; }
.jp-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.jp-upload-controls { flex: 1; }
.jp-upload-label { display: block; font-size: 12px; font-weight: 700; color: var(--jp-text-muted); margin-bottom: 6px; }
.jp-upload-controls input[type="file"] { font-size: 12.5px; }
.jp-upload-remove { font-size: 12px; color: var(--jp-danger); background: none; border: none; cursor: pointer; margin-left: 10px; }
.jp-upload-error { display: block; color: var(--jp-danger); font-size: 11.5px; margin-top: 4px; }

/* Linked-account (existing record) banner */
.jp-linked-banner { background: linear-gradient(135deg, var(--jp-brand-dark), var(--jp-brand)); color: #fff; padding: 18px 24px; border-radius: 14px; display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.jp-linked-banner .jp-lb-ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.jp-linked-banner .jp-lb-t { font-weight: 700; font-size: 14px; }
.jp-linked-banner .jp-lb-s { font-size: 12.5px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.jp-doc-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--jp-surface-2); border: 1px solid var(--jp-border); border-radius: 8px; padding: 6px 11px; font-size: 12px; margin: 4px 6px 0 0; color: var(--jp-text); text-decoration: none; }

/* Application progress track */
.jp-progress-track { display: flex; align-items: center; margin: 14px 0 6px; }
.jp-progress-step { flex: 1; text-align: center; position: relative; }
.jp-progress-step .jp-circ { width: 26px; height: 26px; border-radius: 50%; background: var(--jp-surface-2); border: 2px solid var(--jp-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: 12px; font-weight: 700; color: var(--jp-text-faint); position: relative; z-index: 1; }
.jp-progress-step.jp-done .jp-circ { background: var(--jp-brand); border-color: var(--jp-brand); color: #fff; }
.jp-progress-step.jp-current .jp-circ { background: var(--jp-accent); border-color: var(--jp-accent); color: #fff; }
.jp-progress-step .jp-lbl { font-size: 10.5px; color: var(--jp-text-muted); font-weight: 600; }
.jp-progress-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--jp-border); z-index: 0; }
.jp-progress-step:first-child::before { display: none; }
.jp-progress-step.jp-done::before { background: var(--jp-brand); }
.jp-interview-box { background: var(--jp-surface-2); border-radius: 10px; padding: 12px 14px; margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.jp-interview-box .jp-k { color: var(--jp-text-faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.03em; display: block; }
.jp-interview-box .jp-v { font-weight: 600; color: var(--jp-text); }

/* Split-screen login shell (Candidate Portal + Client Portal) - same structure as the main RMS
   staff login (Login.razor.css: login-shell/login-form-panel/login-art-panel), themed with the
   portal's own jp- tokens instead of the admin theme's purple/blue so it still reads as a
   distinct product, not the internal app. UPDATE: per explicit request, the login pages now
   match the staff Login.razor purple/blue palette exactly - these --jp-login-* tokens are
   scoped to .jp-login-page only, so the rest of the job portal (job listings, applications,
   etc.) keeps its teal/orange --jp-brand/--jp-accent tokens untouched. */
.jp-login-page {
    --jp-login-brand: #896ED7;
    --jp-login-brand-dark: #5E779B;
    --jp-login-tint: #efeafc;
    /* Same reasoning as .job-portal above - html/body has overflow:hidden app-wide, so this needs
       to be its own scroll region or a longer form (validation errors, registration fields) on a
       short/mobile screen has nowhere to scroll to. */
    height: 100vh; overflow-y: auto; display: flex; background: var(--jp-bg);
}
.jp-login-shell { display: flex; flex: 1; min-height: 100vh; }
.jp-login-form-panel { flex: 1 1 50%; display: flex; flex-direction: column; padding: 48px 6vw; min-width: 0; background: var(--jp-bg); }
/* Identical markup/sizing to the staff Login.razor logo (.login-logo/.login-logo-mark/
   .login-logo-text) so "Manpower MIS" reads the same across every login page. */
.jp-login-logo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; text-decoration: none; }
.jp-login-logo-mark { height: 88px; width: auto; object-fit: contain; }
.jp-login-logo-text { font-weight: 700; font-size: calc(2.8rem - 2px); color: #0D95E9; }
.jp-login-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 400px; width: 100%; margin: 0 auto; }
.jp-login-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jp-login-brand); margin-bottom: 10px; }
.jp-login-title { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: var(--jp-text); font-family: "Sora", sans-serif; }
.jp-login-subtitle { color: var(--jp-text-muted); margin: 0 0 26px; font-size: 14px; }
.jp-login-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.jp-login-field label { font-size: 12.5px; font-weight: 600; color: var(--jp-text-muted); }
.jp-login-pill { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 48px; border-radius: 999px; border: 1.5px solid var(--jp-border); background: var(--jp-surface); transition: border-color 0.15s, box-shadow 0.15s; }
.jp-login-pill:focus-within { border-color: var(--jp-login-brand); box-shadow: 0 0 0 3px var(--jp-login-tint); }
.jp-login-pill i { color: var(--jp-text-faint); font-size: 15px; flex-shrink: 0; }
.jp-login-pill input { flex: 1 1 auto; width: 100%; min-width: 0; border: none; background: transparent; outline: none; padding: 0; color: var(--jp-text); font-size: 14px; font-family: inherit; }
/* Neutralize the browser's default autofill background (shows as a light blue/yellow box
   behind the value) so it matches the plain input surface, same as staff Login.razor.css. */
.jp-login-pill input:-webkit-autofill,
.jp-login-pill input:-webkit-autofill:hover,
.jp-login-pill input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--jp-text);
    -webkit-box-shadow: 0 0 0 1000px var(--jp-surface) inset;
}
.jp-login-submit { align-self: flex-start; margin-top: 8px; height: 48px; padding: 0 52px; border: none; border-radius: 999px; background: linear-gradient(90deg, var(--jp-login-brand), var(--jp-login-brand-dark)); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: opacity 0.15s, transform 0.1s; }
.jp-login-submit:hover:not(:disabled) { opacity: 0.92; }
.jp-login-submit:active:not(:disabled) { transform: scale(0.99); }
.jp-login-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.jp-login-footnote { margin-top: 26px; font-size: 12.5px; color: var(--jp-text-faint); background: var(--jp-surface-2); border-radius: 10px; padding: 12px 14px; line-height: 1.5; }
.jp-login-copyright { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--jp-text-faint); }

.jp-login-art-panel { flex: 1 1 48%; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(155deg, var(--jp-login-brand) 0%, #6c73c4 50%, var(--jp-login-brand-dark) 100%); overflow: hidden; padding: 40px; }
.jp-login-blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); }
.jp-login-blob-1 { width: 260px; height: 260px; top: -60px; right: -80px; }
.jp-login-blob-2 { width: 180px; height: 180px; bottom: -60px; left: -50px; background: rgba(255,255,255,0.06); }
.jp-login-art-content { position: relative; z-index: 1; text-align: left; color: #fff; max-width: 320px; }
/* Separate classes for the actual logo <img> vs. the initials fallback <div> - same split as
   staff Login.razor's .login-art-logo-img/.login-art-logo-mark - so a broken/missing logo
   image doesn't inherit the fallback's bold centered font styling and render squeezed alt text. */
/* max-width/max-height + object-fit:contain instead of a fixed 84x84 cover box - a wide wordmark
   logo (any real client's logo can be almost any aspect ratio) was getting its edges cropped off
   to fill the square; this keeps the same 84px cap on height while letting the box grow wider. */
.jp-login-art-logo-img { max-width: 220px; max-height: 84px; width: auto; height: auto; border-radius: 12px; background: #fff; padding: 8px 14px; object-fit: contain; margin-bottom: 20px; }
.jp-login-art-logo-mark { width: 84px; height: 84px; border-radius: 18px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 700; font-family: "Sora", sans-serif; margin-bottom: 20px; }
.jp-login-art-title { font-size: 22px; font-weight: 700; margin: 0 0 18px; font-family: "Sora", sans-serif; }
.jp-login-art-list { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.jp-login-art-list span { display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.jp-login-art-list i { font-size: 14px; flex-shrink: 0; }

/* Job category search bar on /portal/jobs. */
.jp-search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.jp-search-input-wrap {
    flex: 1; display: flex; align-items: center; gap: 10px; background: var(--jp-surface);
    border: 1.5px solid var(--jp-border); border-radius: 11px; padding: 0 14px;
}
.jp-search-input-wrap i { color: var(--jp-text-faint); font-size: 15px; flex-shrink: 0; }
.jp-search-input-wrap input {
    flex: 1; border: none; outline: none; background: none; padding: 12px 0;
    font-size: 14px; font-family: inherit; color: var(--jp-text);
}
.jp-search-input-wrap:focus-within { border-color: var(--jp-brand); }
.jp-search-clear { background: none; border: none; color: var(--jp-text-faint); cursor: pointer; padding: 4px; display: flex; }
.jp-search-clear:hover { color: var(--jp-danger); }
.jp-search-bar .jp-btn-primary { padding: 0 22px; white-space: nowrap; }

/* Candidate dashboard (/portal/dashboard) - welcome banner + tabbed jobs/applications feed. */
.jp-welcome-card {
    background: linear-gradient(135deg, var(--jp-brand-dark) 0%, var(--jp-brand) 100%);
    color: #fff; border-radius: 16px; padding: 24px 26px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    box-shadow: var(--jp-shadow);
}
.jp-welcome-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; font-family: "Sora", sans-serif; }
.jp-welcome-card p { font-size: 13.5px; color: rgba(255,255,255,0.85); margin: 0 0 10px; }
.jp-welcome-card .jp-vacancy-bar { background: rgba(255,255,255,0.2); }
.jp-welcome-card .jp-vacancy-fill { background: #fff; }
.jp-welcome-card .jp-btn-primary { flex-shrink: 0; white-space: nowrap; }

.jp-dash-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--jp-border); margin-bottom: 16px; }
.jp-dash-tab {
    background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
    padding: 10px 4px; margin-right: 22px; font-size: 14px; font-weight: 600; color: var(--jp-text-muted);
}
.jp-dash-tab.active { color: var(--jp-brand-dark); border-bottom-color: var(--jp-brand); }

@media (max-width: 820px) {
    .jp-login-art-panel { display: none; }
    .jp-login-shell { max-width: 460px; margin: 0 auto; }
    .jp-login-form-panel { padding: 36px 28px; }
    .jp-login-form-wrap { max-width: none; }
}
