body.partnerflow-premium-register-template {
    margin: 0;
    min-height: 100vh;
    /* Light purple base (greens remain primary CTA) */
    background: #fbfafd;
    color: #101114;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.partnerflow-premium-register-template *,
body.partnerflow-premium-register-template *::before,
body.partnerflow-premium-register-template *::after {
    box-sizing: border-box;
}

body.partnerflow-premium-register-template input,
body.partnerflow-premium-register-template button,
body.partnerflow-premium-register-template textarea,
body.partnerflow-premium-register-template select {
    font: inherit;
}

body.partnerflow-premium-register-template.admin-bar .pf-register-screen {
    min-height: calc(100svh - 32px);
}

@media (max-width: 782px) {
    body.partnerflow-premium-register-template.admin-bar .pf-register-screen {
        min-height: calc(100svh - 46px);
    }
}

.pf-register-screen {
    min-height: 100svh;
    width: 100%;
    background: #fbfafd;
}

.pf-auth-shell,
.pf-auth-panel {
    min-height: inherit;
}

.pf-auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: inherit;
    background: #fbfafd;
}

.pf-auth-hero {
    position: relative;
    min-height: 258px;
    overflow: hidden;
    background: #0a0b0d;
}

.pf-auth-hero__mobile-bg,
.pf-auth-hero picture,
.pf-auth-hero img {
    display: block;
    width: 100%;
    height: 100%;
}

.pf-auth-hero__mobile-bg {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.pf-auth-hero picture {
    display: none;
}

.pf-auth-hero img {
    object-fit: cover;
    object-position: center center;
}

.pf-auth-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 92px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 88%, #ffffff 100%);
    pointer-events: none;
}

.pf-auth-hero__caption {
    display: none;
}

.pf-auth-hero__eyebrow,
.pf-auth-hero__headline,
.pf-auth-hero__subline {
    margin: 0;
}

.pf-auth-body {
    position: relative;
    z-index: 1;
    margin-top: -30px;
    padding: 0 18px 30px;
}

.pf-auth-body__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pf-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 4px;
}

.pf-auth-brand__badge {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #0a0b0d;
    display: grid;
    place-items: center;
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.pf-auth-brand__badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    filter: none;
}

.pf-auth-brand__label {
    display: none;
}

.pf-auth-brand > :not(.pf-auth-brand__badge),
.pf-auth-brand > :not(span.pf-auth-brand__badge) {
    display: none !important;
}

.pf-register-alert {
    border-radius: 18px;
    border: 1px solid #f2d4d9;
    background: #fff7f8;
    color: #bf3e53;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    padding: 12px 15px;
}

.pf-register-alert[hidden],
.pf-auth-view[hidden],
.pf-signup-step[hidden] {
    display: none !important;
}

.pf-auth-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border-radius: 20px;
    background: #f4f5f7;
    border: 1px solid #e6e8ee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.pf-auth-switcher__button {
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #7e8590;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    cursor: pointer;
}

