/* ==========================================================================
   jobseeker-login.css — jobseeker-login.php
   Palette-ready: every colour comes from css-new/palettes/theme-*.css.
   Part 1: login steps, OTP boxes, job-details modal (shared login pieces)
   Part 2: jobseeker login page layout (was an inline <style> in the PHP)
   Part 3: older login layout (.job-auth-layout / .auth-card) kept for any page
           that still uses it
   ========================================================================== */

/* ---------- Part 1: shared login pieces ---------- */
.jr-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* light tint of the accent fading into the page colour */
    background: linear-gradient(to bottom right,
        color-mix(in srgb, var(--theme-accent) 7%, var(--theme-page)),
        var(--theme-page));
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.login-step { display: none; animation: fadeIn 0.3s ease-out; }
.login-step.active { display: block; }
.login-step.hidden { display: none; }

.otp-digit {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--theme-border-strong);
    border-radius: 0.5rem;
    background-color: var(--theme-bg-surface);
    color: var(--theme-text-strong);
    transition: all 0.2s ease;
}
.otp-digit:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px var(--theme-focus-ring);
    transform: translateY(-2px);
}

/* Job details modal (apply flow) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    overflow: auto;
    background-color: rgb(0 0 0 / 0.6);
    padding-top: 50px;
}
.modal-content {
    background-color: var(--theme-bg-surface);
    margin: 5% auto;
    padding: 25px 35px;
    border: 1px solid var(--theme-border);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.3);
    animation: animatetop 0.4s;
    color: var(--theme-text);
}
@keyframes animatetop { from { top: -300px; opacity: 0; } to { top: 0; opacity: 1; } }
.modal-close-btn {
    color: var(--theme-text-faint);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: 0;
    cursor: pointer;
}
.modal-close-btn:hover,
.modal-close-btn:focus { color: var(--theme-text-strong); }
.modal-content h2 { color: var(--theme-heading); }
.modal-content h3 { color: var(--theme-accent); margin-top: 20px; margin-bottom: 10px; }
.modal-content ul { list-style-type: disc; padding-left: 20px; margin-top: 5px; }
.modal-content ol { list-style-type: decimal; padding-left: 20px; margin-top: 5px; }
.modal-content hr { border: 0; height: 1px; background: var(--theme-border); margin: 20px 0; }
@media (max-width: 500px) {
    .modal-content { width: 95%; padding: 20px; margin-top: 20px; }
}


/* ---------- Part 2: jobseeker login page ---------- */
.jr-login {
    /* page-level colours, all from the palette */
    --jr-cyan: var(--theme-accent);                                                         /* fills, borders */
    --jr-cyan-text: color-mix(in srgb, var(--theme-accent) 80%, var(--theme-text-strong));  /* accent text, readable on light */
    --jr-cyan-soft: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-bg-surface));
    --jr-line: color-mix(in srgb, var(--theme-accent) 22%, var(--theme-bg-surface));
    --jr-line-strong: color-mix(in srgb, var(--theme-accent) 38%, var(--theme-bg-surface));
    --jr-text: var(--theme-text-strong);
    --jr-muted: var(--theme-text);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px 96px;
    box-sizing: border-box;
    color: var(--jr-text);
}
html.dark .jr-login { --jr-cyan-text: var(--theme-accent); }

/* Top: job card / pitch + login card */
.jr-hero { display: flex; flex-direction: column; gap: 12px; }
.jr-pitch { display: none; }

.jr-card { background: var(--theme-bg-surface); border-radius: 14px; box-shadow: 0 6px 20px rgb(15 23 42 / 0.08); overflow: hidden; }
html.dark .jr-card { box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); border: 1px solid var(--theme-border); }
.jr-card__body { padding: 20px; }
.jr-card h1 { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: var(--theme-heading); }
.jr-card h2 { color: var(--theme-heading); }
.jr-card__sub { margin: -6px 0 12px; font-size: 14px; color: var(--jr-muted); display: none; }
.jr-card label.email-label { font-weight: 700; font-size: 14px; color: var(--jr-cyan-text); }
.jr-card input#email {
    height: 48px;
    border: 1px solid var(--jr-cyan);
    background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-bg-surface));
    color: var(--theme-text-strong);
    font-weight: 500;
    font-size: 15px;
}
.jr-card button#btn-send-otp {
    height: 48px;
    background: var(--theme-button-bg);
    color: var(--theme-button-text);
    font-weight: 500;
    font-size: 16px;
    border: 0;
}
.jr-card button#btn-send-otp:hover { background: var(--theme-button-hover); }
.jr-card__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--jr-muted); }
.jr-card__row button { min-height: 44px; padding: 0; background: none; border: 0; color: var(--jr-cyan-text); font-weight: 500; font-size: 14px; cursor: pointer; }
.jr-card__row a { color: var(--jr-cyan-text); font-weight: 500; }

