/* Animated Background - LIKE HỎA TỐC */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(-45deg, #ffffff, #f8f9fa, #ffffff, #f8f9fa);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
}

.animated-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    animation: pulse 16s ease-in-out infinite;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
}

.floating-particle:nth-child(odd),
.floating-particle:nth-child(3n),
.floating-particle:nth-child(4n) {
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
}

.fire-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.fire-wave {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.06), transparent);
    border-radius: 50% 50% 0 0;
    animation: fireWave 8s ease-in-out infinite;
}

.fire-wave:nth-child(2) {
    animation-delay: 2s;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
}

.fire-wave:nth-child(3) {
    animation-delay: 4s;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.04), transparent);
}

.energy-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.energy-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15), transparent);
    animation: energyFlow 6s linear infinite;
}

.energy-line:nth-child(odd) {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.12), transparent);
}

.energy-line:nth-child(3n) {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 1;
    }
}

@keyframes fireWave {
    0%, 100% {
        transform: translateX(0) scaleY(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(20px) scaleY(1.2);
        opacity: 1;
    }
}

@keyframes energyFlow {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Override existing styles for better integration */
.auth-page-wrapper {
    background: transparent !important;
}

.auth-one-bg {
    background: transparent !important;
}

.auth-one-bg .bg-overlay {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Enhance card styling */
.card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
}

.card-body {
    background: transparent !important;
}

/* Enhance form controls */
.form-control {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06) !important;
    transform: none !important;
}

/* Enhance buttons */
.btn-primary {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    font-weight: 600 !important;
}

.btn-primary:hover {
    background: #000 !important;
    color: #fff !important;
}

.btn-danger {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.btn-danger:hover {
    background: #f8f9fa !important;
    color: #000 !important;
}

/* Text enhancements */
.text-primary {
    color: #111 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Logo enhancement */
.auth-logo {
    transition: transform 0.2s ease !important;
}

.auth-logo:hover {
    transform: scale(1.02) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-particle {
        width: 4px;
        height: 4px;
    }
    
    .fire-waves {
        height: 150px;
    }
    
    .fire-wave {
        height: 80px;
    }
} 

/* Emphasize login card */
.auth-page-content .card {
    position: relative;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-page-content .card::after {
    content: none;
}

.auth-page-content .card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
}

/* Thin divider under headings for subtle separation */
.auth-page-content .card .text-center.mt-2 h5 {
    position: relative;
}

.auth-page-content .card .text-center.mt-2 h5::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.2);
} 

/* Social bubbles */
.social-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.social-bubble {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: bubbleFloat linear infinite, bubbleDrift ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.social-bubble:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Brand default colors */
.social-bubble.brand-facebook { background: rgba(24, 119, 242, 0.85); color: #fff; box-shadow: 0 2px 10px rgba(24,119,242,0.18); border-color: rgba(24,119,242,0.35); }
.social-bubble.brand-youtube { background: rgba(255, 0, 0, 0.85); color: #fff; box-shadow: 0 2px 10px rgba(255,0,0,0.18); border-color: rgba(255,0,0,0.35); }
.social-bubble.brand-tiktok { background: rgba(17, 17, 17, 0.9); color: #fff; box-shadow: 0 2px 10px rgba(17,17,17,0.18); border-color: rgba(255,255,255,0.25); }
.social-bubble.brand-instagram { background: radial-gradient(circle at 30% 30%, #feda75 0%, #d62976 45%, #962fbf 70%, #4f5bd5 100%); color: #fff; box-shadow: 0 2px 10px rgba(214,41,118,0.18); border-color: rgba(214,41,118,0.35); }
.social-bubble.brand-x { background: #000; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.25); }
.social-bubble.brand-telegram { background: rgba(34, 158, 217, 0.9); color: #fff; box-shadow: 0 2px 10px rgba(34,158,217,0.18); border-color: rgba(34,158,217,0.35); }
.social-bubble.brand-zalo { background: rgba(0, 104, 255, 0.9); color: #fff; box-shadow: 0 2px 10px rgba(0,104,255,0.18); border-color: rgba(0,104,255,0.35); }

/* Intensify on hover */
.social-bubble.brand-facebook:hover { box-shadow: 0 6px 16px rgba(24,119,242,0.35); }
.social-bubble.brand-youtube:hover { box-shadow: 0 6px 16px rgba(255,0,0,0.35); }
.social-bubble.brand-tiktok:hover { box-shadow: 0 6px 16px rgba(17,17,17,0.35); }
.social-bubble.brand-instagram:hover { box-shadow: 0 6px 16px rgba(214,41,118,0.35); }
.social-bubble.brand-x:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.social-bubble.brand-telegram:hover { box-shadow: 0 6px 16px rgba(34,158,217,0.35); }
.social-bubble.brand-zalo:hover { box-shadow: 0 6px 16px rgba(0,104,255,0.35); }

@keyframes bubbleFloat {
    0% { transform: translateY(110vh); }
    100% { transform: translateY(-20vh); }
}

@keyframes bubbleDrift {
    0%, 100% { margin-left: 0; }
    50% { margin-left: 12px; }
} 

/* Constellation canvas */
.constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
} 