/* NOR Auth Luxury — galaxy center of the app universe
   App palette: #667eea #764ba2 #f093fb #4facfe */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --lux-bg: #0b1020;
    --lux-bg-deep: #070b16;
    --lux-primary: #667eea;
    --lux-secondary: #764ba2;
    --lux-accent: #f093fb;
    --lux-cyan: #4facfe;
    --lux-violet: #667eea;
    --lux-purple: #764ba2;
    --lux-blue: #4facfe;
    --lux-indigo: #1e3a8a;
    --lux-glass: rgba(15, 18, 36, 0.58);
    --lux-border: rgba(255, 255, 255, 0.1);
    --lux-text: rgba(255, 255, 255, 0.94);
    --lux-muted: rgba(226, 232, 255, 0.62);
    --lux-faint: rgba(199, 210, 254, 0.42);
    --lux-radius: 24px;
    --lux-input-radius: 16px;
    --lux-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lux-display: 'Space Grotesk', var(--lux-font);
}

/* ===== PAGE SHELL ===== */
body.auth-page.auth-luxury {
    min-height: 100vh;
    background: var(--lux-bg-deep) !important;
    color: var(--lux-text);
    font-family: var(--lux-font);
    overflow-x: hidden;
    opacity: 0;
    animation: luxBgFade 0.9s ease forwards;
}

@keyframes luxBgFade {
    to { opacity: 1; }
}

body.auth-page.auth-luxury .floating-element {
    display: none !important;
}

.lux-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(102, 126, 234, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 90% 70% at 50% 48%, rgba(118, 75, 162, 0.16) 0%, transparent 62%),
        radial-gradient(ellipse 50% 40% at 18% 22%, rgba(240, 147, 251, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 45% 38% at 84% 78%, rgba(79, 172, 254, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #0d1430 0%, #0b1020 42%, #070b16 100%);
    transform: translate3d(var(--lux-parallax-x, 0px), var(--lux-parallax-y, 0px), 0);
    transition: transform 0.35s ease-out;
}

.lux-galaxy-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.95;
}

.lux-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.lux-nebula-core {
    width: min(720px, 88vw);
    height: min(720px, 88vw);
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(102, 126, 234, 0.38) 18%,
            rgba(118, 75, 162, 0.28) 38%,
            rgba(79, 172, 254, 0.12) 58%,
            transparent 72%);
    animation: luxCorePulse 8s ease-in-out infinite;
}

.lux-nebula-arm-a {
    width: min(980px, 120vw);
    height: min(420px, 52vw);
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%) rotate(-22deg);
    background:
        radial-gradient(ellipse at 50% 50%,
            rgba(102, 126, 234, 0.22) 0%,
            rgba(118, 75, 162, 0.14) 40%,
            transparent 70%);
    filter: blur(48px);
    animation: luxArmSpin 110s linear infinite;
}

.lux-nebula-arm-b {
    width: min(900px, 110vw);
    height: min(380px, 48vw);
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%) rotate(28deg);
    background:
        radial-gradient(ellipse at 50% 50%,
            rgba(240, 147, 251, 0.14) 0%,
            rgba(79, 172, 254, 0.12) 45%,
            transparent 72%);
    filter: blur(52px);
    animation: luxArmSpin 150s linear infinite reverse;
}

.lux-nebula-accent {
    width: min(340px, 55vw);
    height: min(340px, 55vw);
    left: 62%;
    top: 30%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(240, 147, 251, 0.2), transparent 68%);
    filter: blur(36px);
    animation: luxAccentDrift 18s ease-in-out infinite;
}

.lux-nebula-far {
    width: min(520px, 70vw);
    height: min(380px, 50vw);
    left: 18%;
    top: 72%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(79, 172, 254, 0.16), rgba(118, 75, 162, 0.08) 45%, transparent 70%);
    filter: blur(44px);
    animation: luxAccentDrift 26s ease-in-out infinite reverse;
}