.pf-auth-switcher__button.is-active {
    background: linear-gradient(180deg, #17181b 0%, #060607 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(6, 6, 7, 0.14);
}

.pf-auth-copy,
.pf-auth-grid,
.pf-auth-view,
.pf-signup-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-auth-copy {
    gap: 8px;
}

.pf-auth-view {
    animation: pfAuthFade 180ms ease;
}

@keyframes pfAuthFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-auth-title {
    margin: 0;
    width: 100%;
    color: #101114;
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 500;
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
}

.pf-auth-view--login .pf-auth-title,
.pf-auth-view--signup .pf-auth-title {
    max-width: none;
}

.pf-auth-description {
    margin: 0;
    color: #6f7680;
    font-size: 14px;
    line-height: 1.58;
    letter-spacing: -0.015em;
    max-width: 100%;
}

.pf-auth-phone-preview {
    margin: -2px 0 0;
    color: #101114;
    font-size: 15px;
    line-height: 1.42;
    font-weight: 600;
}

.pf-auth-fieldset {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-auth-label {
    color: #15171a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.pf-auth-inputwrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid #e6e8ec;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(17, 18, 20, 0.02);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pf-auth-inputwrap:hover {
    border-color: #d9dde4;
}

.pf-auth-inputwrap:focus-within {
    border-color: #111214;
    box-shadow: 0 0 0 4px rgba(17, 18, 20, 0.06);
}

.pf-auth-inputicon {
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa1ab;
    flex: 0 0 auto;
}

.pf-auth-inputicon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.pf-auth-input,
.pf-auth-input[type="text"],
.pf-auth-input[type="email"],
.pf-auth-input[type="password"],
.pf-auth-input[type="tel"] {
    all: unset;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px !important;
    text-align: left !important;
    text-indent: 0 !important;
    direction: ltr;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    color: #111214;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.pf-auth-input::placeholder {
    color: #a2a8b1;
    opacity: 1;
    text-align: left;
    font-weight: 400;
}

.pf-auth-input:focus,
.pf-auth-input:hover,
.pf-auth-input:active,
.pf-auth-input[type="text"]:focus,
.pf-auth-input[type="email"]:focus,
.pf-auth-input[type="password"]:focus,
.pf-auth-input[type="tel"]:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pf-auth-inputicon + .pf-auth-input {
    padding-left: 0 !important;
}

.pf-auth-input--password {
    padding-right: 50px !important;
}

.pf-auth-input:-webkit-autofill,
.pf-auth-input:-webkit-autofill:hover,
.pf-auth-input:-webkit-autofill:focus,
.pf-auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: #111214 !important;
    caret-color: #111214;
    transition: background-color 9999s ease-in-out 0s;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    background-color: transparent !important;
}

.pf-auth-inputwrap--phone {
    padding-left: 4px;
}

.pf-auth-country {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    min-height: 56px;
    flex: 0 0 auto;
    padding-left: 12px;
    padding-right: 4px;
}

.pf-auth-country__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.pf-auth-country__select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #111214;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0 16px 0 0;
    min-width: 84px;
    height: 42px;
    line-height: 42px;
    cursor: pointer;
    outline: none;
}

.pf-auth-country__divider {
    width: 1px;
    align-self: stretch;
    background: #e6e8ec;
    margin: 8px 4px 8px 0;
    flex: 0 0 auto;
}

.pf-auth-input--phone {
    padding-left: 12px !important;
}

.pf-auth-visibility {
    position: absolute;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #a0a6ae;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.pf-auth-visibility:hover {
    color: #111214;
    background: rgba(17, 18, 20, 0.05);
}

.pf-auth-visibility svg {
    width: 20px;
    height: 20px;
}

.pf-auth-button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 20px;
    padding: 15px 20px;
    background: linear-gradient(180deg, #15171a 0%, #040506 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    box-shadow: 0 18px 34px rgba(6, 6, 7, 0.16);
    transition: transform 150ms ease, box-shadow 160ms ease, opacity 160ms ease, background-color 160ms ease, color 160ms ease;
    cursor: pointer;
}

.pf-auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(6, 6, 7, 0.2);
}

.pf-auth-button:active {
    transform: translateY(0);
}

.pf-auth-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.pf-auth-button--secondary {
    background: #ffffff;
    color: #101114;
    border: 1px solid #dfe3e8;
    box-shadow: none;
}

.pf-auth-button--secondary:hover {
    box-shadow: 0 10px 20px rgba(16, 17, 20, 0.06);
}

