:root {
        --pa-brand-orange: #F58220;
        --pa-landing-accent: #F28B18;
        --pa-cta-text: #222222;
        --pa-footer-dark: #171717;
        --pa-footer-landing: #111111;
        --pa-text-primary: #222222;
        --pa-text-secondary: #666666;
        --pa-page-surface: #F8F8F8;
        --pa-card-radius: 28px;
        --pa-control-radius: 12px;
    }

    * {
        box-sizing: border-box;
    }

    html,
    body {
        min-height: 100%;
    }

    body {
        margin: 0;
        min-width: 0;
        font-family: "Segoe UI", Arial, sans-serif;
        background: var(--pa-page-surface);
        color: var(--pa-text-primary);
    }

    a:focus-visible,
    .pa-skip-link:focus {
        outline: 3px solid var(--pa-footer-dark);
        outline-offset: 3px;
    }

    .pa-skip-link {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        padding: 14px 22px;
        background: var(--pa-footer-dark);
        color: #FFFFFF;
        text-decoration: none;
        border-radius: 0 0 var(--pa-control-radius) 0;
        transform: translateY(-110%);
    }

    .pa-skip-link:focus {
        transform: none;
    }

    .pa-hero {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        /* Approved layered landing background: page-surface fallback, white gradient, supplied background.png. */
        background-color: var(--pa-page-surface);
        background-image: linear-gradient(to right, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .95) 42%, rgba(255, 255, 255, .56) 64%, rgba(255, 255, 255, .12) 84%, rgba(255, 255, 255, .02) 100%), url("/public-auth/background.png");
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .pa-header {
        min-height: 72px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 16px clamp(28px, 4.5vw, 64px) 0;
        font-size: 13px;
    }

    .pa-header-login {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 4px;
        color: #4F4F4F;
        font-weight: 500;
        text-decoration: none;
    }

    .pa-header-login:hover,
    .pa-header-login:active {
        color: var(--pa-text-primary);
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .pa-content {
        flex: 1;
        display: flex;
        align-items: center;
        min-height: 0;
        padding: 22px clamp(28px, 4.5vw, 64px) 34px;
    }

    .pa-intro {
        width: 100%;
        max-width: 480px;
        transform: translateY(15px);
    }

    .pa-kicker {
        margin: 0;
        color: var(--pa-landing-accent);
        font-weight: 700;
        letter-spacing: .14em;
        font-size: 12px;
    }

    .pa-intro h1 {
        margin: 14px 0 24px;
        font-size: clamp(46px, 4.05vw, 52px);
        line-height: 1.08;
        letter-spacing: -.035em;
        font-weight: 600;
    }

    .pa-intro h1 > span {
        display: block;
        white-space: nowrap;
    }

    .pa-rule {
        width: 48px;
        height: 3px;
        background: var(--pa-landing-accent);
        border-radius: 3px;
        margin: 0 0 30px;
    }

    .pa-lede {
        margin: 0;
        max-width: 430px;
        font-size: 15px;
        line-height: 1.55;
        color: var(--pa-text-secondary);
    }

    .pa-cta {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        min-width: 154px;
        min-height: 46px;
        margin-top: 40px;
        background: var(--pa-landing-accent);
        color: var(--pa-cta-text);
        padding: 0 18px;
        border-radius: 7px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 0 8px 18px rgba(242, 139, 24, .24);
    }

    .pa-cta > span {
        color: var(--pa-cta-text);
        font-size: 19px;
        line-height: 1;
    }

    .pa-cta:hover,
    .pa-cta:active,
    .pa-cta:focus-visible {
        background: var(--pa-landing-accent);
        color: var(--pa-cta-text);
    }

    .pa-acknowledgement {
        max-width: 430px;
        margin: 40px 0 0;
        padding-top: 24px;
        border-top: 1px solid #E1E1E1;
        color: #757575;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .pa-footer {
        min-height: 78px;
        background: var(--pa-footer-landing);
        color: #FFFFFF;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 24px;
        padding: 14px clamp(28px, 3.25vw, 48px);
        font-size: 12px;
        line-height: 1.4;
    }

    @media (max-width: 900px) {
        .pa-hero {
            background-position: 42% center;
        }

        .pa-header {
            padding-right: 32px;
            padding-left: 32px;
        }

        .pa-content {
            padding-right: 32px;
            padding-left: 32px;
        }

        .pa-intro h1 {
            font-size: 46px;
        }

        .pa-footer {
            padding-right: 32px;
            padding-left: 32px;
        }
    }

    @media (max-width: 600px) {
        .pa-hero {
            background-image: linear-gradient(to right, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .96) 64%, rgba(255, 255, 255, .84) 100%), url("/public-auth/background.png");
            background-position: 58% center;
            background-size: auto 100%;
        }

        .pa-header {
            min-height: 62px;
            padding: 8px 22px 0;
        }

        .pa-content {
            padding: 18px 22px 28px;
        }

        .pa-intro {
            max-width: 100%;
            transform: none;
        }

        .pa-intro h1 {
            margin-top: 12px;
            font-size: 36px;
            line-height: 1.1;
            letter-spacing: -.03em;
        }

        .pa-rule {
            margin-bottom: 18px;
        }

        .pa-lede {
            max-width: 340px;
            font-size: 14.5px;
        }

        .pa-cta {
            margin-top: 24px;
        }

        .pa-acknowledgement {
            margin-top: 24px;
            padding-top: 17px;
            font-size: 11px;
        }

        .pa-footer {
            min-height: 96px;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 7px;
            padding: 14px 22px;
            font-size: 11.5px;
        }
    }

    @media (max-width: 340px) {
        .pa-intro h1 {
            font-size: clamp(24px, 11.25vw, 36px);
        }

        .pa-intro h1 > span {
            white-space: normal;
        }
    }

    .pa-auth-content {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
        padding: 40px clamp(24px, 4.5vw, 64px);
    }

    .pa-auth-card {
        width: 100%;
        max-width: 510px;
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(10px);
        border-radius: var(--pa-card-radius);
        padding: clamp(32px, 4vw, 48px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
    }

    .pa-auth-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 16px;
        position: relative;
    }

    .pa-auth-icon::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 26px;
        height: 26px;
        transform: translateX(-50%);
        border: 3px solid var(--pa-brand-orange);
        border-radius: 50%;
    }

    .pa-auth-icon::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 44px;
        height: 22px;
        transform: translateX(-50%);
        border: 3px solid var(--pa-brand-orange);
        border-bottom: none;
        border-radius: 22px 22px 0 0;
    }

    .pa-auth-heading {
        margin: 16px 0 10px;
        text-align: center;
        font-size: clamp(32px, 4.5vw, 42px);
        font-weight: 700;
    }

    .pa-auth-subtitle {
        margin: 0 0 34px;
        text-align: center;
        color: var(--pa-text-secondary);
        font-size: 15px;
        line-height: 1.6;
    }

    .pa-auth-label {
        display: block;
        margin-bottom: 10px;
        font-weight: 600;
        font-size: 14px;
    }

    .pa-auth-input {
        width: 100%;
        margin-bottom: 16px;
        padding: 15px 16px;
        font-size: 16px;
        font-family: inherit;
        color: var(--pa-text-primary);
        border: 1px solid #DDDDDD;
        border-radius: var(--pa-control-radius);
        outline: none;
    }

    .pa-auth-input:focus-visible {
        border-color: var(--pa-brand-orange);
        box-shadow: 0 0 0 4px rgba(245, 130, 32, .12);
    }

    .pa-auth-input:read-only {
        background: #F7F7F7;
        color: var(--pa-text-secondary);
    }

    .pa-auth-input.input-validation-error {
        border-color: #C0392B;
    }

    .pa-auth-input.input-validation-error:focus-visible {
        border-color: #C0392B;
        box-shadow: 0 0 0 4px rgba(192, 57, 43, .12);
    }

    .pa-auth-input-group {
        position: relative;
        margin-bottom: 16px;
    }

    .pa-auth-input-group .pa-auth-input {
        margin-bottom: 0;
        padding-right: 64px;
    }

    .pa-auth-toggle {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        padding: 0 16px;
        min-width: 44px;
        background: transparent;
        border: none;
        color: var(--pa-text-secondary);
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
    }

    .pa-auth-toggle:focus-visible {
        outline: 3px solid var(--pa-footer-dark);
        outline-offset: -3px;
        border-radius: var(--pa-control-radius);
    }

    .pa-auth-button {
        margin-top: 24px;
        width: 100%;
        min-height: 46px;
        padding: 15px;
        background: var(--pa-brand-orange);
        color: #FFFFFF;
        border: none;
        border-radius: var(--pa-control-radius);
        font-size: 16px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
    }

    .pa-auth-button:focus-visible {
        outline: 3px solid var(--pa-footer-dark);
        outline-offset: 3px;
    }

    .pa-auth-message {
        margin: 0 0 20px;
        color: var(--pa-text-secondary);
        font-size: 14px;
        line-height: 1.5;
    }

    .pa-auth-message ul {
        margin: 0;
        padding-left: 20px;
    }

    .pa-auth-message-error {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 20px;
        padding: 12px 14px;
        background: #FDECEC;
        border: 1px solid #F5C6C6;
        border-radius: var(--pa-control-radius);
        color: #C0392B;
        font-size: 14px;
        line-height: 1.5;
    }

    .pa-auth-message-error i {
        color: #C0392B;
        flex-shrink: 0;
    }

    .pa-auth-return {
        display: inline-block;
        margin-top: 8px;
        color: var(--pa-text-primary);
        font-weight: 600;
    }

    .pa-auth-footer {
        min-height: 72px;
        background: var(--pa-footer-dark);
        color: #FFFFFF;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 24px;
        padding: 14px clamp(28px, 3.25vw, 48px);
        font-size: 12px;
        line-height: 1.4;
    }

    .pa-auth-footer-brand {
        opacity: .7;
    }

    /* Vendor pre-registration and sign-up (/pre-registration, /vendor-registration/start). */
    .pa-header {
        gap: 20px;
    }

    .pa-auth-card-wide {
        max-width: 760px;
    }

    .pa-auth-message-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pa-auth-message-info {
        padding: 12px 14px;
        background: #F2F7FC;
        border: 1px solid #CFE0F1;
        border-radius: var(--pa-control-radius);
        color: var(--pa-text-primary);
    }

    .pa-auth-note {
        margin: 18px 0 0;
        color: var(--pa-text-secondary);
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
    }

    .pa-auth-honeypot {
        position: absolute;
        left: -10000px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .pa-auth-fieldset {
        min-width: 0;
        margin: 0 0 12px;
        padding: 0;
        border: 0;
    }

    .pa-auth-fieldset legend {
        margin-bottom: 14px;
        padding: 0;
        font-size: 16px;
        font-weight: 700;
    }

    .pa-auth-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        column-gap: 16px;
    }

    select.pa-auth-input {
        background: #FFFFFF;
    }

    .pa-auth-terms {
        max-height: 50vh;
        overflow-y: auto;
        margin: 0 0 8px;
        padding: 16px 18px;
        background: #FFFFFF;
        border: 1px solid #DDDDDD;
        border-radius: var(--pa-control-radius);
        font-size: 14px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .pa-auth-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .pa-auth-actions .pa-auth-button {
        flex: 1 1 200px;
        width: auto;
    }

    .pa-auth-button-secondary {
        background: #FFFFFF;
        color: var(--pa-text-primary);
        border: 1px solid #CCCCCC;
    }

    .pa-auth-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px 20px;
    }
