/* ===================================================================
   Auth modals — emerald · gold · white (premium fintech / AI SaaS)
   Compact, glassmorphism, subtle cinematic motion
   =================================================================== */

:root {
    --pe-emerald-900: #0d2818;
    --pe-emerald-800: #1b4332;
    --pe-emerald-600: #2d6a4f;
    --pe-emerald-500: #40916c;
    --pe-emerald-400: #52b788;
    --pe-emerald-glow: rgba(64, 145, 108, 0.35);
    --pe-gold: #d4af37;
    --pe-gold-light: #f0d78c;
    --pe-gold-deep: #9a7b2f;
    --pe-white: #ffffff;
    --pe-off-white: #f7fbf8;
    --pe-text: #0f2a1f;
    --pe-text-muted: #3d5c4a;
    --pe-shadow: rgba(13, 40, 24, 0.14);
    --pe-radius: 20px;
    --pe-radius-sm: 12px;
    --pe-ease: cubic-bezier(0.25, 1, 0.4, 1);
}

/* ——— Spacious centered dialog ——— */
.modal.auth-luxury {
    padding: 1.25rem !important;
}

.modal.auth-luxury .auth-modal-dialog {
    max-width: min(332px, calc(100vw - 2.5rem)) !important;
    width: 100% !important;
    margin: auto !important;
}

.modal.auth-luxury .auth-modal-dialog--login {
    max-width: min(312px, calc(100vw - 2.5rem)) !important;
}

body.modal-open .modal-backdrop.show {
    background: rgba(13, 40, 24, 0.42) !important;
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

/* ——— Card: white glass + emerald tint + gold rim ——— */
.auth-luxury .auth-luxury-card {
    border-radius: var(--pe-radius) !important;
    border: 1px solid rgba(212, 175, 55, 0.42) !important;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(247, 252, 248, 0.94) 42%,
        rgba(232, 245, 236, 0.92) 100%
    ) !important;
    backdrop-filter: blur(24px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.25) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 2px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 50px var(--pe-shadow),
        0 0 48px var(--pe-emerald-glow),
        0 0 32px rgba(212, 175, 55, 0.12) !important;
    transform: translateZ(0);
    will-change: transform;
}

/* Gold bezel rim — subtle pulse, no harsh spin */
.auth-luxury .auth-modal-rim {
    inset: -2px;
    border-radius: calc(var(--pe-radius) + 2px);
    background: linear-gradient(
        135deg,
        rgba(240, 215, 140, 0.85) 0%,
        rgba(212, 175, 55, 0.65) 25%,
        rgba(45, 106, 79, 0.35) 50%,
        rgba(212, 175, 55, 0.7) 75%,
        rgba(255, 248, 220, 0.8) 100%
    );
    opacity: 0.75;
    animation: peRimGlow 6s ease-in-out infinite alternate;
    filter: blur(0.4px);
}

@keyframes peRimGlow {
    0% { opacity: 0.55; }
    100% { opacity: 0.85; }
}

/* Soft emerald ambient */
.auth-luxury .auth-modal-aurora {
    background:
        radial-gradient(ellipse 85% 55% at 50% 0%, rgba(82, 183, 136, 0.22), transparent 58%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(212, 175, 55, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 40% at 0% 90%, rgba(45, 106, 79, 0.12), transparent 48%) !important;
    animation: peEmeraldAmbient 8s ease-in-out infinite alternate !important;
    opacity: 0.9 !important;
}

@keyframes peEmeraldAmbient {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Gentle gold shimmer sweep */
.auth-luxury .auth-modal-glass-shine {
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 42%,
        rgba(255, 255, 255, 0.35) 48%,
        rgba(240, 215, 140, 0.22) 50%,
        rgba(255, 255, 255, 0.2) 52%,
        transparent 58%,
        transparent 100%
    ) !important;
    background-size: 240% 100% !important;
    animation: peGoldSweep 8s ease-in-out infinite !important;
    mix-blend-mode: soft-light;
    opacity: 0.85;
}

@keyframes peGoldSweep {
    0%, 100% { background-position: 120% 0; }
    50% { background-position: -20% 0; }
}

/* Subtle reflection — opacity only */
.auth-luxury .auth-lux-gold-orbit {
    position: absolute;
    inset: -15%;
    z-index: 2;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 248, 220, 0.15), transparent 55%);
    animation: peReflection 10s ease-in-out infinite alternate;
    opacity: 0.5;
}

