/* Auth — immersive studio layout (login & signup) */

body.auth-body::before,
body.auth-body::after {
    display: none !important;
}

.auth-body {
    margin: 0;
    min-height: 100dvh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #eef0f8;
    background: #070720;
    position: relative;
    overflow-x: clip;
}

/* ── Ambient background ── */
.auth-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-scene__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(89, 0, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89, 0, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 10%, transparent 72%);
}

.auth-scene__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: auth-float 14s ease-in-out infinite alternate;
}

.auth-scene__orb--1 {
    width: min(480px, 75vw);
    height: min(480px, 75vw);
    top: -12%;
    left: -8%;
    background: #5900ff;
}

.auth-scene__orb--2 {
    width: min(360px, 60vw);
    height: min(360px, 60vw);
    top: 40%;
    right: -10%;
    background: #24ffab;
    animation-delay: -4s;
}

.auth-scene__orb--3 {
    width: min(280px, 50vw);
    height: min(280px, 50vw);
    bottom: -5%;
    left: 30%;
    background: #3d1a8a;
    animation-delay: -8s;
}

@keyframes auth-float {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(18px, -24px) scale(1.06); }
}

.auth-dev-banner {
    position: relative;
    z-index: 5;
    background: #dc3545;
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    padding: 0.35rem;
}

.auth-messages {
    position: relative;
    z-index: 5;
    padding: 0.75rem 1rem 0;
    max-width: 440px;
    margin: 0 auto;
}

.auth-alert {
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.auth-alert--error,
.auth-alert--danger {
    background: rgba(255, 107, 107, 0.14);
    border: 1px solid rgba(255, 107, 107, 0.35);
}

.auth-alert--success {
    background: rgba(36, 255, 171, 0.12);
    border: 1px solid rgba(36, 255, 171, 0.28);
}

.auth-alert--info {
    background: rgba(89, 0, 255, 0.14);
    border: 1px solid rgba(89, 0, 255, 0.28);
}

/* ── Page shell ── */
.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 2rem;
}

@media (min-width: 768px) {
    .auth-page {
        padding: 1.5rem 2rem 2.5rem;
    }
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem 0.4rem 0.45rem;
    text-decoration: none;
    color: #eef0f8;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, background 0.2s;
}

.auth-brand:hover {
    color: #fff;
    border-color: rgba(36, 255, 171, 0.35);
    background: rgba(36, 255, 171, 0.06);
}

.auth-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* ── Checkout promo (signup) ── */
.auth-promo-block {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-promo-block__steps {
    width: 100%;
}

.auth-promo-block__steps--login {
    max-width: 440px;
    margin: 0 auto 1rem;
}

.auth-promo-hero {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.auth-promo-hero__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.auth-page--checkout .auth-panel {
    margin-top: 1.25rem;
}

.auth-page--login .auth-brand {
    margin-bottom: 0.85rem;
}

.auth-page--login .auth-intro {
    margin-bottom: 1rem;
    padding-top: 0;
}

@media (max-width: 520px) {
    .auth-page--login {
        padding-top: 0.65rem;
    }

    .auth-page--login .auth-intro__title {
        font-size: clamp(1.55rem, 5vw, 2.75rem);
    }

    .auth-page--login .auth-intro {
        margin-bottom: 0.85rem;
    }
}

@media (min-width: 768px) {
    .auth-page--checkout .auth-panel {
        margin-top: 1.5rem;
    }
}

/* ── Checkout progress bar ── */
.auth-checkout-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 520px) {
    .auth-checkout-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.auth-checkout-bar__secure {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #24ffab;
    background: rgba(36, 255, 171, 0.1);
    border: none;
    border-radius: 999px;
    width: fit-content;
}

.auth-checkout-bar__steps {
    list-style: none;
    margin: 0;
    padding: 0.45rem 0.65rem;
    display: flex;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 999px;
}

.auth-checkout-bar__steps li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: rgba(238, 240, 248, 0.45);
    padding: 0 0.35rem;
}

.auth-checkout-bar__steps li.is-active {
    color: #fff;
    font-weight: 600;
}

.auth-checkout-bar__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
}