/* Aurora curtains */
.lux-aurora {
    position: absolute;
    width: 140%;
    height: 55%;
    left: -20%;
    filter: blur(28px);
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
}

.lux-aurora-1 {
    top: 8%;
    background:
        linear-gradient(115deg,
            transparent 10%,
            rgba(102, 126, 234, 0.22) 35%,
            rgba(240, 147, 251, 0.16) 52%,
            rgba(79, 172, 254, 0.18) 68%,
            transparent 90%);
    animation: luxAuroraSweep 22s ease-in-out infinite;
}

.lux-aurora-2 {
    top: 38%;
    height: 40%;
    opacity: 0.22;
    background:
        linear-gradient(75deg,
            transparent 15%,
            rgba(118, 75, 162, 0.2) 40%,
            rgba(79, 172, 254, 0.14) 60%,
            transparent 85%);
    animation: luxAuroraSweep 28s ease-in-out infinite reverse;
}

/* Soft light beams */
.lux-beam {
    position: absolute;
    width: 2px;
    height: 70vh;
    top: -10%;
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.35), rgba(79, 172, 254, 0.2), transparent);
    filter: blur(1.5px);
    opacity: 0.35;
    transform-origin: top center;
}

.lux-beam-1 {
    left: 22%;
    animation: luxBeamPulse 9s ease-in-out infinite;
}

.lux-beam-2 {
    right: 18%;
    height: 55vh;
    opacity: 0.25;
    background: linear-gradient(180deg, transparent, rgba(240, 147, 251, 0.28), transparent);
    animation: luxBeamPulse 12s ease-in-out infinite 2s;
}

/* Distant glowing orbs / planets */
.lux-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2px);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.25);
    animation: luxOrbFloat 16s ease-in-out infinite;
}

.lux-orb-a {
    width: 14px;
    height: 14px;
    left: 12%;
    top: 24%;
    background: radial-gradient(circle at 35% 35%, #fff, #667eea 40%, #302b63 75%);
    animation-duration: 18s;
}

.lux-orb-b {
    width: 9px;
    height: 9px;
    right: 14%;
    top: 62%;
    background: radial-gradient(circle at 35% 35%, #fff, #f093fb 45%, #764ba2 80%);
    box-shadow: 0 0 28px rgba(240, 147, 251, 0.35);
    animation-duration: 22s;
    animation-delay: -4s;
}

.lux-orb-c {
    width: 6px;
    height: 6px;
    left: 78%;
    top: 18%;
    background: radial-gradient(circle at 35% 35%, #fff, #4facfe 50%, #1e3a8a 85%);
    box-shadow: 0 0 22px rgba(79, 172, 254, 0.4);
    animation-duration: 14s;
    animation-delay: -7s;
}

/* Energy pulse rings around center */
.lux-ring {
    position: absolute;
    left: 50%;
    top: 46%;
    border-radius: 50%;
    border: 1px solid rgba(102, 126, 234, 0.22);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.lux-ring-1 {
    width: min(220px, 40vw);
    height: min(220px, 40vw);
    animation: luxRingPulse 7s ease-out infinite;
}

.lux-ring-2 {
    width: min(220px, 40vw);
    height: min(220px, 40vw);
    border-color: rgba(79, 172, 254, 0.18);
    animation: luxRingPulse 7s ease-out infinite 3.5s;
}

.lux-constellation {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lux-constellation-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.35), transparent);
    transform-origin: left center;
    opacity: 0.35;
    animation: luxConstFade 8s ease-in-out infinite;
}

.lux-constellation-node {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(226, 232, 255, 0.85);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.65);
    animation: luxNodePulse 4s ease-in-out infinite;
}

.lux-orbit {
    position: absolute;
    left: 50%;
    top: 46%;
    border: 1px solid rgba(167, 139, 250, 0.12);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(62deg);
    box-shadow: 0 0 24px rgba(102, 126, 234, 0.08);
}

.lux-orbit::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--lux-cyan) 40%, transparent 70%);
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.8);
    top: 50%;
    left: -3px;
    margin-top: -3px;
    animation: luxOrbitDot  inherit;
}