@keyframes peReflection {
    0% { opacity: 0.35; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.03); }
}

/* Light particles */
.auth-luxury .auth-lux-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.auth-luxury .auth-lux-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--pe-gold-light) 45%, transparent 70%);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.45);
    opacity: 0;
    animation: peParticleRise linear infinite;
    will-change: transform, opacity;
}

@keyframes peParticleRise {
    0% {
        transform: translate3d(0, 20%, 0) scale(0.6);
        opacity: 0;
    }
    20% { opacity: 0.65; }
    80% { opacity: 0.35; }
    100% {
        transform: translate3d(var(--p-drift, 0), -110%, 0) scale(1);
        opacity: 0;
    }
}

.auth-luxury .golden-bubble--modal {
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(240, 215, 140, 0.55) 38%,
        rgba(82, 183, 136, 0.2) 62%,
        transparent 72%
    ) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
    opacity: 0.7;
}

/* ——— Header: emerald dominant + white type ——— */
.auth-luxury .modal-header.auth-modal-header--brand {
    padding: 1rem 1rem 0.8rem !important;
    background: linear-gradient(
        145deg,
        var(--pe-emerald-800) 0%,
        var(--pe-emerald-600) 55%,
        var(--pe-emerald-500) 100%
    ) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: calc(var(--pe-radius) - 2px) calc(var(--pe-radius) - 2px) 0 0 !important;
    box-shadow:
        0 6px 20px var(--pe-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.auth-luxury .auth-modal-header--brand::before {
    background: radial-gradient(ellipse 75% 70% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 62%) !important;
}

.auth-luxury .auth-modal-header--brand .modal-title {
    color: var(--pe-white) !important;
    -webkit-text-fill-color: var(--pe-white) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 8px var(--pe-shadow);
}

.auth-luxury .auth-modal-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.8rem !important;
    font-weight: 500;
}

/* ===================================================================
   Luxury animated logo + layered glass (VIP AI / fintech)
   =================================================================== */

.auth-luxury .auth-lux-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0.35rem;
}

.auth-luxury .auth-lux-logo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--auth-logo-outer, 76px);
    height: var(--auth-logo-outer, 76px);
    margin: 0 auto;
    transform: translateZ(0);
    animation: peLogoFloat 5s ease-in-out infinite;
}

@keyframes peLogoFloat {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-5px) translateZ(0); }
}

.auth-luxury .auth-lux-logo-halo {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.35) 0%, rgba(212, 175, 55, 0.2) 45%, transparent 70%);
    animation: peLogoHalo 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes peLogoHalo {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 0.9; transform: scale(1.05); }
}

.auth-luxury .auth-lux-logo-shine {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.45) 48%,
        transparent 62%
    );
    background-size: 200% 100%;
    animation: peLogoShine 5s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes peLogoShine {
    0%, 100% { background-position: 130% 0; opacity: 0.6; }
    50% { background-position: -30% 0; opacity: 1; }
}

.auth-luxury .auth-lux-logo-stage .auth-logo-showcase {
    position: relative;
    z-index: 2;
    margin: 0;
}

.auth-luxury .auth-logo-ring {
    background: linear-gradient(
        145deg,
        #fff 0%,
        var(--pe-gold-light) 30%,
        var(--pe-gold) 55%,
        var(--pe-emerald-600) 100%
    ) !important;
    box-shadow:
        0 0 28px rgba(255, 255, 255, 0.35),
        0 10px 28px var(--pe-shadow),
        0 0 24px rgba(212, 175, 55, 0.35),
        inset 0 2px 8px rgba(255, 255, 255, 0.65),
        inset 0 -4px 10px rgba(154, 123, 47, 0.2) !important;
}

.auth-luxury .auth-logo-frame {
    background: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
}

.auth-luxury .auth-logo-img {
    background: #fff;
}

.auth-luxury .auth-logo-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(212, 175, 55, 0.25) 50%, transparent 72%) !important;
}

