body.auth-page--neon {
    background: #020304;
}

body.auth-page--neon .page-backdrop {
    display: none;
}

body.auth-page--neon .page-glow {
    display: none;
}

body.auth-page--neon::before {
    background-image:
        radial-gradient(circle at 18% 18%, rgba(255, 45, 170, 0.16), transparent 38%),
        radial-gradient(circle at 80% 12%, rgba(139, 92, 255, 0.2), transparent 40%),
        radial-gradient(circle at 16% 80%, rgba(57, 255, 136, 0.1), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(0, 229, 255, 0.12), transparent 42%),
        radial-gradient(rgba(255, 255, 255, 0.16) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(255, 45, 170, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(139, 92, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, auto, auto, 42px 42px, 82px 82px, 82px 82px;
    mask-image: none;
    opacity: 1;
}

body.auth-page--neon .site-shell {
    width: min(100%, calc(100% - 1rem));
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 0.5rem 0;
}

body.auth-page--neon .site-header {
    display: none;
}

body.auth-page--neon .brand__mark {
    background: linear-gradient(135deg, #39FF88, #00E5FF);
    color: #02110A;
    box-shadow: 0 0 28px rgba(57, 255, 136, 0.42);
}

body.auth-page--neon .theme-toggle {
    border-color: rgba(0, 229, 255, 0.4);
}

.auth-neon {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 1.75rem;
    padding: 1rem;
    isolation: isolate;
}

.auth-neon__aurora {
    position: absolute;
    inset: -30% -12%;
    background:
        conic-gradient(from 12deg at 32% 40%, rgba(255, 45, 170, 0.34), rgba(139, 92, 255, 0.34), rgba(255, 45, 170, 0.3), rgba(0, 229, 255, 0.16), rgba(255, 45, 170, 0.34));
    filter: blur(48px) saturate(135%);
    opacity: 0.94;
    animation: auth-neon-aurora 18s linear infinite;
    z-index: -3;
}

.auth-neon__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.78;
    animation: auth-neon-float 12s ease-in-out infinite;
}

.orb--green {
    width: 12rem;
    height: 12rem;
    left: -2rem;
    top: 5%;
    background: radial-gradient(circle, rgba(57, 255, 136, 0.25), rgba(57, 255, 136, 0));
}

.orb--pink {
    width: 14rem;
    height: 14rem;
    right: -2rem;
    top: 15%;
    background: radial-gradient(circle, rgba(255, 45, 170, 0.48), rgba(255, 45, 170, 0));
    animation-delay: -5s;
}

.orb--cyan {
    width: 10rem;
    height: 10rem;
    left: 10%;
    bottom: 4%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.24), rgba(0, 229, 255, 0));
    animation-delay: -2s;
}

.orb--orange {
    width: 11rem;
    height: 11rem;
    right: 12%;
    bottom: -2rem;
    background: radial-gradient(circle, rgba(139, 92, 255, 0.42), rgba(139, 92, 255, 0));
    animation-delay: -7s;
}

.auth-neon-card {
    position: relative;
    width: min(420px, 92vw);
    border-radius: 1.72rem;
    padding: 1.6rem;
    border: 1px solid rgba(255, 45, 170, 0.34);
    background: linear-gradient(160deg, rgba(11, 16, 22, 0.94), rgba(6, 9, 13, 0.92));
    box-shadow:
        0 30px 96px rgba(0, 0, 0, 0.76),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 1px rgba(255, 45, 170, 0.26),
        0 0 42px rgba(139, 92, 255, 0.24);
    backdrop-filter: blur(20px);
    animation: auth-neon-pop 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-neon__logo {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #FF2DAA, #8B5CFF);
    box-shadow: 0 0 0 1px rgba(255, 45, 170, 0.42), 0 14px 34px rgba(139, 92, 255, 0.35);
}

.auth-neon__logo--image {
    display: block;
    object-fit: contain;
    padding: 0;
    background: transparent;
}

.auth-neon__kicker {
    margin: 0;
    color: #FFC6E8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.auth-neon__title {
    margin: 0.5rem 0 0;
    font-size: clamp(1.9rem, 4.8vw, 2.35rem);
    color: #F5F8FF;
    line-height: 1.06;
}

.auth-neon__subtitle {
    margin: 0.5rem 0 0;
    color: #D7D2FF;
    font-weight: 600;
}

.auth-neon__hint,
.auth-neon__alert {
    margin-top: 1rem;
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    font-size: 0.93rem;
}

.auth-neon__hint {
    border: 1px solid rgba(139, 92, 255, 0.42);
    background: rgba(139, 92, 255, 0.14);
    color: #E4DBFF;
}

.auth-neon__alert {
    border: 1px solid rgba(255, 45, 170, 0.45);
    background: rgba(255, 45, 170, 0.16);
    color: #FFD2EF;
}

.auth-neon-form {
    margin-top: 1.1rem;
    display: grid;
    gap: 1rem;
}

.auth-neon-field {
    display: grid;
    gap: 0.42rem;
}

.auth-neon-field span {
    font-size: 0.88rem;
    color: #CFE4FF;
}

.auth-neon-field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.95rem;
    background: rgba(6, 9, 13, 0.9);
    color: #F4F8FF;
    padding: 0.88rem 0.95rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-neon-field input::placeholder {
    color: rgba(203, 219, 247, 0.64);
}

.auth-neon-field input:focus {
    border-color: #39FF88;
    box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.18), 0 0 24px rgba(255, 45, 170, 0.2);
    transform: translateY(-1px);
}

.auth-neon-button {
    margin-top: 0.15rem;
    min-height: 3rem;
    border: 0;
    border-radius: 0.95rem;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #FF2DAA, #8B5CFF 48%, #FF2DAA 90%);
    box-shadow: 0 0 0 1px rgba(255, 45, 170, 0.48), 0 14px 38px rgba(139, 92, 255, 0.42);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-neon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.52), 0 20px 44px rgba(139, 92, 255, 0.45);
    filter: brightness(1.03);
}

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

.auth-neon__switch {
    margin-top: 1rem;
    color: #CFDFFF;
    font-size: 0.95rem;
}

.auth-neon__switch a {
    color: #FF2DAA;
    text-decoration: none;
    font-weight: 700;
}

.auth-neon__switch a:hover {
    color: #00E5FF;
}

@keyframes auth-neon-aurora {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.08);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes auth-neon-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes auth-neon-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    body.auth-page--neon .site-shell {
        padding: 0;
    }

    .auth-neon {
        border-radius: 0;
        min-height: 100vh;
        padding: 0.9rem;
    }

    .auth-neon-card {
        width: 92vw;
        padding: 1.2rem;
        border-radius: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-neon__aurora,
    .orb,
    .auth-neon-card,
    .auth-neon-field input,
    .auth-neon-button {
        animation: none !important;
        transition: none !important;
    }
}