/* Inputs, buttons and links used in the OTP / password steps */
.jr-input {
    border: 1px solid var(--theme-border-strong);
    background: var(--theme-bg-surface);
    color: var(--theme-text-strong);
}
.jr-input::placeholder { color: var(--theme-text-faint); }
.jr-login input:focus,
.jr-input:focus {
    outline: none;
    border-color: var(--jr-cyan);
    box-shadow: 0 0 0 3px var(--theme-focus-ring);
}
.jr-btn { background: var(--theme-button-bg); color: var(--theme-button-text); }
.jr-btn:hover { background: var(--theme-button-hover); }
.jr-link-btn { background: none; border: 0; color: var(--jr-cyan-text); cursor: pointer; }
.jr-link-btn:hover { color: var(--theme-text-strong); text-decoration: underline; }
.jr-eye { color: var(--theme-text-faint); }
.jr-eye:hover { color: var(--jr-cyan-text); }
.jr-login input[type="checkbox"] { accent-color: var(--theme-primary); }
.jr-otp-timer { color: var(--jr-cyan-text); }

/* Messages inside the login card (reset link sent, link expired ...) */
.jr-notice { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.jr-notice--ok    { background: color-mix(in srgb, #16a34a 12%, var(--theme-bg-surface)); color: #166534; }
.jr-notice--error { background: color-mix(in srgb, #dc2626 10%, var(--theme-bg-surface)); color: #b91c1c; }
html.dark .jr-notice--ok    { color: #86efac; }
html.dark .jr-notice--error { color: #fca5a5; }

/* Job card (apply flow) */
.jr-job { background: var(--theme-bg-surface); border: 1px solid var(--jr-line-strong); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.jr-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jr-cyan-text); }
.jr-job__head { display: flex; align-items: center; gap: 12px; }
.jr-job__logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--jr-cyan-soft); border: 1px solid var(--jr-line);
    display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; color: var(--jr-cyan-text); }
.jr-job__logo img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.jr-job__title { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--theme-heading); }
.jr-job__company { font-size: 14px; color: var(--jr-cyan-text); text-decoration: none; }
.jr-job__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jr-job__meta li { padding: 4px 9px; border-radius: 999px; background: var(--theme-bg-subtle); font-size: 12px; color: var(--theme-text); }
.jr-job__meta span { display: none; }
.jr-job__about { display: none; }
.jr-job .details-btn { align-self: flex-start; min-height: 32px; padding: 0; background: none; border: 0; color: var(--jr-cyan-text); font-size: 14px; font-weight: 500; cursor: pointer; }

/* Ad: clearly separated from the form, space reserved to avoid layout jumps */
.jr-ad { margin: 44px -16px 0; padding: 8px 0 14px; background: var(--theme-bg-subtle); border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border);
    text-align: center; min-height: 272px; }
.jr-has-job .jr-ad { margin-top: 32px; }
.jr-ad__label { display: block; margin-bottom: 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--theme-text-muted); }
.jr-ad ins.adsbygoogle { display: inline-block; width: 300px; height: 250px; }
.jr-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Content sections */
.jr-section { margin-top: 44px; }
.jr-section h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--theme-heading); }
.jr-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jr-feature { background: var(--theme-bg-surface); border: 1px solid var(--jr-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.jr-feature__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--jr-cyan-soft); color: var(--jr-cyan-text); display: flex; align-items: center; justify-content: center; }
.jr-feature h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--jr-text); }
.jr-feature p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--jr-muted); }
.jr-feature a { color: var(--jr-cyan-text); }

.jr-steps { list-style: none; margin: 0; padding: 0; }
.jr-step { display: flex; gap: 14px; }
.jr-step__rail { display: flex; flex-direction: column; align-items: center; }
.jr-step__num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--theme-button-bg); color: var(--theme-button-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.jr-step__line { width: 2px; flex-grow: 1; background: var(--jr-line-strong); }
.jr-step:last-child .jr-step__line { display: none; }
.jr-step__text { padding-bottom: 22px; }
.jr-step h3 { margin: 4px 0 2px; font-size: 16px; font-weight: 700; color: var(--jr-text); }
.jr-step p { margin: 0; font-size: 14px; color: var(--jr-muted); }

.jr-browse { display: grid; gap: 18px; }
.jr-browse h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--theme-text-muted); }
.jr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-chip { padding: 8px 14px; border-radius: 999px; background: var(--theme-bg-surface); border: 1px solid var(--jr-line-strong); color: var(--jr-cyan-text); font-size: 14px; text-decoration: none; }
.jr-chip:hover { background: var(--jr-cyan-soft); }