.auth-luxury .auth-logo-orbit {
    border-top-color: rgba(255, 255, 255, 0.75) !important;
    border-right-color: rgba(212, 175, 55, 0.65) !important;
}

/* Gold + emerald type badge (signup / login) */
.auth-luxury .auth-lux-type-badge {
    position: absolute;
    right: -2px;
    bottom: 2px;
    z-index: 4;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--pe-emerald-900);
    background: linear-gradient(145deg, #fff 0%, var(--pe-gold-light) 40%, var(--pe-gold) 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 12px var(--pe-shadow),
        0 0 16px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: peBadgePulse 3s ease-in-out infinite;
}

.auth-luxury .auth-lux-type-badge i {
    filter: drop-shadow(0 1px 1px rgba(13, 40, 24, 0.2));
}

@keyframes peBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Extra frosted glass layer on card */
.auth-luxury .auth-lux-glass-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 35%,
        rgba(232, 245, 236, 0.15) 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Form panel — glass slab + gold frame */
.auth-luxury .auth-lux-glass-panel {
    position: relative;
    margin: 0;
    border-radius: calc(var(--pe-radius) - 8px);
    padding: 0.7rem 0.6rem 0.8rem !important;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.88) 100%
    ) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.35) inset,
        0 8px 28px rgba(13, 40, 24, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.auth-luxury .auth-lux-glass-panel::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        160deg,
        rgba(240, 215, 140, 0.8),
        rgba(45, 106, 79, 0.25),
        rgba(212, 175, 55, 0.65),
        rgba(255, 255, 255, 0.5)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.auth-luxury .auth-lux-glass-panel > * {
    position: relative;
    z-index: 1;
}

/* Stronger 3D gold bezel on inputs */
.auth-luxury .input-group-auth--glass {
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 14px rgba(13, 40, 24, 0.06),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    transition: transform 0.25s var(--pe-ease), box-shadow 0.25s var(--pe-ease);
}

.auth-luxury .input-group-auth--glass:hover {
    transform: translateY(-1px);
    box-shadow:
        0 2px 0 #fff inset,
        0 8px 20px rgba(13, 40, 24, 0.1),
        0 0 20px rgba(212, 175, 55, 0.15);
}

.auth-luxury .auth-modal-grid .form-control {
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.28) inset,
        0 2px 8px rgba(13, 40, 24, 0.05) !important;
    transition: transform 0.22s var(--pe-ease), box-shadow 0.22s var(--pe-ease);
}

.auth-luxury .auth-modal-grid .form-control:focus {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 2px rgba(64, 145, 108, 0.15),
        0 0 0 1px rgba(212, 175, 55, 0.4) inset,
        0 6px 16px var(--pe-shadow) !important;
}

/* Button — embossed gold bezel ring */
.auth-luxury .auth-submit,
.auth-luxury .auth-submit--login {
    border: 2px solid rgba(240, 215, 140, 0.55) !important;
    text-shadow: 0 1px 2px rgba(13, 40, 24, 0.25);
}

.auth-luxury .auth-submit:hover,
.auth-luxury .auth-submit--login:hover {
    transform: translateY(-3px) scale(1.01);
}

.auth-luxury .auth-modal-3d--live .auth-lux-logo-stage {
    animation: peLogoFloat 5s ease-in-out infinite, peLogoReveal 0.65s var(--pe-ease) backwards;
}

@keyframes peLogoReveal {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ——— Form body: white, airy, readable ——— */
.auth-luxury .auth-modal-body--glass:not(.auth-lux-glass-panel) {
    padding: 0.9rem 1.05rem 1.05rem !important;
}

.auth-luxury .auth-modal-body.auth-lux-glass-panel {
    padding: 0.45rem 0.35rem 0.55rem !important;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(247, 251, 248, 0.95) 100%
    ) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: none !important;
    max-height: min(calc(100dvh - 12rem), 360px) !important;
}

.auth-luxury .auth-modal-body .auth-lux-field,
.auth-luxury .auth-modal-body .mb-3 {
    margin-bottom: 0.7rem !important;
}

.auth-luxury .auth-modal-body .form-label,
#signupModal .form-label,
#loginModal .form-label {
    color: var(--pe-emerald-800) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.3rem !important;
    opacity: 1 !important;
}

