/* Compact and distinct employer/admin sign-in experiences. */
body:is(.auth-page--employer, .auth-page--admin) {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    isolation: isolate;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-background {
    display: block !important;
    z-index: 0;
}

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

body:is(.auth-page--employer, .auth-page--admin) .auth-background::after {
    content: none;
}

body.auth-page--employer {
    background: linear-gradient(145deg, #061b19, #0a302c) !important;
}

body.auth-page--employer .auth-background {
    background: linear-gradient(145deg, #061b19, #0a302c);
}

body.auth-page--employer .auth-background::before {
    left: 72%;
    opacity: .07;
    filter: saturate(.68) brightness(1.18);
}

html[data-theme='light'] body.auth-page--employer,
html body.auth-page--employer.light {
    background: linear-gradient(145deg, #f2f9f7, #e2f0ed) !important;
}

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

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

body.auth-page--admin[data-peso-page='admin-login'] {
    background: linear-gradient(145deg, #07140f, #10241c) !important;
}

body.auth-page--admin[data-peso-page='admin-login'] .auth-background {
    background: linear-gradient(145deg, #07140f, #10241c);
}

body.auth-page--admin[data-peso-page='admin-login'] .auth-background::before {
    left: 28%;
    opacity: .065;
    filter: grayscale(.22) saturate(.68) brightness(1.12);
}

html[data-theme='light'] body.auth-page--admin[data-peso-page='admin-login'] {
    background: linear-gradient(145deg, #f7f8f3, #e9efe7) !important;
}

html[data-theme='light'] body.auth-page--admin[data-peso-page='admin-login'] .auth-background {
    background: linear-gradient(145deg, #f7f8f3, #e9efe7);
}

html[data-theme='light'] body.auth-page--admin[data-peso-page='admin-login'] .auth-background::before {
    opacity: .06;
    filter: grayscale(.25) saturate(.72) contrast(1.08);
    mix-blend-mode: multiply;
}

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

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

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

body:is(.auth-page--employer, .auth-page--admin) .role-login-card {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: clamp(28px, 4vw, 36px);
    display: block;
    color: var(--auth-ink);
    background: color-mix(in srgb, var(--auth-surface) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--auth-line) 90%, transparent);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
}

body.auth-page--employer .employer-login-card {
    overflow: hidden;
    border-radius: 28px 28px 28px 10px;
    box-shadow: 0 28px 80px rgba(0, 20, 18, .36), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

body.auth-page--employer .employer-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 118px;
    height: 5px;
    background: linear-gradient(90deg, #40c8b7, #f1c94b);
    border-radius: 0 0 0 999px;
}

html[data-theme='light'] body.auth-page--employer .employer-login-card,
html body.auth-page--employer.light .employer-login-card {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 26px 70px rgba(8, 75, 67, .18), 0 1px 0 #ffffff inset;
}

body.auth-page--admin .admin-login-card {
    border-color: color-mix(in srgb, var(--auth-line) 76%, #d8ae35);
    border-radius: 18px;
    box-shadow: 0 30px 84px rgba(0, 0, 0, .40), 0 1px 0 rgba(255, 255, 255, .07) inset;
}

body.auth-page--admin .admin-login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 26px;
    right: 26px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f2c94c, transparent);
}

html[data-theme='light'] body.auth-page--admin .admin-login-card {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 72px rgba(33, 48, 38, .18), 0 1px 0 #ffffff inset;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-form-wrap {
    width: 100%;
    max-width: none;
}

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

.role-login-logo {
    width: 52px;
    height: 52px;
    padding: 3px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #f2c94c, #4fd0b9);
    border-radius: 50%;
    box-shadow: 0 9px 22px rgba(5, 82, 69, .22);
}

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

.role-login-identity > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

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

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

.employer-login-identity > i {
    width: 38px;
    height: 38px;
    margin-left: auto;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #f2c94c;
    background: color-mix(in srgb, var(--auth-accent-soft) 80%, transparent);
    border: 1px solid var(--auth-line);
    border-radius: 12px;
}

body.auth-page--admin .role-login-logo {
    background: linear-gradient(145deg, #f5d66d, #98751b);
    border-radius: 14px;
}

body.auth-page--admin .role-login-logo img {
    border-radius: 11px;
}

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

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

body.auth-page--admin .admin-form-marker {
    justify-content: flex-start;
    margin: 0 0 10px;
}

body.auth-page--admin .admin-secure-state {
    padding: 6px 9px;
    color: #e7c760;
    background: rgba(216, 174, 53, .10);
    border: 1px solid rgba(216, 174, 53, .25);
    border-radius: 7px;
    font-size: .59rem;
    letter-spacing: .08em;
}

html[data-theme='light'] body.auth-page--admin .admin-secure-state {
    color: #775600;
    background: #fff6d8;
    border-color: #e5cd7d;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-message {
    margin-top: 18px;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-form {
    margin-top: 22px;
    gap: 15px;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-input-wrap {
    min-height: 51px;
    border-radius: 12px;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-input-wrap input {
    height: 49px;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-submit {
    min-height: 52px;
    border-radius: 12px;
}

body:is(.auth-page--employer, .auth-page--admin) .auth-submit i {
    margin-left: auto;
}

body.auth-page--admin .auth-submit {
    background: linear-gradient(135deg, #0a6b43, #0b8a55);
    border-color: #0a7448;
    box-shadow: 0 14px 28px rgba(7, 91, 55, .25);
}

body:is(.auth-page--employer, .auth-page--admin) .auth-secondary-action {
    margin-top: 18px;
    padding-top: 16px;
}

.role-login-security,
body.auth-page--admin .auth-security-note {
    margin: 13px auto 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--auth-muted) !important;
    background: transparent;
    border: 0;
    font-size: .66rem;
    font-weight: 700;
    text-align: center;
}

.role-login-security i { color: var(--auth-accent); }
body.auth-page--admin .auth-security-note i { margin: 0; color: #d8ae35 !important; }

body:is(.auth-page--employer, .auth-page--admin) :is(.peso-back-to-top, .peso-scroll-progress) {
    display: none !important;
}

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

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

    body:is(.auth-page--employer, .auth-page--admin) .role-login-card {
        order: initial;
        padding: 28px 24px 25px;
    }

    body.auth-page--employer .employer-login-card { border-radius: 24px 24px 24px 9px; }

    body:is(.auth-page--employer, .auth-page--admin) .auth-background::before {
        left: 50%;
        width: min(128vw, 620px);
        height: min(128vw, 620px);
        transform: translate(-50%, -44%);
    }
}

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

    body:is(.auth-page--employer, .auth-page--admin) :is(.auth-back-link, .auth-theme-toggle) {
        width: 44px;
        justify-content: center;
        padding: 0;
    }

    body:is(.auth-page--employer, .auth-page--admin) .role-login-card { padding-inline: 20px; }
    .employer-login-identity > i { display: none; }
}

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