/* Focused sign-in experience for the public jobseeker and employer portals. */
html body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) {
    --auth-canvas: #091812;
    --auth-canvas-deep: #06120d;
    --auth-surface: #10241c;
    --auth-surface-soft: #172f25;
    --auth-field: #142a21;
    --auth-ink: #f3faf6;
    --auth-muted: #b8cec3;
    --auth-placeholder: #99afa4;
    --auth-line: #355146;
    --auth-action-text: #ffffff;
    --auth-error: #ffb8b4;
    --auth-error-bg: #401d1c;
    --auth-error-line: #82403d;
    --auth-info: #d3e3ff;
    --auth-info-bg: #182b4a;
    --auth-info-line: #3e5d8f;
    --auth-success: #adf0c9;
    --auth-success-bg: #123825;
    --auth-success-line: #347652;
    --auth-shadow: 0 26px 68px rgba(0, 0, 0, .28);
    --auth-focus: 0 0 0 4px rgba(82, 202, 138, .2);
    color: var(--auth-ink) !important;
    background: linear-gradient(145deg, var(--auth-canvas-deep), var(--auth-canvas)) !important;
}

html[data-theme='light'] body.auth-page:is(.auth-page--jobseeker, .auth-page--employer),
html body.auth-page:is(.auth-page--jobseeker, .auth-page--employer).light {
    --auth-canvas: #f3f8f5;
    --auth-canvas-deep: #e8f1eb;
    --auth-surface: #ffffff;
    --auth-surface-soft: #edf5f0;
    --auth-field: #f7faf8;
    --auth-ink: #17281f;
    --auth-muted: #586b61;
    --auth-placeholder: #617369;
    --auth-line: #ccddd4;
    --auth-error: #8f211c;
    --auth-error-bg: #fff1f0;
    --auth-error-line: #e7bdb9;
    --auth-info: #234a88;
    --auth-info-bg: #f0f5ff;
    --auth-info-line: #c7d6ee;
    --auth-success: #08653b;
    --auth-success-bg: #ebf8f0;
    --auth-success-line: #b8dfc8;
    --auth-shadow: 0 24px 64px rgba(20, 52, 34, .13);
    background: linear-gradient(145deg, var(--auth-canvas-deep), var(--auth-canvas)) !important;
}

html body.auth-page--jobseeker {
    --auth-accent: #66d698;
    --auth-accent-soft: #183f2b;
    --auth-action: #087443;
    --auth-action-hover: #056136;
    --role-accent: #85e6ad;
}

html body.auth-page--employer {
    --auth-accent: #8ce4dc;
    --auth-accent-soft: #173e39;
    --auth-action: #0f766e;
    --auth-action-hover: #095e58;
    --role-accent: #f3cf67;
}

html[data-theme='light'] body.auth-page--jobseeker,
html body.auth-page--jobseeker.light {
    --auth-accent: #087443;
    --auth-accent-soft: #e6f5ec;
    --role-accent: #d9ffea;
}

html[data-theme='light'] body.auth-page--employer,
html body.auth-page--employer.light {
    --auth-accent: #075f59;
    --auth-accent-soft: #e1f3f0;
    --role-accent: #f3cf67;
}