/* Gold bezel + white inputs */
.auth-luxury .input-group-auth--glass {
    border-radius: var(--pe-radius-sm);
    position: relative;
    isolation: isolate;
}

.auth-luxury .input-group-auth--glass::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--pe-radius-sm) + 1px);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(240, 215, 140, 0.75),
        rgba(45, 106, 79, 0.35),
        rgba(212, 175, 55, 0.65)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.auth-luxury .input-group-auth .input-group-text,
#signupModal.auth-luxury .input-group-auth .input-group-text,
#loginModal.auth-luxury .input-group-auth .input-group-text {
    background: linear-gradient(180deg, #f4faf6 0%, #e8f2eb 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-right: none !important;
    color: var(--pe-emerald-600) !important;
    font-size: 0.95rem;
    padding: 0.5rem 0.65rem;
    min-height: 2.55rem;
    border-radius: var(--pe-radius-sm) 0 0 var(--pe-radius-sm) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.auth-luxury .input-group-auth .form-control {
    background: var(--pe-white) !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    border-left: none !important;
    color: var(--pe-text) !important;
    -webkit-text-fill-color: var(--pe-text) !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    min-height: 2.55rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0 var(--pe-radius-sm) var(--pe-radius-sm) 0 !important;
    box-shadow: inset 0 1px 3px rgba(13, 40, 24, 0.06) !important;
    transition: transform 0.22s var(--pe-ease), box-shadow 0.22s var(--pe-ease), border-color 0.22s ease;
}

.auth-luxury .input-group-auth .form-control::placeholder {
    color: #6b8a78 !important;
    opacity: 1 !important;
}

.auth-luxury .input-group-auth:focus-within .input-group-text {
    border-color: rgba(212, 175, 55, 0.55) !important;
    color: var(--pe-emerald-800) !important;
    background: #fff !important;
}

.auth-luxury .input-group-auth .form-control:focus {
    border-color: rgba(64, 145, 108, 0.5) !important;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 2px rgba(13, 40, 24, 0.05),
        0 0 0 3px rgba(64, 145, 108, 0.12),
        0 6px 16px var(--pe-shadow) !important;
}

.auth-luxury .auth-modal-grid {
    gap: 0.5rem;
}

.auth-luxury .auth-modal-grid .form-control {
    background: var(--pe-white) !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    color: var(--pe-text) !important;
    font-size: 0.9rem !important;
    min-height: 2.5rem !important;
    border-radius: var(--pe-radius-sm) !important;
    box-shadow: inset 0 1px 3px rgba(13, 40, 24, 0.05) !important;
}

.auth-luxury .password-toggle-btn {
    color: var(--pe-emerald-800) !important;
    font-weight: 600;
    font-size: 0.72rem !important;
}

.auth-luxury .auth-link-gold {
    color: var(--pe-emerald-800) !important;
    font-weight: 600 !important;
}

.auth-luxury .auth-link-gold:hover {
    color: var(--pe-gold-deep) !important;
}

/* Emerald + gold CTA — beat Bootstrap .btn-primary */
.auth-luxury .auth-submit,
.auth-luxury .auth-submit--login,
.auth-luxury .auth-lux-btn,
#signupModal .auth-submit.btn-primary,
#loginModal .auth-submit.btn-primary,
#signupModal .modal-content .auth-submit,
#loginModal .modal-content .auth-submit {
    position: relative;
    overflow: hidden;
    border: none !important;
    border-radius: var(--pe-radius-sm) !important;
    padding: 0.62rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(
        145deg,
        var(--pe-emerald-600) 0%,
        var(--pe-emerald-500) 45%,
        var(--pe-emerald-800) 100%
    ) !important;
    box-shadow:
        0 0 0 1px rgba(240, 215, 140, 0.45) inset,
        0 3px 0 rgba(13, 40, 24, 0.2),
        0 8px 24px var(--pe-shadow),
        0 0 28px var(--pe-emerald-glow) !important;
    transition: transform 0.22s var(--pe-ease), box-shadow 0.22s var(--pe-ease);
    transform: translateZ(0);
}

