/* Compact, focused jobseeker sign-in screen. */
html body.peso-product-ui.auth-page--jobseeker,
body.auth-page--jobseeker {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: #061c13 !important;
    isolation: isolate;
}

body.auth-page--jobseeker .auth-background {
    display: block !important;
    z-index: 0;
    background: linear-gradient(145deg, #061a12, #0a2a1e);
}

body.auth-page--jobseeker .auth-background::before {
    inset: auto;
    top: 50%;
    left: 50%;
    width: clamp(430px, 68vw, 860px);
    height: clamp(430px, 68vw, 860px);
    opacity: .075;
    background: url('../images/peso_logo.jpg') center / contain no-repeat;
    border-radius: 50%;
    filter: saturate(.72) brightness(1.08);
    mask-image: none;
    transform: translate(-50%, -48%);
}

body.auth-page--jobseeker .auth-background::after {
    content: none;
}

html[data-theme='light'] body.auth-page--jobseeker,
html body.auth-page--jobseeker.light {
    background: #eaf3ed !important;
}

html[data-theme='light'] body.auth-page--jobseeker .auth-background,
html body.auth-page--jobseeker.light .auth-background {
    background: linear-gradient(145deg, #f5faf7, #e8f2ec);
}

html[data-theme='light'] body.auth-page--jobseeker .auth-background::before,
html body.auth-page--jobseeker.light .auth-background::before {
    opacity: .065;
    filter: saturate(.8) contrast(1.08);
    mix-blend-mode: multiply;
}

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

body.auth-page--jobseeker .auth-back-link,
body.auth-page--jobseeker .auth-theme-toggle {
    background: color-mix(in srgb, var(--auth-surface) 88%, transparent);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html body.peso-product-ui.auth-page--jobseeker main.auth-shell.auth-shell--compact,
body.auth-page--jobseeker main.auth-shell.auth-shell--compact {
    width: min(calc(100% - 36px), 424px) !important;
    max-width: 424px !important;
    min-height: 0;
    margin: clamp(10px, 2.5vh, 26px) auto 30px !important;
    display: block;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.auth-page--jobseeker .auth-login-card {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: clamp(27px, 4vw, 34px);
    display: block;
    color: var(--auth-ink);
    background: color-mix(in srgb, var(--auth-surface) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--auth-line) 88%, transparent);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34), 0 1px 0 rgba(255, 255, 255, .09) inset;
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
}

body.auth-page--jobseeker .auth-login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 42%;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #f4c843, #4bd18c);
    box-shadow: 0 5px 20px rgba(75, 209, 140, .28);
    transform: translateX(-50%);
}

html[data-theme='light'] body.auth-page--jobseeker .auth-login-card,
html body.auth-page--jobseeker.light .auth-login-card {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 26px 70px rgba(12, 59, 35, .20), 0 1px 0 #ffffff inset;
}

body.auth-page--jobseeker .auth-form-wrap {
    width: 100%;
    max-width: none;
}

.auth-login-identity {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-ink) !important;
    text-decoration: none;
}

.auth-login-logo {
    width: 50px;
    height: 50px;
    padding: 3px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #f4c843, #61d899);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(6, 85, 48, .24);
}

.auth-login-logo img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.auth-login-identity > span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.auth-login-identity strong {
    color: var(--auth-ink);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.15;
}

.auth-login-identity small {
    color: var(--auth-accent);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.auth-page--jobseeker .auth-form-heading {
    text-align: center;
}

html body.peso-product-ui.auth-page--jobseeker .auth-form-heading h1,
body.auth-page--jobseeker .auth-form-heading h1 {
    margin: 0;
    color: var(--auth-ink) !important;
    font-size: clamp(1.9rem, 5vw, 2.35rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
    line-height: 1.08 !important;
}

body.auth-page--jobseeker .auth-form-heading > p:last-child {
    max-width: 32ch;
    margin: 9px auto 0;
    color: var(--auth-muted);
    font-size: .82rem;
    line-height: 1.5;
}

body.auth-page--jobseeker .auth-message {
    margin-top: 20px;
}

body.auth-page--jobseeker .auth-form {
    margin-top: 20px;
    gap: 14px;
}

body.auth-page--jobseeker .auth-input-wrap {
    min-height: 50px;
    border-radius: 13px;
}

body.auth-page--jobseeker .auth-input-wrap input {
    height: 48px;
}

body.auth-page--jobseeker .auth-submit {
    min-height: 51px;
    border-radius: 13px;
}

body.auth-page--jobseeker .auth-submit i {
    margin-left: auto;
}

body.auth-page--jobseeker .auth-secondary-action {
    margin-top: 17px;
    padding-top: 16px;
}

.auth-login-security {
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--auth-muted);
    font-size: .66rem;
    font-weight: 700;
}

.auth-login-security i {
    color: var(--auth-accent);
}

body.auth-page--jobseeker .peso-back-to-top,
body.auth-page--jobseeker .peso-scroll-progress {
    display: none !important;
}

@media (max-width: 680px) {
    body.auth-page--jobseeker .auth-toolbar {
        width: min(calc(100% - 24px), 1180px);
        min-height: 66px;
    }

    html body.peso-product-ui.auth-page--jobseeker main.auth-shell.auth-shell--compact,
    body.auth-page--jobseeker main.auth-shell.auth-shell--compact {
        width: min(calc(100% - 24px), 412px) !important;
        margin: 12px auto 28px !important;
        border-radius: 0;
    }

    body.auth-page--jobseeker .auth-login-card {
        order: initial;
        padding: 27px 24px 24px;
        border-radius: 22px;
    }

    body.auth-page--jobseeker .auth-background::before {
        width: min(128vw, 620px);
        height: min(128vw, 620px);
        transform: translate(-50%, -45%);
    }
}

@media (max-width: 380px) {
    body.auth-page--jobseeker .auth-back-link span,
    body.auth-page--jobseeker .auth-theme-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    body.auth-page--jobseeker .auth-back-link,
    body.auth-page--jobseeker .auth-theme-toggle {
        width: 44px;
        justify-content: center;
        padding: 0;
    }

    body.auth-page--jobseeker .auth-login-card {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-page--jobseeker .auth-login-card,
    body.auth-page--jobseeker .auth-background { transition: none !important; }
}