.auth-checkout-bar__steps li.is-active .auth-checkout-bar__dot {
    background: linear-gradient(135deg, #5900ff, #7c3dff);
    box-shadow: 0 0 12px rgba(89, 0, 255, 0.5);
}

.auth-checkout-bar__label {
    display: none;
}

@media (min-width: 420px) {
    .auth-checkout-bar__label {
        display: inline;
    }
}

/* ── Intro / headline ── */
.auth-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    padding-top: 0.5rem;
}

.auth-intro__eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #24ffab;
    background: rgba(36, 255, 171, 0.1);
    border: 1px solid rgba(36, 255, 171, 0.22);
    border-radius: 999px;
}

.auth-intro__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 5.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.auth-intro__title em {
    font-style: normal;
    background: linear-gradient(135deg, #fff 0%, #b8a0ff 55%, #24ffab 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-intro__lead {
    margin: 0 auto;
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(238, 240, 248, 0.62);
}

/* ── Bento perks ── */
.auth-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 640px;
    margin: 1.35rem auto 0;
}

@media (max-width: 520px) {
    .auth-bento {
        grid-template-columns: 1fr;
    }
}

.auth-bento__item {
    padding: 0.85rem 0.9rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.auth-bento__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #24ffab;
    background: rgba(36, 255, 171, 0.12);
    border-radius: 10px;
}

.auth-bento__text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(238, 240, 248, 0.78);
}

/* ── Form panel ── */
.auth-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 1.65rem 1.35rem 1.5rem;
    background: rgba(14, 14, 38, 0.82);
    border: none;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

@media (min-width: 480px) {
    .auth-panel {
        padding: 2rem 1.75rem 1.65rem;
    }
}

.auth-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    padding-bottom: 0;
    border-bottom: none;
}

.auth-panel__mode {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.auth-panel__switch {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(238, 240, 248, 0.55);
    text-align: right;
    line-height: 1.35;
}

.auth-panel__switch a {
    color: #9d7aff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.auth-panel__switch a:hover {
    color: #24ffab;
}

.auth-panel .form-label,
.auth-panel label {
    color: rgba(238, 240, 248, 0.88) !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-panel .form-control,
.auth-panel input[type="email"],
.auth-panel input[type="password"],
.auth-panel input[type="text"],
.auth-panel input[type="tel"] {
    background: rgba(0, 0, 0, 0.28) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 0.7rem 0.9rem !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    transition: background 0.15s, box-shadow 0.15s;
}

.auth-panel .form-control:focus {
    background: rgba(0, 0, 0, 0.38) !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(124, 61, 255, 0.28) !important;
}

.auth-panel .form-text,
.auth-panel .helptext,
.auth-panel small.form-text {
    color: rgba(238, 240, 248, 0.48) !important;
    font-size: 0.78rem !important;
}

.auth-panel .invalid-feedback,
.auth-panel .text-danger {
    color: #ff9a9a !important;
    font-size: 0.8rem !important;
}

.auth-panel .asteriskField {
    color: #ff9a9a;
}

.auth-panel .mb-3 {
    margin-bottom: 0.95rem !important;
}

.auth-forgot {
    margin: 0.5rem 0 0;
    text-align: right;
    font-size: 0.82rem;
}

.auth-forgot a {
    color: rgba(238, 240, 248, 0.55);
    text-decoration: none;
}

.auth-forgot a:hover {
    color: #24ffab;
}

.auth-legal {
    margin: 0.85rem 0 0;
    font-size: 0.76rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(238, 240, 248, 0.45);
}

.auth-legal a {
    color: #9d7aff;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 1.15rem;
    padding: 0.9rem 1.25rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #070720;
    background: linear-gradient(135deg, #24ffab 0%, #1ad693 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(36, 255, 171, 0.28);
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(36, 255, 171, 0.38);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.auth-submit--ghost {
    color: #eef0f8;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    box-shadow: none;
}

.auth-submit--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.15rem 0;
    font-size: 0.78rem;
    color: rgba(238, 240, 248, 0.35);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #eef0f8;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 14px;
    transition: background 0.15s;
}

.auth-google-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.auth-google-btn img {
    width: 22px;
    height: 22px;
}

.auth-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(238, 240, 248, 0.38);
}

.auth-foot a {
    color: rgba(238, 240, 248, 0.55);
    text-decoration: none;
}

.auth-foot a:hover {
    color: #24ffab;
}

#id_username {
    display: none !important;
}

#id_username + label,
label[for="id_username"] {
    display: none !important;
}