.auth-luxury .auth-submit::before,
.auth-luxury .auth-submit--login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 65%
    );
    background-size: 200% 100%;
    animation: peBtnShine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes peBtnShine {
    0%, 100% { background-position: 130% 0; }
    50% { background-position: -30% 0; }
}

.auth-luxury .auth-submit::after,
.auth-luxury .auth-submit--login::after {
    background: linear-gradient(90deg, transparent, rgba(240, 215, 140, 0.2), transparent) !important;
}

.auth-luxury .auth-submit:hover,
.auth-luxury .auth-submit--login:hover,
.auth-luxury .auth-lux-btn:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(240, 215, 140, 0.55) inset,
        0 5px 0 rgba(13, 40, 24, 0.18),
        0 12px 28px var(--pe-shadow),
        0 0 36px var(--pe-emerald-glow) !important;
}

.auth-luxury .auth-submit:active,
.auth-luxury .auth-submit--login:active {
    transform: translateY(0);
}

/* Subtle float when open */
.auth-luxury.modal.auth-modal.show .auth-luxury-card.auth-modal-3d--live {
    animation: peCardFloat 7s ease-in-out infinite;
}

@keyframes peCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Stagger fields */
.auth-luxury .auth-modal-3d--live .auth-lux-field,
.auth-luxury .auth-modal-3d--live .auth-modal-grid,
.auth-luxury .auth-modal-3d--live .auth-submit,
.auth-luxury .auth-modal-3d--live .text-end {
    animation: peFieldIn 0.45s var(--pe-ease) backwards;
}

@keyframes peFieldIn {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.auth-luxury .auth-modal-3d--live .auth-modal-header-inner {
    animation: peHeaderIn 0.5s var(--pe-ease) 0.04s backwards;
}

@keyframes peHeaderIn {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ——— Mobile: centered card (auth-mobile.css owns layout) ——— */
@media (max-width: 767.98px) {
    .modal.auth-luxury {
        padding:
            max(0.65rem, env(safe-area-inset-top, 0px))
            max(0.65rem, env(safe-area-inset-right, 0px))
            max(0.65rem, env(safe-area-inset-bottom, 0px))
            max(0.65rem, env(safe-area-inset-left, 0px)) !important;
    }

    .modal.auth-luxury .auth-modal-dialog {
        max-width: min(340px, calc(100vw - 1.25rem)) !important;
    }

    .modal.auth-luxury .auth-modal-dialog--login {
        max-width: min(320px, calc(100vw - 1.25rem)) !important;
    }

    .auth-luxury .auth-modal-body.auth-lux-glass-panel {
        max-height: none !important;
    }

    .auth-luxury .input-group-auth .form-control,
    .auth-luxury .input-group-auth .input-group-text,
    .auth-luxury .auth-modal-grid .form-control,
    .auth-luxury .auth-submit,
    .auth-luxury .auth-submit--login {
        min-height: 2.85rem !important;
        font-size: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .auth-luxury .input-group-auth .form-control,
    .auth-luxury .input-group-auth .input-group-text,
    .auth-luxury .auth-modal-grid .form-control,
    .auth-luxury .auth-submit,
    .auth-luxury .auth-submit--login {
        min-height: 2.75rem !important;
        font-size: 16px !important;
    }

    .auth-luxury .auth-lux-logo-stage {
        animation: none;
    }

    .auth-luxury .auth-modal-3d--live .auth-lux-logo-stage {
        animation: peLogoReveal 0.5s var(--pe-ease) backwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-luxury .auth-modal-rim,
    .auth-luxury .auth-lux-gold-orbit,
    .auth-luxury .auth-modal-glass-shine,
    .auth-luxury .auth-modal-aurora,
    .auth-luxury .auth-lux-particle,
    .auth-luxury .golden-bubble--modal,
    .auth-luxury .auth-submit::before,
    .auth-luxury.modal.auth-modal.show .auth-luxury-card.auth-modal-3d--live,
    .auth-luxury .auth-modal-3d--live .auth-lux-field,
    .auth-luxury .auth-modal-3d--live .auth-modal-header-inner,
    .auth-luxury .auth-modal-3d--live .auth-lux-logo-stage {
        animation: none !important;
    }
}