.lux-orbit-1 {
    width: min(280px, 48vw);
    height: min(280px, 48vw);
    animation: luxOrbitSpin 28s linear infinite;
}

.lux-orbit-1::after {
    background: radial-gradient(circle, #fff 0%, #667eea 45%, transparent 72%);
    animation: none;
}

.lux-orbit-2 {
    width: min(420px, 68vw);
    height: min(420px, 68vw);
    border-color: rgba(240, 147, 251, 0.1);
    animation: luxOrbitSpin 42s linear infinite reverse;
}

.lux-orbit-2::after {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #fff 0%, #f093fb 45%, transparent 72%);
}

.lux-orbit-3 {
    width: min(560px, 86vw);
    height: min(560px, 86vw);
    border-color: rgba(79, 172, 254, 0.09);
    animation: luxOrbitSpin 58s linear infinite;
}

.lux-orbit-3::after {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff 0%, #4facfe 45%, transparent 72%);
}

.lux-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 50% 45%, transparent 0%, rgba(7, 11, 22, 0.15) 55%, rgba(7, 11, 22, 0.72) 100%);
    z-index: 2;
}

.lux-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lux-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(226, 232, 255, 0.75);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.45);
    opacity: 0.45;
    animation: luxDustFloat 22s linear infinite;
}

.lux-particle.is-accent {
    background: rgba(240, 147, 251, 0.85);
    box-shadow: 0 0 10px rgba(240, 147, 251, 0.55);
}

.lux-particle.is-cyan {
    background: rgba(79, 172, 254, 0.85);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

@keyframes luxCorePulse {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes luxArmSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes luxAccentDrift {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); opacity: 0.55; }
    50% { transform: translate(-50%, -50%) translate(-28px, 22px); opacity: 0.85; }
}

@keyframes luxOrbitSpin {
    from { transform: translate(-50%, -50%) rotateX(62deg) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotateX(62deg) rotate(360deg); }
}

@keyframes luxDustFloat {
    0% { transform: translate3d(0, 12px, 0) scale(0.7); opacity: 0; }
    12% { opacity: 0.55; }
    50% { opacity: 0.35; }
    100% { transform: translate3d(18px, -48px, 0) scale(1.1); opacity: 0; }
}

@keyframes luxAuroraSweep {
    0%, 100% { transform: translateX(-4%) skewX(-6deg); opacity: 0.22; }
    50% { transform: translateX(6%) skewX(4deg); opacity: 0.42; }
}

@keyframes luxBeamPulse {
    0%, 100% { opacity: 0.12; transform: scaleY(0.92); }
    50% { opacity: 0.4; transform: scaleY(1.05); }
}

@keyframes luxOrbFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
    50% { transform: translateY(-14px) scale(1.08); opacity: 1; }
}

@keyframes luxRingPulse {
    0% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.7); }
    70% { opacity: 0.12; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes luxConstFade {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.45; }
}

@keyframes luxNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.6); opacity: 1; }
}

body.auth-page.auth-luxury,
html:has(body.auth-page.auth-luxury) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    zoom: normal !important;
}

