.cj-auth-page {
    --cj-auth-error: #ff8e78;
    --cj-auth-success: #83e2ac;
    --cj-auth-field: #0a1020;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--cj-b-night);
}

.cj-auth-page .cj-site-header {
    position: relative;
    background: rgba(7, 11, 24, 0.92);
}

.cj-auth-main {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 75px);
    overflow: hidden;
}

.cj-auth-main::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(rgba(196, 207, 238, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 207, 238, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    opacity: 0.48;
    mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

.cj-auth-main::after {
    position: absolute;
    z-index: -1;
    top: -360px;
    left: 50%;
    width: 1100px;
    height: 880px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(83, 73, 184, 0.24), transparent 66%);
    content: "";
    pointer-events: none;
}

.cj-auth-stage {
    display: flex;
    min-height: calc(100vh - 75px);
    align-items: center;
    padding-block: clamp(56px, 8vw, 108px);
}

.cj-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
    gap: clamp(58px, 8vw, 126px);
    align-items: center;
}

.cj-auth-grid--compact {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.62fr);
}

.cj-auth-copy {
    max-width: 640px;
}

.cj-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--cj-b-coral-bright);
    font-size: 12px;
    font-weight: 790;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cj-auth-eyebrow::before {
    width: 24px;
    height: 1px;
    background: currentColor;
    content: "";
}

.cj-auth-copy h1,
.cj-auth-card h1 {
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.cj-auth-copy h1 {
    max-width: 650px;
    font-size: clamp(46px, 5.5vw, 76px);
    line-height: 0.99;
}

.cj-auth-copy h1 span {
    color: #aeb6c8;
}

.cj-auth-lead {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--cj-b-muted);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.65;
}

.cj-auth-proof {
    display: grid;
    margin: 38px 0 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--cj-b-line);
    border-bottom: 1px solid var(--cj-b-line);
    list-style: none;
}

.cj-auth-proof li {
    min-width: 0;
    padding: 21px 18px 21px 0;
}

.cj-auth-proof li + li {
    padding-left: 18px;
    border-left: 1px solid var(--cj-b-line);
}

.cj-auth-proof strong,
.cj-auth-proof span {
    display: block;
}

.cj-auth-proof strong {
    color: white;
    font-size: 14px;
    font-weight: 730;
}

.cj-auth-proof span {
    margin-top: 4px;
    color: var(--cj-b-dim);
    font-size: 12px;
    line-height: 1.5;
}

.cj-auth-sequence {
    display: grid;
    margin-top: 34px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--cj-b-line);
    border-radius: var(--cj-b-radius-md);
    background: rgba(12, 18, 36, 0.7);
}

.cj-auth-sequence__step {
    position: relative;
    min-width: 0;
    padding: 18px;
}

.cj-auth-sequence__step + .cj-auth-sequence__step {
    border-left: 1px solid var(--cj-b-line);
}

.cj-auth-sequence__step small,
.cj-auth-sequence__step strong {
    display: block;
}