html body.peso-product-ui.auth-page:is(.auth-page--jobseeker, .auth-page--employer) {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 !important;
    overflow-x: hidden;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-background { display: none; }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) :is(a, button, input):focus-visible {
    outline-color: var(--auth-accent) !important;
    box-shadow: var(--auth-focus) !important;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-toolbar {
    width: min(calc(100% - 40px), 1180px);
    min-height: 78px;
    grid-template-columns: 1fr auto 1fr;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) :is(.auth-back-link, .auth-theme-toggle) {
    min-height: 44px;
    color: var(--auth-ink) !important;
    background: var(--auth-surface);
    border-color: var(--auth-line);
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(8, 35, 22, .08);
    backdrop-filter: none;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) :is(.auth-back-link, .auth-theme-toggle):hover {
    color: var(--auth-ink) !important;
    background: var(--auth-surface-soft);
    border-color: var(--auth-accent);
    transform: translateY(-1px);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-back-link i,
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-theme-toggle i { color: var(--auth-accent); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-toolbar-brand strong { color: var(--auth-ink); }
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-toolbar-brand small { color: var(--auth-muted); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-toolbar-brand img {
    border-color: var(--auth-accent);
    box-shadow: 0 6px 18px rgba(15, 70, 43, .12);
}

html body.peso-product-ui.auth-page:is(.auth-page--jobseeker, .auth-page--employer) main.auth-shell {
    width: min(calc(100% - 40px), 1120px) !important;
    max-width: 1120px !important;
    min-height: 610px;
    margin: 12px auto 26px !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 22px;
    box-shadow: var(--auth-shadow);
}

html body.peso-product-ui.auth-page--jobseeker main.auth-shell {
    grid-template-columns: minmax(360px, .84fr) minmax(430px, 1.16fr);
}

html body.peso-product-ui.auth-page--employer main.auth-shell {
    grid-template-columns: minmax(470px, 1.08fr) minmax(420px, .92fr);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase {
    position: relative;
    min-height: 610px;
    justify-content: flex-start;
    padding: clamp(34px, 4vw, 50px);
    color: #ffffff;
    isolation: isolate;
}

body.auth-page--jobseeker .auth-showcase {
    background:
        radial-gradient(circle at 90% 7%, rgba(255,255,255,.13), transparent 16rem),
        linear-gradient(145deg, #064529, #087443 72%, #0b5e3a);
}

body.auth-page--employer .auth-showcase {
    background:
        linear-gradient(180deg, rgba(4,35,31,.42), rgba(4,35,31,.94)),
        image-set(
            url('../images/employer-hiring-team-1200.avif') type('image/avif'),
            url('../images/employer-hiring-team-1200.webp') type('image/webp'),
            url('../images/employer-hiring-team.png') type('image/png')
        ) center / cover no-repeat;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: inherit;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase > * {
    position: relative;
    z-index: 2;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase::after {
    right: -90px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.022);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase-brand {
    align-items: center;
    gap: 14px;
}

.auth-showcase-identity {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #ffffff !important;
    text-decoration: none;
}

.auth-showcase-identity img {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #f3cf67;
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(0,0,0,.2);
}

.auth-showcase-identity > span { display: grid; gap: 3px; min-width: 0; }
.auth-showcase-identity strong { color: #ffffff; font-size: .82rem; line-height: 1.1; }
.auth-showcase-identity small { color: #dceee7; font-size: .56rem; font-weight: 750; letter-spacing: .055em; line-height: 1.2; text-transform: uppercase; }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-role-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: #ffffff;
    background: rgba(4,35,29,.42);
    border-color: rgba(255,255,255,.26);
    font-size: .61rem;
    backdrop-filter: blur(8px);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-role-badge i { color: var(--role-accent); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase-copy {
    margin-top: auto;
    margin-bottom: auto;
    padding-block: 56px;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-eyebrow {
    margin-bottom: 12px;
    color: var(--role-accent);
    font-size: .67rem;
}

html body.peso-product-ui.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase h1 {
    max-width: 9.5ch;
    color: #ffffff !important;
    font-size: clamp(2.55rem, 4.1vw, 4.1rem) !important;
    line-height: .98 !important;
    letter-spacing: -.058em !important;
    text-wrap: balance;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase-copy > p:last-child {
    max-width: 42ch;
    margin-top: 18px;
    color: #dceee7;
    font-size: .9rem;
    line-height: 1.65;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-trust-note {
    margin-top: 0;
    padding-top: 18px;
    color: #dceee7;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: .66rem;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-trust-note i { color: var(--role-accent); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form-panel {
    min-width: 0;
    padding: clamp(36px, 5vw, 62px);
    color: var(--auth-ink);
    background: var(--auth-surface);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form-wrap { max-width: 410px; }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-kicker {
    margin-bottom: 9px;
    color: var(--auth-accent);
    font-size: .67rem;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form-heading h2 {
    color: var(--auth-ink) !important;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.05;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form-heading > p:last-child {
    margin-top: 11px;
    color: var(--auth-muted);
    font-size: .84rem;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-message {
    color: var(--auth-ink);
    border-radius: 12px;
    font-size: .76rem;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-message--error { color: var(--auth-error); background: var(--auth-error-bg); border-color: var(--auth-error-line); }
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-message--info { color: var(--auth-info); background: var(--auth-info-bg); border-color: var(--auth-info-line); }
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-message--success { color: var(--auth-success); background: var(--auth-success-bg); border-color: var(--auth-success-line); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form {
    margin-top: 26px;
    gap: 18px;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-field label { color: var(--auth-ink); }
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-label-row a { color: var(--auth-accent); }
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-label-row a:hover { color: var(--auth-accent); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-input-wrap {
    min-height: 54px;
    color: var(--auth-muted);
    background: var(--auth-field);
    border-color: var(--auth-line);
    border-radius: 12px;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-input-wrap:focus-within {
    color: var(--auth-accent);
    background: var(--auth-surface);
    border-color: var(--auth-accent);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-input-wrap input {
    color: var(--auth-ink);
    caret-color: var(--auth-accent);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-input-wrap input::placeholder {
    color: var(--auth-placeholder);
    opacity: 1;
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-password-toggle { color: var(--auth-muted); }
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-password-toggle:hover { color: var(--auth-accent); background: var(--auth-accent-soft); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-submit {
    min-height: 54px;
    color: #ffffff !important;
    background: var(--auth-action);
    border-color: var(--auth-action);
    border-radius: 12px;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--auth-action) 27%, transparent);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-submit:hover {
    color: #ffffff !important;
    background: var(--auth-action-hover);
    border-color: var(--auth-action-hover);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-secondary-action {
    color: var(--auth-muted);
    border-color: var(--auth-line);
}

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-secondary-action a,
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-footer a { color: var(--auth-accent); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-secondary-action a:hover,
body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-footer a:hover { color: var(--auth-accent); }

body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-footer {
    width: min(calc(100% - 40px), 1180px);
    color: var(--auth-muted);
}

@media (max-width: 940px) {
    html body.peso-product-ui.auth-page:is(.auth-page--jobseeker, .auth-page--employer) main.auth-shell {
        max-width: 720px !important;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase {
        min-height: 320px;
        padding: 32px 38px;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase-copy {
        padding-block: 44px 36px;
    }

    html body.peso-product-ui.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase h1 {
        max-width: 14ch;
        font-size: clamp(2.35rem, 7vw, 3.5rem) !important;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form-panel { padding: 46px 42px; }
}

@media (max-width: 680px) {
    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-toolbar {
        width: min(calc(100% - 28px), 1180px);
        min-height: 70px;
        grid-template-columns: 1fr auto;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-toolbar-brand { display: none; }

    html body.peso-product-ui.auth-page:is(.auth-page--jobseeker, .auth-page--employer) main.auth-shell {
        width: min(calc(100% - 28px), 720px) !important;
        margin: 8px auto 20px !important;
        border-radius: 18px;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase {
        order: 1;
        min-height: 250px;
        padding: 24px;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form-panel {
        order: 2;
        padding: 36px 28px;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase-copy {
        padding-block: 36px 26px;
    }

    html body.peso-product-ui.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-showcase h1 {
        max-width: 15ch;
        font-size: clamp(2rem, 9vw, 2.8rem) !important;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-trust-note { display: none; }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-footer {
        width: min(calc(100% - 28px), 1180px);
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) :is(.auth-back-link, .auth-theme-toggle) {
        min-height: 42px;
        border-radius: 11px;
    }

    .auth-showcase-identity small { display: none; }
    .auth-showcase-identity img { width: 40px; height: 40px; }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-role-badge {
        max-width: 128px;
        white-space: normal;
        text-align: right;
    }

    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-form-panel { padding: 32px 22px; }
    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) .auth-label-row { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-page:is(.auth-page--jobseeker, .auth-page--employer) * { scroll-behavior: auto !important; }
}