body.auth-page.auth-luxury.premium-hybrid-container {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.auth-page.auth-luxury .premium-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    padding-top: max(2.5rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

body.auth-page.auth-luxury .premium-auth-background,
body.auth-page.auth-luxury .premium-auth-pattern {
    display: none !important;
}

body.auth-page.auth-luxury .premium-auth-content {
    width: 100%;
    max-width: 440px;
    gap: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 0 !important;
    padding: 0 !important;
    justify-content: center;
}

body.auth-page.auth-luxury .premium-auth-header {
    margin-bottom: 1.5rem;
}

body.auth-page.auth-luxury .premium-auth-title-section {
    display: none;
}

/* ===== LOGO ===== */
body.auth-page.auth-luxury .premium-auth-logo.nor-brand-lockup {
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 0;
    perspective: 900px;
}

body.auth-page.auth-luxury .nor-brand-frame {
    position: relative;
    width: min(240px, 56vw);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    animation: none;
    transform-style: preserve-3d;
}

body.auth-page.auth-luxury .nor-brand-frame::before {
    display: none;
}

body.auth-page.auth-luxury .nor-brand-3d {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    filter:
        drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 40px rgba(102, 126, 234, 0.28));
    opacity: 0;
    transform: rotateY(-6deg) scale(0.96);
    transition: transform 0.45s ease, filter 0.45s ease;
    will-change: transform, filter, opacity;
}

body.auth-page.auth-luxury.lux-ready .nor-brand-3d {
    animation: luxLogoIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes luxLogoIn {
    0% {
        opacity: 0;
        transform: rotateY(-6deg) scale(0.94);
        filter:
            drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 10px rgba(102, 126, 234, 0));
    }
    55% {
        opacity: 1;
        transform: rotateY(6deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
        filter:
            drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 42px rgba(102, 126, 234, 0.32))
            drop-shadow(0 0 28px rgba(79, 172, 254, 0.18));
    }
}

body.auth-page.auth-luxury .nor-brand-wordmark {
    font-family: var(--lux-display);
    font-size: clamp(2rem, 5vw, 2.55rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1;
    margin-left: 0.28em;
    margin-top: 0.15rem;
    background: linear-gradient(105deg, #9b6dff 0%, #667eea 42%, #4facfe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.18))
        drop-shadow(0 10px 18px rgba(15, 10, 40, 0.45));
    opacity: 0;
    transform: translateY(12px);
}

body.auth-page.auth-luxury .nor-brand-subtitle {
    font-family: var(--lux-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--lux-faint);
    margin-left: 0.42em;
    margin-top: 0.15rem;
    opacity: 0;
    transform: translateY(10px);
}

body.auth-page.auth-luxury.lux-ready .nor-brand-wordmark {
    animation: luxTextUp 0.7s ease 0.75s forwards;
}

body.auth-page.auth-luxury.lux-ready .nor-brand-subtitle {
    animation: luxTextUp 0.7s ease 0.95s forwards;
}

@keyframes luxTextUp {
    to {
        opacity: 1;
        transform: translateY(0);
        color: rgba(255, 255, 255, 0.62);
    }
}

body.auth-page.auth-luxury .nor-brand-glow {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 160px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.4), transparent 70%);
    filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

body.auth-page.auth-luxury.lux-ready .nor-brand-glow {
    animation: luxGlowIn 0.8s ease 1.1s forwards;
}

@keyframes luxGlowIn {
    to { opacity: 0.85; }
}

/* ===== GLASS CARD ===== */
body.auth-page.auth-luxury .premium-auth-main {
    max-width: 420px;
    opacity: 0;
    transform: translateY(16px);
}

body.auth-page.auth-luxury.lux-ready .premium-auth-main {
    animation: luxCardIn 0.75s ease 0.55s forwards;
}

@keyframes luxCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.auth-page.auth-luxury .premium-auth-card {
    max-width: 420px;
    background: var(--lux-glass) !important;
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);
    border: 1px solid var(--lux-border) !important;
    border-radius: var(--lux-radius) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    overflow: hidden;
}

body.auth-page.auth-luxury .premium-auth-card::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.55), rgba(240, 147, 251, 0.45), rgba(79, 172, 254, 0.55), transparent);
}

body.auth-page.auth-luxury .premium-auth-card-header {
    padding: 1.65rem 1.75rem 0.85rem;
    background: transparent !important;
    border-bottom: none !important;
}

body.auth-page.auth-luxury .premium-auth-icon {
    display: none !important;
}

body.auth-page.auth-luxury .premium-auth-card-title {
    font-family: var(--lux-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lux-text) !important;
}

body.auth-page.auth-luxury .premium-auth-card-body {
    padding: 0.5rem 1.75rem 1.25rem;
}