.pf-auth-footnote {
    margin: 0;
    color: #7a818c;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

.pf-auth-link {
    border: 0;
    background: transparent;
    color: #111214;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0;
    cursor: pointer;
}

.pf-auth-link--secondary {
    color: #6d7480;
    font-weight: 500;
}

.pf-auth-recaptcha {
    min-height: 1px;
}

.pf-signup-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pf-signup-progress__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid #e5e8ee;
    background: #fafbfc;
    min-height: 46px;
    border-radius: 15px;
    padding: 0 14px;
    cursor: pointer;
    color: #7c838d;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pf-signup-progress__item.is-active,
.pf-signup-progress__item.is-complete {
    border-color: rgba(17, 18, 20, 0.12);
    background: #ffffff;
    color: #111214;
    box-shadow: 0 10px 22px rgba(16, 17, 20, 0.05);
}

.pf-signup-progress__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eceff3;
    color: #4a525d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pf-signup-progress__item.is-active .pf-signup-progress__index,
.pf-signup-progress__item.is-complete .pf-signup-progress__index {
    background: #111214;
    color: #ffffff;
}

.pf-signup-progress__text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pf-signup-step__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.pf-signup-step__actions--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


.pf-otp-capture {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.pf-otp-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.pf-otp-slot {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    border-radius: 15px;
    border: 1px solid #e6e8ec;
    background: #ffffff;
    text-align: center;
    color: #111214;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    outline: none;
    padding: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pf-otp-slot:focus {
    border-color: #111214;
    box-shadow: 0 0 0 4px rgba(17, 18, 20, 0.06);
}

.pf-auth-otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 420px) {
    .pf-auth-hero {
        min-height: 230px;
    }

    .pf-auth-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pf-auth-brand__badge {
        width: 48px;
        height: 48px;
        border-radius: 999px;
    }

    .pf-auth-input,
    .pf-auth-input[type="text"],
    .pf-auth-input[type="email"],
    .pf-auth-input[type="password"],
    .pf-auth-input[type="tel"] {
        font-size: 14px;
    }

    .pf-auth-country__select {
        min-width: 80px;
        font-size: 12px;
    }

    .pf-auth-country__flag {
        font-size: 16px;
    }

    .pf-signup-progress__item {
        min-height: 46px;
        padding: 0 12px;
    }
}

@media (min-width: 992px) {
    body.partnerflow-premium-register-template {
        background: #ffffff;
        overflow: auto;
    }

    .pf-register-screen {
        min-height: 100svh;
        height: 100svh;
    }

    body.partnerflow-premium-register-template.admin-bar .pf-register-screen {
        min-height: calc(100svh - 32px);
        height: calc(100svh - 32px);
    }

    .pf-auth-shell,
    .pf-auth-panel {
        min-height: 100%;
        height: 100%;
    }

    .pf-auth-panel {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    }

    .pf-auth-hero {
        min-height: 100%;
        height: 100%;
    }

    .pf-auth-hero__mobile-bg {
        display: none;
    }

    .pf-auth-hero picture {
        display: block;
        position: absolute;
        inset: 0;
    }

    .pf-auth-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 8, 12, 0.04) 0%, rgba(6, 8, 12, 0.1) 44%, rgba(6, 8, 12, 0.56) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .pf-auth-hero::after {
        display: none;
    }

    .pf-auth-hero__caption {
        position: absolute;
        left: clamp(28px, 3vw, 44px);
        right: auto;
        bottom: clamp(32px, 4.5vw, 54px);
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: min(560px, calc(100% - 56px));
        max-width: 560px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        pointer-events: none;
    }

    .pf-auth-hero__eyebrow {
        display: none;
    }

    .pf-auth-hero__headline {
        color: #ffffff;
        font-size: clamp(34px, 3.2vw, 52px);
        line-height: 0.98;
        letter-spacing: -0.05em;
        font-weight: 650;
        text-wrap: balance;
        text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    }

    .pf-auth-hero__subline {
        color: rgba(255, 255, 255, 0.96);
        font-size: clamp(18px, 1.5vw, 24px);
        line-height: 1.15;
        letter-spacing: -0.02em;
        font-weight: 500;
        text-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    }

    .pf-auth-body {
        margin-top: 0;
        min-height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        border-left: 1px solid rgba(15, 17, 20, 0.05);
        background: #ffffff;
        padding: clamp(28px, 4vh, 56px) clamp(20px, 2.2vw, 44px);
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,.25) transparent;
    }

    .pf-auth-body::-webkit-scrollbar { width: 6px; }
    .pf-auth-body::-webkit-scrollbar-track { background: transparent; }
    .pf-auth-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.22); border-radius: 999px; }
    .pf-auth-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.35); }

    .pf-auth-body__inner {
        width: min(100%, 520px);
        max-height: none;
        margin: 0 auto;
        padding-block: 0;
        gap: 10px;
        justify-content: flex-start;
    }

    .pf-auth-brand {
        justify-content: center;
        width: 100%;
        margin-bottom: 6px;
    }

    .pf-auth-brand__badge {
        width: 52px;
        height: 52px;
        border-radius: 999px;
        box-shadow: none;
    }

    .pf-auth-brand__badge img {
        width: 100%;
        height: 100%;
    }

    .pf-register-alert {
        border-radius: 18px;
    }

    .pf-auth-switcher {
        border-radius: 20px;
        padding: 4px;
        gap: 4px;
        margin-bottom: 2px;
    }

    .pf-auth-switcher__button {
        min-height: 46px;
        border-radius: 15px;
        font-size: 15px;
    }

    .pf-auth-copy,
    .pf-auth-grid,
    .pf-auth-view,
    .pf-signup-step {
        gap: 12px;
    }

    .pf-auth-copy {
        gap: 8px;
    }

    .pf-auth-title {
        font-size: clamp(24px, 2vw, 30px);
        line-height: 1.05;
        letter-spacing: -0.04em;
        font-weight: 500;
        max-width: none;
        white-space: nowrap;
    }

    .pf-auth-view--login .pf-auth-title,
    .pf-auth-view--signup .pf-auth-title {
        max-width: none;
    }

    .pf-auth-description {
        font-size: 13px;
        line-height: 1.52;
        max-width: 100%;
    }

    .pf-auth-label {
        font-size: 11px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #3f4650;
    }

    .pf-auth-fieldset {
        gap: 6px;
    }

    .pf-auth-inputwrap {
        min-height: 52px;
        border-radius: 18px;
    }

    .pf-auth-input,
    .pf-auth-input[type="text"],
    .pf-auth-input[type="email"],
    .pf-auth-input[type="password"],
    .pf-auth-input[type="tel"] {
        font-size: 14px;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .pf-auth-input::placeholder {
        letter-spacing: -0.02em;
    }

    .pf-auth-inputicon {
        width: 46px;
    }

    .pf-auth-inputicon + .pf-auth-input {
        padding-left: 0 !important;
    }

    .pf-auth-country {
        min-height: 52px;
        gap: 8px;
        padding-left: 12px;
    }

    .pf-auth-country__flag {
        font-size: 16px;
    }

    .pf-auth-country__select {
        min-width: 86px;
        font-size: 12px;
        padding-right: 12px;
    }

    .pf-auth-button {
        min-height: 52px;
        border-radius: 20px;
        font-size: 15px;
        box-shadow: 0 18px 36px rgba(6, 6, 7, 0.17);
    }

    .pf-auth-footnote,
    .pf-auth-otp-actions {
        text-align: left;
        justify-content: flex-start;
    }

    .pf-auth-footnote {
        margin-top: 2px;
    }

    .pf-signup-progress {
        gap: 8px;
    }

    .pf-signup-progress__item {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 16px;
    }

    .pf-signup-progress__index {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }

    .pf-signup-progress__text {
        font-size: 12px;
    }

    .pf-signup-step__actions {
        margin-top: 2px;
        gap: 10px;
    }

    .pf-otp-slot {
        border-radius: 15px;
    }


    .pf-auth-view--signup .pf-auth-copy {
        gap: 6px;
    }

    .pf-auth-view--signup .pf-auth-grid {
        gap: 10px;
    }

    .pf-auth-view--signup .pf-auth-description {
        max-width: 100%;
    }

    .pf-auth-view--signup .pf-auth-button {
        margin-top: 2px;
    }

    .pf-auth-view--signup .pf-auth-footnote {
        margin-top: 0;
    }
}

