/* ── Artifact Column Styles for Particle Network ────────────────────── */
/* Adds cool interactive network visualization to the login page */

.artifact-col {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    padding: 0 !important;
    min-height: 550px;
}

.artifact-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Canvas styling for particle network */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    cursor: default;
}

/* Glass morphism info card overlay */
.glass-info-card {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.8rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 2rem;
    border: 1px solid rgba(13, 110, 253, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.dark-theme .glass-info-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-info-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 16px 40px rgba(13, 110, 253, 0.15);
}

.glass-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.3);
    transition: transform 0.3s ease;
}

.glass-info-card:hover .glass-icon {
    transform: scale(1.05);
}

.glass-icon i {
    font-size: 30px;
    color: white;
}

.glass-info-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.glass-info-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 110, 253, 0.12);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

.dark-theme .connection-badge {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}

/* Pulse animation for secure connection indicator */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle grid overlay for tech aesthetic */
.artifact-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-light) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Tech grid pattern overlay */
.artifact-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(13, 110, 253, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 110, 253, 0.03) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
    z-index: 0;
}

.dark-theme .artifact-wrapper::before {
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
}

.dark-theme .artifact-wrapper::after {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .artifact-col {
        min-height: 420px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    
    .artifact-wrapper {
        min-height: 420px;
    }
    
    .glass-info-card {
        padding: 1.4rem 1.6rem;
        max-width: 260px;
    }
    
    .glass-icon {
        width: 52px;
        height: 52px;
    }
    
    .glass-icon i {
        font-size: 24px;
    }
    
    .glass-info-card h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .artifact-col {
        min-height: 360px;
    }
    
    .artifact-wrapper {
        min-height: 360px;
    }
    
    .glass-info-card {
        padding: 1.2rem 1.4rem;
        max-width: 240px;
    }
    
    .glass-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.8rem;
    }
    
    .glass-icon i {
        font-size: 22px;
    }
}

/* Smooth transitions for theme changes */
.artifact-col,
.glass-info-card,
#particleCanvas {
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* Optional: subtle floating animation for the card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.glass-info-card {
    animation: fadeInUp 0.8s ease-out, float 6s ease-in-out infinite;
    animation-delay: 0s, 0.8s;
}