body.auth-page.auth-luxury .premium-auth-card-footer {
    padding: 0.25rem 1.75rem 1.5rem;
    background: transparent !important;
    border-top: none !important;
}

/* ===== FORM ===== */
body.auth-page.auth-luxury .auth-flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

body.auth-page.auth-luxury .auth-flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 550;
    line-height: 1.4;
    border: 1px solid transparent;
}

body.auth-page.auth-luxury .auth-flash-close {
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

body.auth-page.auth-luxury .auth-flash-close:hover {
    opacity: 1;
}

body.auth-page.auth-luxury .auth-flash-success {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

body.auth-page.auth-luxury .auth-flash-error,
body.auth-page.auth-luxury .auth-flash-danger {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

body.auth-page.auth-luxury .auth-flash-warning {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

body.auth-page.auth-luxury .auth-flash-info {
    background: rgba(102, 126, 234, 0.16);
    border-color: rgba(102, 126, 234, 0.35);
    color: #c7d2fe;
}

body.auth-page.auth-luxury .auth-form {
    gap: 1.15rem;
}

body.auth-page.auth-luxury .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lux-muted) !important;
}

body.auth-page.auth-luxury .form-control {
    padding: 1rem 1rem 1rem 2.85rem;
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--lux-input-radius) !important;
    background: rgba(9, 10, 15, 0.65) !important;
    color: var(--lux-text) !important;
    font-size: 0.98rem;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: none !important;
}

body.auth-page.auth-luxury .form-control::placeholder {
    color: rgba(255, 255, 255, 0.28) !important;
}

body.auth-page.auth-luxury .form-control:focus {
    border-color: rgba(102, 126, 234, 0.6) !important;
    box-shadow:
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 0 24px rgba(79, 172, 254, 0.14) !important;
    background: rgba(12, 14, 28, 0.85) !important;
}

body.auth-page.auth-luxury .input-icon {
    color: rgba(255, 255, 255, 0.35) !important;
}

body.auth-page.auth-luxury .form-control:focus + .input-icon,
body.auth-page.auth-luxury .form-input:focus-within .input-icon {
    color: rgba(167, 139, 250, 0.9) !important;
}

body.auth-page.auth-luxury .password-toggle-btn {
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
}

body.auth-page.auth-luxury .password-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.75);
}

body.auth-page.auth-luxury .form-checkbox label {
    color: var(--lux-muted) !important;
    font-weight: 500;
}

body.auth-page.auth-luxury .form-checkbox input[type="checkbox"] {
    accent-color: var(--lux-purple);
}