/* =========================================================
   EliteX PartnerFlow — Tight / Premium Auth Overrides
   Focus: (2) spacing system (3) premium forms (4) OTP UX
   ========================================================= */

body.partnerflow-premium-register-template {
    /* Brand primary (switched from Wise green -> EliteX purple) */
    --pf-green: #7139A0;
    --pf-text: #101114;
    --pf-muted: #6b6675;
    --pf-border: #e8e1f2;
    --pf-surface: #f7f4fb;

    /* Brand purples (reference palette) */
    --pf-purple-ink: #2a184e;
    --pf-violet: #7139a0;

    --pf-space-1: 8px;
    --pf-space-2: 12px;
    --pf-space-3: 16px;
    --pf-space-4: 20px;
    --pf-space-5: 24px;

    --pf-radius-md: 14px;
    --pf-radius-lg: 16px;
    --pf-input-h: 44px;
    --pf-btn-h: 44px;

    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

.pf-auth-body {
    margin-top: -24px;
    padding: 0 16px 24px;
}

.pf-auth-body__inner {
    gap: var(--pf-space-3);
}

.pf-register-alert {
    border-radius: var(--pf-radius-lg);
    padding: 12px 14px;
    font-size: 13px;
}

.pf-auth-toast {
    border-radius: var(--pf-radius-lg);
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    color: var(--pf-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(16, 17, 20, 0.06);
}

.pf-auth-switcher {
    padding: 4px;
    border-radius: var(--pf-radius-lg);
    border: 1px solid var(--pf-border);
    background: var(--pf-surface);
    box-shadow: none;
}

.pf-auth-switcher__button {
    min-height: 40px;
    border-radius: 12px;
    font-size: 14px;
}

.pf-auth-switcher__button.is-active {
    background: linear-gradient(180deg, var(--pf-purple-ink) 0%, #1d1a1f 100%);
    box-shadow: 0 12px 22px rgba(42, 24, 78, 0.18);
}

.pf-auth-copy {
    gap: 6px;
}

.pf-auth-title {
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: normal;
    text-wrap: balance;
}

.pf-auth-description {
    font-size: 14px;
    color: var(--pf-muted);
}

.pf-auth-fieldset {
    gap: 6px;
}

.pf-auth-label {
    font-size: 12px;
    color: #15171a;
}

.pf-auth-inputwrap {
    min-height: var(--pf-input-h);
    border-radius: var(--pf-radius-lg);
    border-color: var(--pf-border);
    box-shadow: none;
}

.pf-auth-inputwrap:focus-within {
    border-color: var(--pf-purple-ink);
    box-shadow: 0 0 0 3px rgba(113, 57, 160, 0.14);
}

.pf-auth-inputicon {
    width: 40px;
    color: #9aa1ab;
}

.pf-auth-input,
.pf-auth-input[type="text"],
.pf-auth-input[type="email"],
.pf-auth-input[type="password"],
.pf-auth-input[type="tel"] {
    font-size: 14.5px;
    padding: 0 14px !important;
}

.pf-auth-country {
    min-height: var(--pf-input-h);
}

.pf-auth-country__select {
    height: 40px;
    line-height: 40px;
}

.pf-auth-button {
    min-height: var(--pf-btn-h);
    border-radius: var(--pf-radius-lg);
    background: var(--pf-green);
    color: #FFFFFF;
    box-shadow: none;
}

.pf-auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 17, 20, 0.08);
}

.pf-auth-button--secondary {
    background: #ffffff;
    color: #111214;
    border: 1px solid var(--pf-border);
    box-shadow: none;
}

.pf-auth-visibility {
    width: 34px;
    height: 34px;
}

.pf-otp-group {
    gap: 10px;
}

.pf-otp-slot {
    border-radius: 12px;
    border-color: var(--pf-border);
    font-size: 18px;
}

.pf-otp-slot:focus {
    border-color: var(--pf-purple-ink);
    box-shadow: 0 0 0 3px rgba(113, 57, 160, 0.14);
}

.pf-auth-otp-actions {
    gap: 10px;
}

.pf-auth-otp-timer {
    font-size: 12px;
    color: var(--pf-muted);
}

.pf-auth-link:disabled,
.pf-auth-link[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}


@media (min-width: 992px) and (max-width: 1180px) {
    .pf-auth-panel {
        grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    }

    .pf-auth-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .pf-auth-body__inner {
        width: min(100%, 440px);
        gap: 10px;
    }

    .pf-auth-title {
        font-size: clamp(22px, 2.1vw, 27px);
    }

    .pf-auth-hero__caption {
        left: 28px;
        width: min(480px, calc(100% - 56px));
        max-width: 480px;
        bottom: 28px;
    }

    .pf-auth-hero__headline {
        font-size: clamp(28px, 2.7vw, 38px);
    }

    .pf-auth-hero__subline {
        font-size: clamp(16px, 1.35vw, 20px);
    }
}

/* Brand logo uploader (signup step 1) */
.pf-logo-uploader{
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 12px;
  border: 1px dashed rgba(42, 24, 78, 0.18);
  border-radius: 14px;
  background: rgba(42, 24, 78, 0.03);
  transition: border-color .18s ease, background-color .18s ease;
}
.pf-logo-uploader:hover{
  border-color: rgba(113, 57, 160, 0.55);
  background: rgba(113, 57, 160, 0.05);
}
.pf-logo-uploader__preview{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(42, 24, 78, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pf-logo-uploader__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-logo-uploader__fallback{
  font-weight: 700;
  color: rgba(15, 23, 42, 0.7);
  font-size: 12px;
  letter-spacing: .02em;
}
.pf-logo-uploader__meta{ display: grid; gap: 4px; }
.pf-logo-uploader__title{ font-weight: 600; font-size: 14px; color: #0f172a; }
.pf-logo-uploader__hint{ font-weight: 500; font-size: 12px; color: rgba(15,23,42,0.6); }
.pf-logo-uploader__input{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* =========================================================
   EliteX PartnerFlow — Auth Layout v5 (Perfect Fit + Sticky CTA)
   Goals:
   - Logo at top, smaller (no clipping)
   - Fixed header area, scrollable form region on short screens
   - Sticky primary action at bottom
   - Works on laptops + ultra-wide + mobile
   ========================================================= */

/* Top spacing: avoid clipped brand mark on smaller laptop heights */
.pf-auth-body{
  margin-top: -16px;
  padding-top: 14px;
}

.pf-auth-top{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-auth-brand{
  margin: 0;
  justify-content: center;
}

.pf-auth-brand__badge{
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

/* Modern, tighter tabs */
.pf-auth-switcher{
  border-radius: 16px;
  padding: 4px;
}
.pf-auth-switcher__button{
  min-height: 40px;
  border-radius: 12px;
  font-weight: 600;
}

/* Stage: contains the currently active view */
.pf-auth-stage{
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Views are now split into scroll content + sticky CTA */
.pf-auth-view{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-auth-view__content{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px; /* breathing before sticky CTA */
}

.pf-auth-view__sticky{
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 12px;
  padding-bottom: 10px;
}

.pf-auth-view__sticky .pf-auth-button{
  margin-top: 0;
}

/* Compact signup stepper (less vertical waste) */
.pf-signup-progress{
  gap: 10px;
}
.pf-signup-progress__item{
  min-height: 40px;
  border-radius: 14px;
  padding: 0 12px;
  box-shadow: none;
}
.pf-signup-progress__index{
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.pf-signup-progress__text{
  font-size: 12px;
}

/* Sticky actions in signup steps (keeps Continue always visible) */
.pf-signup-step__actions{
  position: sticky;
  bottom: 0;
  z-index: 6;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 12px;
  padding-bottom: 10px;
  margin-top: 10px;
}

/* Make the logo upload row slimmer + premium (subtle purple tint) */
.pf-logo-uploader{
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 24, 78, 0.14);
  border-radius: 14px;
  background: #ffffff;
}
.pf-logo-uploader:hover{
  border-color: rgba(113, 57, 160, 0.45);
  background: rgba(113, 57, 160, 0.03);
}
.pf-logo-uploader__preview{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(42, 24, 78, 0.06);
}
.pf-logo-uploader__title{ font-size: 13px; }
.pf-logo-uploader__hint{ font-size: 12px; }

/* Desktop + Laptop: fix-fit shell with internal scrolling */
@media (min-width: 992px){
  .pf-auth-body{
    padding-top: 0;
    margin-top: 0;
    overflow: hidden; /* stage will scroll */
    align-items: stretch;
  }

  .pf-auth-body__inner{
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .pf-auth-top{
    flex: 0 0 auto;
    padding-top: 6px;
  }

  .pf-auth-stage{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.22) transparent;
  }
  .pf-auth-stage::-webkit-scrollbar{ width: 6px; }
  .pf-auth-stage::-webkit-scrollbar-track{ background: transparent; }
  .pf-auth-stage::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.20); border-radius: 999px; }
  .pf-auth-stage::-webkit-scrollbar-thumb:hover{ background: rgba(0,0,0,.32); }

  /* Keep content from being hidden behind sticky areas */
  .pf-auth-view__content{ padding-bottom: 22px; }

  /* On short laptop heights, tighten paddings a bit */
  @media (max-height: 820px){
    .pf-auth-body{ padding-top: 18px; padding-bottom: 18px; }
    .pf-auth-title{ font-size: clamp(22px, 2vw, 28px); }
    .pf-auth-description{ font-size: 13px; }
    .pf-auth-view__sticky{ padding-top: 10px; padding-bottom: 8px; }
    .pf-signup-step__actions{ padding-top: 10px; padding-bottom: 8px; }
  }
}

/* Mobile: ensure the brand never clips above the fold */
@media (max-width: 991px){
  .pf-auth-body{ padding-top: 18px; }
}

/* =========================================================
   EliteX PartnerFlow — Auth Layout v5.1
   Fixes:
   - Center-align panel on desktop/laptop when there is extra space
   - Add breathing room so the layout doesn't feel cramped
   - Keep short-height laptops usable (falls back to top-aligned with scroll)
   ========================================================= */

/* Slightly more generous default spacing inside the stage */
.pf-auth-view{ gap: 14px; }
.pf-auth-view__content{ gap: 14px; }
.pf-auth-view__sticky{
  padding-top: 14px;
  padding-bottom: 12px;
  border-top-color: rgba(0,0,0,0.07);
}

/* Mobile / tablet: keep content centered horizontally and avoid edge-cramp */
@media (max-width: 991px){
  .pf-auth-body{ padding-left: 18px; padding-right: 18px; }
  .pf-auth-body__inner{ max-width: 520px; margin: 0 auto; }
}

/* Desktop / laptop: vertically center the whole auth module when there is room */
@media (min-width: 992px){
  .pf-auth-body{
    align-items: center !important;
    justify-content: center !important;
    padding-top: clamp(26px, 4vh, 56px) !important;
    padding-bottom: clamp(26px, 4vh, 56px) !important;
  }

  .pf-auth-body__inner{
    width: min(100%, 520px) !important;
    height: min(100%, 820px) !important;
  }

  .pf-auth-top{ padding-top: 0 !important; }
  .pf-auth-stage{ padding-top: 4px; padding-bottom: 4px; }
}

/* Short-height laptops: revert to top-aligned layout so nothing feels forced */
@media (min-width: 992px) and (max-height: 760px){
  .pf-auth-body{
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .pf-auth-body__inner{ height: 100% !important; }
  .pf-auth-top{ padding-top: 6px !important; }
}