/* Premium band (.jr-premium-band — not .jr-premium, which is the header's Go Premium button): a deeper shade of the palette's promo-band colour */
.jr-premium-band {
    margin-top: 44px;
    background: color-mix(in srgb, var(--theme-band-bg) 68%, #000000);
    border-radius: 16px;
    padding: 22px 20px;
    color: var(--theme-band-text);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jr-premium-band .jr-eyebrow { color: color-mix(in srgb, var(--theme-band-text) 72%, transparent); font-size: 12px; }
.jr-premium-band h2 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--theme-band-text); }
.jr-premium-band p { margin: 0; font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--theme-band-text) 86%, transparent); }
.jr-premium-band a {
    align-self: flex-start;
    margin-top: 4px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--theme-band-text);
    color: color-mix(in srgb, var(--theme-band-bg) 68%, #000000);
    font-weight: 700;
    text-decoration: none;
}

.jr-faq { display: grid; gap: 12px; }
.jr-faq details { background: var(--theme-bg-surface); border: 1px solid var(--theme-border); border-radius: 12px; padding: 16px; }
.jr-faq summary { font-size: 15px; font-weight: 700; color: var(--jr-text); cursor: pointer; }
.jr-faq p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--jr-muted); }
.jr-faq a { color: var(--jr-cyan-text); }

.jr-pitch svg { color: var(--jr-cyan-text); flex-shrink: 0; }

