/* ============================================================
   BetterJobs – Auth Pages  (Login / Register / Profile)
   Production-Ready · Split-Screen Layout · Mobile Responsive
   ============================================================ */

/* ── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.bj-auth-page-body {
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
    background: #f0f4ff;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   SPLIT SCREEN WRAPPER
   ══════════════════════════════════════════════════════════ */
.bj-auth-wrap {
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   LEFT PANEL  –  Visual / Brand / Journey
   ══════════════════════════════════════════════════════════ */
.bj-auth-visual {
    display: none; /* hidden on mobile, flex on md+ */
    flex-direction: column;
    width: 46%;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

/* Hero image */
.bj-auth-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: .55;
    transition: opacity .4s;
}

/* Dark gradient overlay for text legibility */
.bj-auth-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(15,23,42,.60) 0%,
        rgba(30,58,138,.55) 50%,
        rgba(15,23,42,.80) 100%
    );
    pointer-events: none;
}

/* Content inside left panel */
.bj-auth-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 44px;
}

/* Logo top-left */
.bj-auth-visual-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: auto;
}
.bj-auth-visual-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}
.bj-auth-visual-logo span {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}

/* Headline block */
.bj-auth-headline {
    margin-top: auto;
    padding-bottom: 28px;
}
.bj-auth-headline h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.22;
    letter-spacing: -.5px;
    margin-bottom: 12px;
}
.bj-auth-headline h2 span {
    color: #4ade80;
}
.bj-auth-headline p {
    font-size: 15px;
    color: rgba(255,255,255,.78);
    line-height: 1.6;
    max-width: 360px;
}

/* Journey steps */
.bj-journey {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
}
.bj-journey-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    position: relative;
}
.bj-journey-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 44px;
    bottom: -14px;
    width: 2px;
    background: rgba(255,255,255,.18);
}
.bj-journey-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.bj-journey-step.done .bj-journey-num {
    background: #16a34a;
    border-color: #16a34a;
}
.bj-journey-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.bj-journey-text span {
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.5;
}

/* Candidate avatars + social proof */
.bj-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 16px 18px;
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
}
.bj-avatar-stack {
    display: flex;
}
.bj-avatar-stack img,
.bj-avatar-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.80);
    object-fit: cover;
    margin-left: -10px;
    background: linear-gradient(135deg, #6366f1, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.bj-avatar-stack :first-child { margin-left: 0; }
.bj-social-proof-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.bj-social-proof-text span {
    font-size: 12px;
    color: rgba(255,255,255,.65);
}

/* Trust badges row */
.bj-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 4px;
}
.bj-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,.78);
    font-weight: 500;
}
.bj-trust-badge svg {
    width: 15px;
    height: 15px;
    color: #4ade80;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RIGHT PANEL  –  Forms
   ══════════════════════════════════════════════════════════ */
.bj-auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: #f8faff;
    overflow-y: auto;
    min-height: 100vh;
}

/* Mobile-only top brand bar */
.bj-auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    text-decoration: none;
}
.bj-auth-mobile-brand img {
    height: 32px;
    width: auto;
}
.bj-auth-mobile-brand span {
    font-size: 20px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -.4px;
}

/* Card wrapper */
.bj-auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06),
                0 8px 32px rgba(30,58,138,.10);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
}

/* ── Tabs ───────────────────────────────────────────────── */
.bj-auth-tabs {
    display: flex;
    background: #f1f5fd;
    border-bottom: 1px solid #e2e8f0;
}
.bj-auth-tab {
    flex: 1;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: #64748b;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s, background .2s;
    letter-spacing: .2px;
}
.bj-auth-tab:hover { color: #1e3a8a; background: #e8eeff; }
.bj-auth-tab.active {
    color: #1e3a8a;
    border-bottom-color: #2563eb;
    background: #fff;
}

/* ── Panels ─────────────────────────────────────────────── */
.bj-auth-panel {
    display: none;
    padding: 28px 32px 32px;
}
.bj-auth-panel.active { display: block; }

.bj-auth-panel-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
    letter-spacing: -.3px;
}
.bj-auth-panel-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ── Form ───────────────────────────────────────────────── */
.bj-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.bj-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bj-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.bj-field label .req { color: #dc2626; margin-left: 2px; }
.bj-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.bj-field-wrap .field-icon {
    position: absolute;
    left: 13px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}
.bj-field input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8faff;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.bj-field input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(37,99,235,.10);
}
.bj-field input.error {
    border-color: #ef4444;
    background: #fff5f5;
}
.bj-pw-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #94a3b8;
    background: none;
    border: none;
    padding: 2px;
    display: flex;
    align-items: center;
}
.bj-pw-toggle:hover { color: #2563eb; }

.bj-field-error {
    font-size: 11.5px;
    color: #dc2626;
    display: none;
    padding-left: 2px;
}
.bj-field-error.visible { display: block; }

/* ── Alert ──────────────────────────────────────────────── */
.bj-auth-alert {
    display: none;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.5;
}
.bj-auth-alert.visible { display: flex; }
.bj-auth-alert.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.bj-auth-alert.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.bj-auth-alert svg     { flex-shrink: 0; margin-top: 1px; }

/* ── Submit button ───────────────────────────────────────── */
.bj-auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    letter-spacing: .2px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.bj-auth-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .2s;
}
.bj-auth-btn:hover { box-shadow: 0 6px 20px rgba(37,99,235,.35); transform: translateY(-1px); }
.bj-auth-btn:active { transform: translateY(0); }
.bj-auth-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

