/* 
    Shared styles for background effects, particles, and grid
    - Extracted from index.html
    - Applied to login.html, verify.html, and pricing.html
*/

/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #E0E0E0;
    background-color: #0A0F1A;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
    z-index: 1;
}

/* Enhanced Particle Background */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3; /* Behind all content */
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%);
    animation: floatParticle linear infinite;
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

/* Particle sizes and speeds for depth */
.particle.small { width: 3px; height: 3px; animation-duration: 20s; }
.particle.medium { width: 5px; height: 5px; animation-duration: 25s; }
.particle.large { width: 8px; height: 8px; animation-duration: 30s; }

/* Orbital particles */
.particle.orbital {
    animation: orbitalMotion linear infinite;
    transform-origin: 50vw 50vh;
}
.particle.orbital.small { animation-duration: 40s; opacity: 0.4; }
.particle.orbital.medium { animation-duration: 50s; opacity: 0.3; }
.particle.orbital.large { animation-duration: 60s; opacity: 0.2; }

/* Drifting particles */
.particle.drift {
    animation: driftMotion ease-in-out infinite;
}
.particle.drift.small { animation-duration: 15s; }
.particle.drift.medium { animation-duration: 18s; }
.particle.drift.large { animation-duration: 22s; }

/* Grid Background */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transition: transform 0.1s ease-out, background-position 0.1s ease-out;
}

body::before {
    background-image:
      linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
      linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    z-index: -2;
    background-position: var(--grid-bg-x, 0px) var(--grid-bg-y, 0px);
    transform: perspective(1000px) rotateX(var(--grid-rot-x, 0deg)) rotateY(var(--grid-rot-y, 0deg));
}

body::after {
    background-image:
      linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: -1;
    transition-duration: 0.15s;
    background-position: var(--grid-bg-x2, 0px) var(--grid-bg-y2, 0px);
    transform: perspective(1000px) rotateX(var(--grid-rot-x2, 0deg)) rotateY(var(--grid-rot-y2, 0deg));
}

@media (max-width: 768px) {
    .particle.large { display: none; }
    body::before, body::after { transition: none; }
}

@media (max-width: 480px) {
    .particle.medium { display: none; }
}

/* Particle Animations */
@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) translateX(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-100px) translateX(50px); }
}

@keyframes orbitalMotion {
    0% { transform: rotate(0deg) translateX(300px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: rotate(360deg) translateX(300px) rotate(-360deg); opacity: 0; }
}

@keyframes driftMotion {
    0% { opacity: 0; transform: translate(0, 0); }
    25% { opacity: 0.8; transform: translate(30px, -20px); }
    50% { opacity: 0.6; transform: translate(-20px, -40px); }
    75% { opacity: 0.8; transform: translate(40px, -60px); }
    100% { opacity: 0; transform: translate(0, -80px); }
}

/* Shared Header styles */
.header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* General Container */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    width: 100%;
}

/* General Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 