.cj-auth-sequence__step small {
    color: var(--cj-b-coral-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cj-auth-sequence__step strong {
    margin-top: 8px;
    overflow: hidden;
    color: #dfe4ee;
    font-size: 13px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cj-auth-card {
    width: 100%;
    padding: clamp(27px, 3.2vw, 42px);
    border: 1px solid var(--cj-b-line-strong);
    border-radius: var(--cj-b-radius-md);
    background: rgba(16, 23, 43, 0.96);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.cj-auth-card--narrow {
    max-width: 500px;
    justify-self: end;
}

.cj-auth-card__heading {
    margin-bottom: 28px;
}

.cj-auth-card__heading h1 {
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.12;
}

.cj-auth-card__heading p {
    margin: 10px 0 0;
    color: var(--cj-b-muted);
    font-size: 14px;
    line-height: 1.65;
}

.cj-auth-card__heading strong {
    color: #e8ebf2;
    font-weight: 700;
}

.cj-auth-form {
    display: grid;
    gap: 18px;
}

.cj-auth-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cj-auth-field {
    display: grid;
    gap: 7px;
}

.cj-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cj-auth-label,
.cj-auth-label-row label {
    color: #d5dae5;
    font-size: 13px;
    font-weight: 680;
}

.cj-auth-label-row a {
    color: #bdb5ff;
    font-size: 12px;
    font-weight: 700;
}

.cj-auth-label-row a:hover,
.cj-auth-inline-link:hover,
.cj-auth-footer a:hover {
    color: white;
}

.cj-auth-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(210, 221, 255, 0.19);
    border-radius: var(--cj-b-radius-sm);
    outline: none;
    background: var(--cj-auth-field);
    color: white;
    font: inherit;
    font-size: 15px;
    transition:
        border-color 170ms var(--cj-b-ease),
        box-shadow 170ms var(--cj-b-ease),
        background-color 170ms var(--cj-b-ease);
}

.cj-auth-input::placeholder {
    color: #656f85;
}

.cj-auth-input:hover {
    border-color: rgba(210, 221, 255, 0.32);
}

.cj-auth-input:focus {
    border-color: var(--cj-b-violet);
    background: #0b1122;
    box-shadow: 0 0 0 3px rgba(136, 103, 255, 0.17);
}

.cj-auth-help,
.cj-auth-error {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.cj-auth-help {
    color: var(--cj-b-dim);
}

.cj-auth-error {
    color: var(--cj-auth-error);
    font-weight: 650;
}

.cj-auth-notice {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: var(--cj-b-radius-sm);
    font-size: 13px;
    line-height: 1.55;
}

.cj-auth-notice--error {
    border-color: rgba(255, 142, 120, 0.32);
    background: rgba(255, 96, 68, 0.09);
    color: #ffc0b3;
}

.cj-auth-notice--success {
    border-color: rgba(110, 214, 160, 0.3);
    background: rgba(110, 214, 160, 0.09);
    color: var(--cj-auth-success);
}

.cj-auth-submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    border: 0;
    border-radius: var(--cj-b-radius-sm);
    background: var(--cj-b-coral);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 780;
    cursor: pointer;
    box-shadow: 0 14px 38px rgba(255, 96, 68, 0.2);
    transition:
        transform 180ms var(--cj-b-ease),
        background-color 180ms var(--cj-b-ease),
        box-shadow 180ms var(--cj-b-ease);
}

.cj-auth-submit:hover {
    transform: translateY(-2px);
    background: var(--cj-b-coral-bright);
    box-shadow: 0 18px 44px rgba(255, 96, 68, 0.26);
}

.cj-auth-submit:active {
    transform: translateY(0);
}

.cj-auth-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.cj-auth-inline {
    margin: 20px 0 0;
    color: var(--cj-b-muted);
    font-size: 13px;
    text-align: center;
}

.cj-auth-inline-link {
    color: #c4bcff;
    font-weight: 720;
}

.cj-auth-terms {
    margin: 16px 0 0;
    color: var(--cj-b-dim);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.cj-auth-terms a {
    color: #aeb6c8;
    text-decoration: underline;
    text-decoration-color: rgba(174, 182, 200, 0.35);
    text-underline-offset: 3px;
}

.cj-auth-assurance {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 15px 0 0;
    color: var(--cj-b-muted);
    font-size: 12px;
    line-height: 1.55;
}

.cj-auth-assurance::before {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(110, 214, 160, 0.13);
    color: var(--cj-b-green);
    content: "✓";
    font-size: 11px;
    font-weight: 850;
}

.cj-auth-prompt {
    display: none;
    margin: 0 0 22px;
    padding: 15px 16px;
    border-left: 2px solid var(--cj-b-violet);
    background: rgba(136, 103, 255, 0.08);
}

.cj-auth-prompt[data-visible="true"] {
    display: block;
}

.cj-auth-prompt small,
.cj-auth-prompt p {
    display: block;
    margin: 0;
}

.cj-auth-prompt small {
    color: #bcb4ff;
    font-size: 10px;
    font-weight: 790;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cj-auth-prompt p {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: #dce1ec;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cj-auth-status {
    text-align: center;
}

.cj-auth-status__mark {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid var(--cj-b-line-strong);
    border-radius: 15px;
    background: white;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.cj-auth-status__mark img {
    width: 58px;
    height: 58px;
}

.cj-auth-status__progress {
    position: relative;
    height: 3px;
    margin: 25px 0 22px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(210, 221, 255, 0.1);
}

.cj-auth-status__progress span {
    display: block;
    width: 18%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cj-b-violet), var(--cj-b-coral));
    transition: width 420ms var(--cj-b-ease);
}

.cj-auth-status__steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--cj-b-dim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    list-style: none;
    text-transform: uppercase;
}

.cj-auth-status__steps li[data-complete="true"] {
    color: var(--cj-b-green);
}

.cj-auth-status__message {
    min-height: 24px;
    margin: 10px 0 0;
    color: var(--cj-b-muted);
    font-size: 14px;
}

.cj-auth-status__error {
    margin-top: 18px;
    color: #ffc0b3;
    font-size: 13px;
}

.cj-auth-empty-code {
    margin: 0 0 12px;
    color: var(--cj-b-coral-bright);
    font-size: 12px;
    font-weight: 790;
    letter-spacing: 0.12em;
}

.cj-auth-footer {
    border-top: 1px solid var(--cj-b-line);
    background: #050913;
}

.cj-auth-footer__inner {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--cj-b-dim);
    font-size: 12px;
}

.cj-auth-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cj-auth-footer a {
    color: #a6adbd;
    font-weight: 630;
}

@media (max-width: 1020px) {
    .cj-auth-grid,
    .cj-auth-grid--compact {
        grid-template-columns: minmax(0, 0.8fr) minmax(390px, 0.72fr);
        gap: 48px;
    }

    .cj-auth-copy h1 {
        font-size: clamp(42px, 5.8vw, 60px);
    }

    .cj-auth-proof {
        grid-template-columns: 1fr;
    }

    .cj-auth-proof li,
    .cj-auth-proof li + li {
        padding: 12px 0;
        border-left: 0;
    }

    .cj-auth-proof li + li {
        border-top: 1px solid var(--cj-b-line);
    }
}

@media (max-width: 820px) {
    .cj-auth-stage {
        min-height: auto;
        padding-block: 44px 64px;
    }

    .cj-auth-grid,
    .cj-auth-grid--compact {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .cj-auth-copy {
        max-width: 620px;
    }

    .cj-auth-copy h1 {
        max-width: 620px;
        font-size: clamp(40px, 8vw, 58px);
    }

    .cj-auth-lead {
        margin-top: 18px;
    }

    .cj-auth-proof {
        display: none;
    }

    .cj-auth-sequence {
        margin-top: 24px;
    }

    .cj-auth-card--narrow {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 560px) {
    .cj-auth-main::after {
        top: -260px;
        width: 760px;
        height: 620px;
    }

    .cj-auth-stage {
        padding-block: 30px 46px;
    }

    .cj-auth-grid,
    .cj-auth-grid--compact {
        gap: 24px;
    }

    .cj-auth-copy h1 {
        font-size: clamp(36px, 11vw, 48px);
        line-height: 1.02;
    }

    .cj-auth-lead {
        font-size: 15px;
        line-height: 1.6;
    }

    .cj-auth-sequence {
        display: none;
    }

    .cj-auth-card {
        padding: 24px 18px;
    }

    .cj-auth-card__heading {
        margin-bottom: 22px;
    }

    .cj-auth-card__heading h1 {
        font-size: 27px;
    }

    .cj-auth-footer__inner {
        padding-block: 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cj-auth-page *,
    .cj-auth-page *::before,
    .cj-auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