.bj-spinner {
    width: 16px; height: 16px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bj-spin .7s linear infinite;
    display: none;
    flex-shrink: 0;
}
.bj-spinner.active { display: block; }
@keyframes bj-spin { to { transform: rotate(360deg); } }
.btn-text { transition: opacity .15s; }

/* ── In-form trust strip ─────────────────────────────────── */
.bj-form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 0;
    border-top: 1px solid #f1f5fd;
    flex-wrap: wrap;
}
.bj-form-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}
.bj-form-trust-item svg {
    width: 14px;
    height: 14px;
    color: #16a34a;
    flex-shrink: 0;
}

/* ── Footer link ─────────────────────────────────────────── */
.bj-auth-footer {
    text-align: center;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 18px;
}
.bj-auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.bj-auth-footer a:hover { text-decoration: underline; }

/* ── Forgot password ─────────────────────────────────────── */
.bj-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
}
.bj-forgot-row a {
    font-size: 12.5px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.bj-forgot-row a:hover { text-decoration: underline; }

/* ── Right-panel bottom trust bar ────────────────────────── */
.bj-panel-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.bj-panel-trust-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.bj-panel-trust-bar-item svg {
    width: 16px;
    height: 16px;
    color: #16a34a;
}

/* ══════════════════════════════════════════════════════════
   CANDIDATE PROFILE PAGE
   ══════════════════════════════════════════════════════════ */
.bj-auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 60%, #faf5ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 48px;
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
}
.bj-profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 20px 48px -8px rgba(30,58,138,.10);
    width: 100%;
    max-width: 540px;
    overflow: hidden;
}
.bj-profile-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 26px 32px;
    color: #fff;
}
.bj-profile-header h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.bj-profile-header p  { margin: 0 0 16px; font-size: 13px; color: rgba(255,255,255,.78); }
.bj-progress-bar  { height: 6px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; }
.bj-progress-fill { height: 100%; background: #4ade80; border-radius: 99px; transition: width .4s ease; }
.bj-profile-body  { padding: 32px; }

/* Resume upload zone */
.bj-resume-zone {
    border: 2px dashed #c7d7f8;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f8faff;
    position: relative;
}
.bj-resume-zone:hover, .bj-resume-zone.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}
.bj-resume-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.bj-resume-icon {
    width: 42px; height: 42px;
    background: #dbeafe;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    color: #2563eb;
}
.bj-resume-zone h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #1e293b; }
.bj-resume-zone p  { margin: 0; font-size: 12px; color: #94a3b8; }
.bj-resume-chosen {
    display: none;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    padding: 11px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #15803d;
    font-weight: 500;
}
.bj-resume-chosen.visible  { display: flex; }
.bj-resume-remove {
    margin-left: auto;
    cursor: pointer;
    color: #dc2626;
    background: none;
    border: none;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}
.bj-profile-skip {
    text-align: center;
    margin-top: 16px;
    font-size: 12.5px;
    color: #94a3b8;
}
.bj-profile-skip a { color: #64748b; text-decoration: underline; cursor: pointer; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    .bj-auth-visual       { display: flex; }
    .bj-auth-mobile-brand { display: none; }
}
@media (max-width: 899px) {
    .bj-auth-form-panel {
        padding: 28px 16px;
        min-height: 100vh;
    }
}
@media (max-width: 480px) {
    .bj-auth-panel, .bj-profile-body { padding: 22px 18px 28px; }
    .bj-auth-panel-title              { font-size: 18px; }
    .bj-auth-card                     { border-radius: 16px; }
    .bj-form-trust                    { gap: 10px; }
}
