/* Empire theme — shared login + user area styles (presentation only) */

[x-cloak] {
    display: none !important;
}

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Base styling */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 25%, #fecaca 50%, #fee2e2 75%, #fef2f2 100%);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Red-inspired animated background */
.empire-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(186, 23, 6, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(162, 16, 3, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(191, 21, 6, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(135, 34, 6, 0.06) 0%, transparent 40%);
    opacity: 0.9;
    z-index: 0;
    animation: empire-glow 8s ease-in-out infinite;
    pointer-events: none;
}

.wealth-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.wealth-drop {
    position: absolute;
    background: linear-gradient(45deg, rgba(186, 23, 6, 0.4), rgba(162, 16, 3, 0.3));
    border-radius: 50%;
    z-index: 1;
    animation: wealth-flow 12s linear infinite;
}

.sparkle-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(186, 23, 6, 0.8), transparent);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    z-index: 1;
}

.bokeh-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186, 23, 6, 0.3), transparent 70%);
    animation: float-slow 8s ease-in-out infinite;
    z-index: 0;
}

.empire-symbol {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, rgba(186, 23, 6, 0.15), rgba(162, 16, 3, 0.10));
    border-radius: 12px;
    border: 1px solid rgba(186, 23, 6, 0.2);
    opacity: 0.12;
    animation: drift 15s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(186, 23, 6, 0.1);
}

.empire-symbol::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 50%;
    background: linear-gradient(to top, rgba(186, 23, 6, 0.3) 0%, rgba(186, 23, 6, 0.1) 50%, transparent 100%);
    border-radius: 2px 2px 0 0;
}

.empire-symbol::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(191, 21, 6, 0.6), transparent);
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes float-wealth {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-20px) translateX(10px) rotate(120deg); }
    66% { transform: translateY(10px) translateX(-15px) rotate(240deg); }
}

@keyframes wave-flow {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.1; }
    50% { transform: translateY(-30px) translateX(20px) scale(1.5); opacity: 0.3; }
}

@keyframes wealth-flow {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20px) scale(1.2); opacity: 0; }
}

@keyframes empire-glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(15, 23, 42, 0.6)); }
    50% { filter: drop-shadow(0 0 25px rgba(15, 23, 42, 0.8)); }
}

@keyframes drift {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-20px) translateX(15px) rotate(3deg); }
    66% { transform: translateY(10px) translateX(-10px) rotate(-2deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-15px) translateX(10px); }
    66% { transform: translateY(8px) translateX(-8px); }
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes luxury-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Content above animated background */
.empire-content-layer {
    position: relative;
    z-index: 10;
}

/* Red glass card effect */
.empire-glass-card {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.88) 50%,
        rgba(255, 255, 255, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(186, 23, 6, 0.15);
    box-shadow:
        0 25px 50px rgba(186, 23, 6, 0.12),
        0 0 0 1px rgba(186, 23, 6, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 0 60px rgba(186, 23, 6, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.empire-glass-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(186, 23, 6, 0.08), transparent);
    transition: 0.8s;
    pointer-events: none;
    z-index: 0;
}

.empire-glass-card:hover:before {
    left: 100%;
}

.empire-glass-card:hover {
    box-shadow:
        0 28px 56px rgba(186, 23, 6, 0.18),
        0 0 0 1px rgba(186, 23, 6, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Auth login card sizing (opt-in) */
.empire-glass-card.empire-auth-card:hover {
    transform: translateY(-8px);
}

@media (max-width: 640px) {
    .empire-glass-card.empire-auth-card {
        width: 95%;
        margin: 0 auto;
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .empire-glass-card.empire-auth-card {
        min-width: 480px;
    }
}

/* Sidebar glass — stronger white backing for readability */
.empire-sidebar-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(254, 242, 242, 0.92) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(186, 23, 6, 0.12);
    box-shadow: 5px 0 30px -15px rgba(153, 27, 27, 0.15);
}

/* Modal panel — glass without aggressive hover lift */
.empire-modal-panel {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.94) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(186, 23, 6, 0.15);
    box-shadow:
        0 25px 50px rgba(186, 23, 6, 0.2),
        0 0 0 1px rgba(186, 23, 6, 0.08);
}

.wealth-accent {
    background: linear-gradient(135deg, #7f1d1d, #991b1b, #b91c1c);
    background-size: 200% 200%;
    animation: gradient-flow 6s ease infinite;
}

.luxury-text {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: luxury-shine 4s linear infinite;
}

.empire-input {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 4px 15px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.empire-input:focus {
    outline: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-color: rgba(186, 23, 6, 0.4);
    box-shadow:
        0 8px 25px rgba(186, 23, 6, 0.15),
        0 0 0 3px rgba(186, 23, 6, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.empire-input::placeholder {
    color: rgba(107, 114, 128, 0.6);
    font-style: italic;
}

.empire-logo-glow {
    animation: empire-glow 4s infinite ease-in-out;
}

.empire-btn {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
    background-size: 200% 200%;
    animation: gradient-flow 6s ease infinite;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow:
        0 8px 25px rgba(153, 27, 27, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.empire-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
    pointer-events: none;
}

.empire-btn:hover::before {
    left: 100%;
}

.empire-btn:hover {
    box-shadow:
        0 12px 35px rgba(153, 27, 27, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.empire-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Dense panels — no hover lift */
.empire-glass-card.empire-glass-static:hover {
    transform: none;
}

.empire-silhouette {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, rgba(186, 23, 6, 0.3), rgba(162, 16, 3, 0.2));
    border-radius: 8px;
    position: relative;
}

.empire-silhouette::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: linear-gradient(to top, rgba(186, 23, 6, 0.4) 0%, transparent 100%);
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .empire-pattern,
    .wealth-drop,
    .sparkle-particle,
    .bokeh-particle,
    .empire-symbol,
    .wealth-accent,
    .luxury-text,
    .empire-btn,
    .empire-logo-glow {
        animation: none !important;
    }

    .empire-pattern,
    .wealth-particles,
    .empire-symbol {
        display: none;
    }
}