/* ===== BUTTON ===== */
body.auth-page.auth-luxury .btn-auth {
    min-height: 56px;
    border-radius: 18px !important;
    border: none !important;
    font-family: var(--lux-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: linear-gradient(105deg, #667eea 0%, #764ba2 48%, #4facfe 100%) !important;
    background-size: 180% 100% !important;
    box-shadow:
        0 10px 28px rgba(102, 126, 234, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: background-position 0.6s ease, box-shadow 0.3s ease, transform 0.25s ease !important;
}

body.auth-page.auth-luxury .btn-auth:hover {
    background-position: 100% 0 !important;
    box-shadow:
        0 14px 36px rgba(102, 126, 234, 0.48),
        0 0 28px rgba(240, 147, 251, 0.22) !important;
    transform: translateY(-1px) !important;
}

body.auth-page.auth-luxury .btn-auth:active {
    transform: translateY(0) !important;
}

body.auth-page.auth-luxury .premium-auth-link {
    color: var(--lux-muted) !important;
}

body.auth-page.auth-luxury .premium-auth-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
}

/* ===== FOOTER ===== */
body.auth-page.auth-luxury .premium-auth-footer {
    margin-top: 2rem;
    max-width: 420px;
    opacity: 0;
}

body.auth-page.auth-luxury.lux-ready .premium-auth-footer {
    animation: luxCardIn 0.7s ease 0.9s forwards;
}

body.auth-page.auth-luxury .premium-footer-link {
    color: rgba(255, 255, 255, 0.48) !important;
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
}

body.auth-page.auth-luxury .premium-footer-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.auth-page.auth-luxury .premium-footer-text,
body.auth-page.auth-luxury .premium-footer-version {
    color: rgba(255, 255, 255, 0.28) !important;
}

/* ===== LEGAL PAGES ON LUXURY SHELL ===== */
body.auth-page.auth-luxury.auth-legal-page .premium-auth-container,
body.auth-page.auth-luxury.auth-legal-page .premium-auth-content,
body.auth-page.auth-luxury.auth-legal-page .premium-auth-main,
body.auth-page.auth-luxury.auth-legal-page .premium-auth-footer,
body.auth-page.auth-luxury.auth-legal-page .premium-auth-card {
    max-width: 720px;
}

body.auth-page.auth-luxury.auth-legal-page .premium-auth-title-section {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

body.auth-page.auth-luxury.auth-legal-page .premium-auth-title {
    font-family: var(--lux-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    background: none;
    -webkit-text-fill-color: var(--lux-text);
    color: var(--lux-text);
    text-shadow: none;
}

body.auth-page.auth-luxury .legal-page,
body.auth-page.auth-luxury .legal-lead,
body.auth-page.auth-luxury .legal-scroll h3,
body.auth-page.auth-luxury .legal-faq-item summary {
    color: var(--lux-muted);
}

body.auth-page.auth-luxury .legal-lead,
body.auth-page.auth-luxury .legal-scroll h3,
body.auth-page.auth-luxury .legal-faq-item summary {
    color: var(--lux-text);
}

body.auth-page.auth-luxury .legal-faq-item,
body.auth-page.auth-luxury .legal-quick-card,
body.auth-page.auth-luxury .legal-meta-item {
    background: rgba(9, 10, 15, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--lux-text);
}

body.auth-page.auth-luxury .legal-textarea {
    background: rgba(9, 10, 15, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--lux-text);
}

body.auth-page.auth-luxury .legal-quick-card span,
body.auth-page.auth-luxury .legal-meta-item span,
body.auth-page.auth-luxury .legal-meta-item strong {
    color: var(--lux-text);
}

/* ===== TABLET PORTRAIT (iPad / Android tablets) ===== */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
    body.auth-page.auth-luxury .premium-auth-container {
        max-width: 560px;
        padding: 2.25rem 2rem;
        padding-top: max(2.25rem, env(safe-area-inset-top));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    body.auth-page.auth-luxury .premium-auth-content,
    body.auth-page.auth-luxury .premium-auth-main,
    body.auth-page.auth-luxury .premium-auth-card,
    body.auth-page.auth-luxury .premium-auth-footer {
        max-width: 460px;
        width: 100%;
    }

    body.auth-page.auth-luxury .nor-brand-frame {
        width: min(200px, 34vw);
    }

    body.auth-page.auth-luxury .premium-auth-header {
        margin-bottom: 1.25rem;
    }

    body.auth-page.auth-luxury .premium-auth-footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }

    .lux-orbit-3 {
        opacity: 0.7;
    }
}

/* ===== TABLET LANDSCAPE — keep form + logo fully in frame ===== */
@media (min-width: 600px) and (max-width: 1366px) and (orientation: landscape) {
    body.auth-page.auth-luxury .premium-auth-container {
        max-width: 920px;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1.25rem 2rem;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        align-items: center;
    }

    body.auth-page.auth-luxury .premium-auth-content {
        max-width: 880px;
        width: 100%;
        display: grid !important;
        grid-template-columns: minmax(200px, 0.9fr) minmax(300px, 1.1fr);
        grid-template-areas:
            "brand card"
            "footer footer";
        column-gap: 2rem;
        row-gap: 0.85rem;
        align-items: center;
        justify-content: stretch;
        min-height: 0 !important;
        padding: 0 !important;
    }

    body.auth-page.auth-luxury .premium-auth-header {
        grid-area: brand;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    body.auth-page.auth-luxury .premium-auth-main {
        grid-area: card;
        max-width: 420px;
        width: 100%;
        margin: 0;
        justify-self: stretch;
    }

    body.auth-page.auth-luxury .premium-auth-card {
        max-width: 100%;
    }

    body.auth-page.auth-luxury .premium-auth-footer {
        grid-area: footer;
        max-width: 100%;
        margin-top: 0.35rem;
        width: 100%;
    }

    body.auth-page.auth-luxury .nor-brand-frame {
        width: min(168px, 22vw);
    }

    body.auth-page.auth-luxury .nor-brand-wordmark {
        font-size: 1.85rem;
        letter-spacing: 0.24em;
    }

    body.auth-page.auth-luxury .nor-brand-subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.32em;
    }

    body.auth-page.auth-luxury .premium-auth-card-header {
        padding: 1.15rem 1.4rem 0.55rem;
    }

    body.auth-page.auth-luxury .premium-auth-card-body {
        padding: 0.35rem 1.4rem 0.85rem;
    }

    body.auth-page.auth-luxury .premium-auth-card-footer {
        padding: 0.15rem 1.4rem 1.1rem;
    }

    body.auth-page.auth-luxury .auth-form {
        gap: 0.85rem;
    }

    body.auth-page.auth-luxury .form-control {
        min-height: 48px;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    body.auth-page.auth-luxury .btn-auth {
        min-height: 50px;
    }

    body.auth-page.auth-luxury .premium-auth-footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.1rem;
    }

    /* Slightly quieter galaxy so landscape UI stays readable */
    .lux-nebula-core {
        width: min(520px, 70vw);
        height: min(520px, 70vw);
        top: 48%;
    }

    .lux-orbit-3 {
        opacity: 0.45;
    }
}

/* Short landscape tablets / split view */
@media (max-height: 700px) and (orientation: landscape) {
    body.auth-page.auth-luxury .premium-auth-container {
        align-items: stretch;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    body.auth-page.auth-luxury .nor-brand-frame {
        width: min(140px, 18vw);
    }

    body.auth-page.auth-luxury .premium-auth-footer-info {
        display: none;
    }
}

@media (max-width: 576px) {
    body.auth-page.auth-luxury .premium-auth-container {
        align-items: stretch;
        padding: 1.25rem 1rem 1.5rem;
        padding-top: max(1.25rem, env(safe-area-inset-top));
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    body.auth-page.auth-luxury .nor-brand-frame {
        width: min(160px, 46vw);
    }

    body.auth-page.auth-luxury .premium-auth-card-body,
    body.auth-page.auth-luxury .premium-auth-card-header,
    body.auth-page.auth-luxury .premium-auth-card-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    body.auth-page.auth-luxury .premium-auth-footer-links {
        flex-direction: column;
        gap: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-page.auth-luxury,
    body.auth-page.auth-luxury .nor-brand-3d,
    body.auth-page.auth-luxury .nor-brand-wordmark,
    body.auth-page.auth-luxury .nor-brand-subtitle,
    body.auth-page.auth-luxury .premium-auth-main,
    body.auth-page.auth-luxury .premium-auth-footer,
    .lux-nebula-core,
    .lux-nebula-arm-a,
    .lux-nebula-arm-b,
    .lux-nebula-accent,
    .lux-nebula-far,
    .lux-aurora,
    .lux-beam,
    .lux-orb,
    .lux-ring,
    .lux-orbit,
    .lux-particle,
    .lux-constellation-line,
    .lux-constellation-node {
        animation: none !important;
        opacity: 0.55 !important;
    }

    .lux-ring {
        opacity: 0 !important;
    }

    body.auth-page.auth-luxury .nor-brand-3d,
    body.auth-page.auth-luxury .nor-brand-subtitle,
    body.auth-page.auth-luxury .premium-auth-main,
    body.auth-page.auth-luxury .premium-auth-footer {
        transform: none !important;
    }

    .lux-galaxy-canvas {
        display: none !important;
    }
}