/* ===== Desktop ===== */
@media (min-width: 900px) {
    .jr-login { padding: 48px 24px 64px; }
    .jr-hero { flex-direction: row; align-items: center; gap: 56px; }
    .jr-has-job .jr-hero { align-items: flex-start; gap: 48px; }
    .jr-hero__side { flex: 1 1 480px; min-width: 0; }
    .jr-hero__form { flex: 0 1 420px; min-width: 0; }

    .jr-pitch { display: flex; flex-direction: column; gap: 18px; }
    .jr-pitch .jr-eyebrow { font-size: 13px; }
    .jr-pitch__title { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--theme-heading); }
    .jr-pitch__text { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--jr-muted); }
    .jr-pitch ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
    .jr-pitch li { display: flex; align-items: center; gap: 10px; }

    .jr-card { border-radius: 16px; box-shadow: 0 10px 30px rgb(15 23 42 / 0.08); }
    .jr-card__body { padding: 28px; }
    .jr-card h1 { font-size: 24px; }
    .jr-has-job .jr-card__sub { display: block; }

    .jr-job { border-radius: 16px; padding: 28px; gap: 18px; }
    .jr-job .jr-eyebrow { font-size: 13px; }
    .jr-job__logo { width: 64px; height: 64px; border-radius: 14px; font-size: 22px; }
    .jr-job__title { font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
    .jr-job__company { font-size: 17px; }
    .jr-job__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .jr-job__meta li { display: flex; flex-direction: column; gap: 2px; border-radius: 10px; background: var(--theme-bg-subtle); padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--jr-text); }
    .jr-job__meta span { display: block; font-size: 12px; font-weight: 400; color: var(--theme-text-muted); }
    .jr-job__about { display: flex; flex-direction: column; gap: 6px; }
    .jr-job__about strong { font-size: 14px; }
    .jr-job__about p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--jr-muted); }
    .jr-job .details-btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--jr-line-strong); border-radius: 10px; background: var(--theme-bg-surface); font-size: 15px; }

    .jr-ad { margin: 56px 0 0; padding: 10px 16px 16px; min-height: 124px; }
    .jr-has-job .jr-ad { margin-top: 56px; }
    .jr-ad__label { font-size: 11px; margin-bottom: 8px; }
    .jr-ad ins.adsbygoogle { width: 728px; height: 90px; }

    .jr-section { margin-top: 72px; }
    .jr-section h2 { margin-bottom: 24px; font-size: 32px; letter-spacing: -.01em; }
    .jr-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .jr-feature { border-radius: 16px; padding: 22px; gap: 10px; }
    .jr-feature__icon { width: 44px; height: 44px; border-radius: 12px; }
    .jr-feature h3 { font-size: 17px; }
    .jr-feature p { font-size: 15px; line-height: 1.5; }

    .jr-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .jr-step { border-top: 3px solid var(--jr-cyan); padding-top: 16px; }
    .jr-step__rail { display: none; }
    .jr-step__text { padding-bottom: 0; }
    .jr-step__label { display: block; font-size: 14px; font-weight: 700; color: var(--jr-cyan-text); }
    .jr-step h3 { font-size: 18px; }
    .jr-step p { font-size: 15px; line-height: 1.5; }

    .jr-browse { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

    .jr-premium-band { margin-top: 72px; border-radius: 20px; padding: 36px 40px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
    .jr-premium__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
    .jr-premium-band h2 { font-size: 30px; }
    .jr-premium-band p { font-size: 16px; }
    .jr-premium-band a { align-self: center; margin-top: 0; padding: 14px 24px; }

    .jr-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .jr-faq details { border-radius: 14px; padding: 20px; }
}
@media (max-width: 899px) { .jr-step__label { display: none; } }
@media (max-width: 340px) { .jr-ad ins.adsbygoogle { width: 300px; } .jr-features { grid-template-columns: 1fr; } }


/* ---------- Part 3: older login layout (not used by jobseeker-login.php) ---------- */
.job-auth-layout { min-height: 100vh; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 1rem; box-sizing: border-box; }
.job-highlight, .auth-card {
    background: var(--theme-bg-surface);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.07);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.job-highlight { display: flex; gap: 24px; align-items: center; margin: 15px; padding: 32px 40px 22px 40px; }
.job-logo {
    width: 56px; height: 56px; min-width: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: var(--theme-button-bg);
    color: var(--theme-button-text);
    font-size: 2rem; font-weight: 700; letter-spacing: 2px;
}
.job-info { flex: 1; }
.company { font-weight: 700; color: var(--theme-accent); font-size: 1rem; }
.position { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.job-title { font-size: 1.25rem; font-weight: 700; color: var(--theme-heading); }
.job-badge { background: var(--theme-chip-bg); color: var(--theme-chip-text); font-weight: 600; font-size: 0.95rem; padding: 4px 13px; border-radius: 999px; }
.job-meta { display: flex; gap: 17px; flex-wrap: wrap; margin-top: 3px; color: var(--theme-text-muted); font-size: 0.98rem; }
.job-meta .fas { color: var(--theme-text-muted); opacity: 0.7; }
.details-btn {
    margin-top: 14px; padding: 6px 14px;
    background: transparent;
    border: 1.5px solid var(--theme-primary);
    color: var(--theme-link);
    border-radius: 6px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; font-size: 0.9rem;
}
.details-btn:hover { background: var(--theme-primary); color: #ffffff; }
.auth-card { padding: 36px 38px 30px 38px; margin: 0 auto 40px auto; text-align: center; position: relative; }
.auth-card h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.5px; color: var(--theme-heading); margin-bottom: 7px; }
.auth-desc, .auth-card p { font-size: 1.02rem; margin: 0 0 20px 0; color: var(--theme-text-muted); }
.auth-job-title, .auth-company { font-weight: 600; color: var(--theme-accent); }
.auth-form { display: flex; flex-direction: column; gap: 13px; align-items: center; }
.input-group { width: 100%; }
.auth-form input {
    width: 100%; padding: 11px 13px; font-size: 1rem;
    border-radius: 8px; border: 1.2px solid var(--theme-border-strong);
    background: var(--theme-bg-surface);
    color: var(--theme-text-strong);
    font-family: inherit; transition: .17s all;
}
.auth-form input:focus { border-color: var(--theme-link); box-shadow: 0 0 0 3px var(--theme-focus-ring); }
.primary-btn {
    background: var(--theme-button-bg);
    color: var(--theme-button-text); font-weight: 700; border-radius: 8px; border: none;
    font-size: 1rem; padding: 11px 0; width: 100%;
    margin-top: 4px; cursor: pointer;
    transition: background .18s, box-shadow .15s;
}
.primary-btn:hover { background: var(--theme-button-hover); }
@media (max-width: 500px) {
    .job-highlight, .auth-card { padding: 20px; border-radius: 16px; max-width: 100%; }
    .job-auth-layout { padding: 0 15px; }
    .job-highlight { flex-direction: column; text-align: center; gap: 16px; }
    .position { justify-content: center; }
    .job-meta { justify-content: center; }
}
@media (max-width: 360px) {
    .job-highlight, .auth-card { padding: 15px; }
    .position { flex-direction: column; gap: 8px; }
    .job-title { font-size: 1.1rem; }
    .job-badge { font-size: 0.85rem; }
    .auth-card h2 { font-size: 1.3rem; }
}
