body.rnp-auth-ui {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(45, 145, 255, 0.16), transparent 28rem),
        linear-gradient(145deg, #071126 0%, #0b1830 46%, #f4f7fb 46%);
}

.auth-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 17, 38, 0.9);
    color: #ffffff;
    backdrop-filter: blur(16px);
}

.auth-header-inner,
.auth-footer-inner {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--rnp-space-5);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

.auth-brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #3ba2ff, #0966d4);
    box-shadow: 0 8px 24px rgba(20, 120, 242, 0.28);
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-nav a {
    border-radius: var(--rnp-radius-md);
    padding: 0.65rem 0.85rem;
    color: #aebbd0;
    font-size: 0.74rem;
    font-weight: 700;
}

.auth-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.auth-header .auth-header-action {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.auth-main {
    display: grid;
    min-height: calc(100vh - 9rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 5rem) 0;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 0.75fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
}

.auth-story {
    max-width: 38rem;
    color: #ffffff;
}

.auth-badge {
    margin-bottom: var(--rnp-space-5);
    border: 1px solid rgba(65, 215, 247, 0.25);
    background: rgba(65, 215, 247, 0.1);
    color: #9beeff;
}

.auth-story h1 {
    max-width: 10ch;
    margin-bottom: var(--rnp-space-4);
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    font-weight: 800;
}

.auth-story > p {
    max-width: 36rem;
    margin-bottom: var(--rnp-space-6);
    color: #aebbd0;
    font-size: clamp(0.95rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.auth-benefits {
    display: grid;
    gap: var(--rnp-space-4);
    margin: 0 0 var(--rnp-space-6);
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: center;
    gap: var(--rnp-space-3);
}

.auth-benefit-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--rnp-radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--rnp-accent);
}

.auth-benefit-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

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

.auth-benefits strong {
    font-size: 0.82rem;
}

.auth-benefits small {
    margin-top: 0.18rem;
    color: #8998b1;
    font-size: 0.7rem;
    line-height: 1.55;
}

.auth-marketplace-link {
    display: inline-flex;
    align-items: center;
    gap: var(--rnp-space-2);
    color: #bdeeff;
    font-size: 0.75rem;
    font-weight: 800;
}

.auth-marketplace-link svg {
    width: 1rem;
}

.auth-card {
    width: 100%;
    border: 0;
    border-radius: var(--rnp-radius-xl);
    padding: clamp(1.35rem, 3vw, 2.25rem);
    box-shadow: 0 30px 80px rgba(3, 12, 29, 0.28);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rnp-space-1);
    margin-bottom: var(--rnp-space-6);
    border-radius: var(--rnp-radius-md);
    background: #eef3f9;
    padding: var(--rnp-space-1);
}

.auth-tabs button {
    min-height: 2.65rem;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--rnp-muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
}

.auth-tabs button[aria-selected="true"] {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(21, 43, 75, 0.08);
    color: var(--rnp-text);
}

.auth-heading {
    margin-bottom: var(--rnp-space-5);
}

.auth-eyebrow {
    margin-bottom: 0.35rem;
    color: var(--rnp-brand-hover);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin-bottom: var(--rnp-space-2);
    color: var(--rnp-ink);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.auth-heading > p:last-child {
    margin-bottom: 0;
    color: var(--rnp-muted);
    font-size: 0.76rem;
    line-height: 1.6;
}

.auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rnp-space-3);
}

.auth-social-provider {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--rnp-border);
    border-radius: var(--rnp-radius-md);
    background: #ffffff;
}

.auth-social-result {
    display: grid;
    gap: var(--rnp-space-2);
    margin-top: var(--rnp-space-3);
}

.auth-social-result .rnp-button {
    width: 100%;
}

.auth-social-error:empty,
.auth-message:empty {
    display: none;
}

.auth-social-error,
.auth-message {
    margin: var(--rnp-space-3) 0 0;
    border-radius: var(--rnp-radius-md);
    background: #fff1f2;
    padding: var(--rnp-space-3);
    font-size: 0.72rem;
    line-height: 1.5;
}

.auth-message.is-success {
    background: #edf9f3;
    color: var(--rnp-success);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--rnp-space-3);
    margin: var(--rnp-space-5) 0;
    color: #8a97aa;
    font-size: 0.64rem;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--rnp-border);
    content: "";
}

.auth-form {
    display: grid;
    gap: var(--rnp-space-4);
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rnp-space-3);
}

.auth-label-row a {
    color: var(--rnp-brand-hover);
    font-size: 0.67rem;
    font-weight: 800;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .rnp-input {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--rnp-muted);
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: #eef4fb;
    color: var(--rnp-brand-hover);
}

.auth-password-toggle svg {
    width: 1rem;
}

.auth-submit {
    width: 100%;
    min-height: 3rem;
}

.auth-submit[aria-busy="true"] i {
    animation: auth-spin 700ms linear infinite;
}

.auth-lms-notice {
    margin-top: var(--rnp-space-5);
}

.auth-lms-notice a,
.auth-terms a {
    color: var(--rnp-brand-hover);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.auth-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rnp-space-3);
}

.auth-terms {
    margin: var(--rnp-space-4) 0 0;
    color: var(--rnp-muted);
    font-size: 0.64rem;
    line-height: 1.6;
    text-align: center;
}

.auth-footer {
    background: #071126;
    color: #73829b;
}

.auth-footer-inner {
    min-height: 4rem;
    font-size: 0.65rem;
}

.auth-footer-inner > span:last-child {
    display: flex;
    gap: var(--rnp-space-4);
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    body.rnp-auth-ui {
        background: linear-gradient(180deg, #071126 0, #0b1830 33rem, #f4f7fb 33rem);
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: var(--rnp-space-7);
    }

    .auth-story {
        max-width: 44rem;
    }

    .auth-story h1 {
        max-width: 12ch;
    }

    .auth-card {
        max-width: 44rem;
        margin-inline: auto;
    }
}

@media (max-width: 760px) {
    .auth-nav {
        display: none;
    }

    .auth-header-inner {
        min-height: 4.25rem;
    }

    .auth-header-action {
        min-height: 2.4rem;
        padding-inline: 0.7rem;
    }

    .auth-main {
        padding: 2rem 0 3rem;
    }

    .auth-story > p,
    .auth-benefits {
        display: none;
    }

    .auth-story h1 {
        margin-bottom: var(--rnp-space-3);
        font-size: clamp(2.2rem, 12vw, 3.35rem);
    }

    .auth-badge {
        margin-bottom: var(--rnp-space-4);
    }

    .auth-layout {
        gap: var(--rnp-space-6);
    }

    .auth-social,
    .auth-field-grid {
        grid-template-columns: 1fr;
    }

    .auth-footer-inner {
        flex-direction: column;
        justify-content: center;
        padding-block: var(--rnp-space-4);
    }
}

@media (max-width: 420px) {
    .auth-brand > span:last-child {
        display: none;
    }

    .auth-card {
        padding: 1.1rem;
    }
}
