/**
 * Sirati Internships - Shared Animated Background
 * Stripe-inspired animated background for auth pages
 * Used by: Student login/register, Company login/register, Admin login
 */

/* ===== Stripe Background Container ===== */
.stripe-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0e4d71 100%);
}

/* ===== Aurora Effect ===== */
.stripe-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(99, 102, 241, 0.1) 20%,
        rgba(168, 85, 247, 0.15) 40%,
        rgba(236, 72, 153, 0.1) 60%,
        rgba(6, 182, 212, 0.1) 80%,
        transparent 100%
    );
    animation: aurora-shift 15s ease-in-out infinite;
}

@keyframes aurora-shift {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.5;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.8;
    }
}

/* ===== Mesh Gradient Overlay ===== */
.stripe-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: mesh-morph 20s ease-in-out infinite;
}

@keyframes mesh-morph {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ===== Animated Gradient Orbs ===== */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0) 70%);
    top: -20%;
    left: -10%;
    animation: orb-float-1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7) 0%, rgba(236, 72, 153, 0) 70%);
    top: 50%;
    right: -15%;
    animation: orb-float-2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.6) 0%, rgba(6, 182, 212, 0) 70%);
    bottom: -10%;
    left: 20%;
    animation: orb-float-3 18s ease-in-out infinite;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.7) 0%, rgba(168, 85, 247, 0) 70%);
    top: 30%;
    left: 50%;
    animation: orb-float-4 22s ease-in-out infinite;
}

.orb-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.5) 0%, rgba(34, 211, 238, 0) 70%);
    bottom: 30%;
    right: 30%;
    animation: orb-float-5 16s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 30px) scale(1.1); }
    50% { transform: translate(20px, 80px) scale(0.95); }
    75% { transform: translate(-30px, 40px) scale(1.05); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -50px) scale(1.15); }
    66% { transform: translate(30px, 40px) scale(0.9); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-30px, -40px) scale(1.1); }
    50% { transform: translate(60px, -20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

@keyframes orb-float-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.2); }
}

@keyframes orb-float-5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 40px) scale(0.9); }
}

/* ===== Flowing Wave Layers ===== */
.wave-layer {
    position: absolute;
    width: 200%;
    height: auto;
    bottom: 0;
    left: -50%;
}

.wave-1 {
    animation: wave-drift 12s ease-in-out infinite;
    opacity: 0.8;
}

.wave-2 {
    animation: wave-drift 18s ease-in-out infinite reverse;
    opacity: 0.6;
    bottom: 20px;
}

.wave-3 {
    animation: wave-drift 15s ease-in-out infinite;
    animation-delay: -5s;
    opacity: 0.5;
    bottom: 40px;
}

@keyframes wave-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10%); }
}

/* ===== Glow Lines ===== */
.glow-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.5) 20%, 
        rgba(168, 85, 247, 0.8) 50%, 
        rgba(236, 72, 153, 0.5) 80%, 
        transparent 100%
    );
    box-shadow: 
        0 0 10px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(168, 85, 247, 0.3),
        0 0 40px rgba(236, 72, 153, 0.2);
    opacity: 0.6;
}

.glow-line-1 {
    width: 60%;
    top: 25%;
    left: -10%;
    transform: rotate(-15deg);
    animation: glow-sweep 8s ease-in-out infinite;
}

.glow-line-2 {
    width: 50%;
    top: 55%;
    right: -10%;
    transform: rotate(10deg);
    animation: glow-sweep 10s ease-in-out infinite;
    animation-delay: -3s;
}

.glow-line-3 {
    width: 40%;
    bottom: 30%;
    left: 20%;
    transform: rotate(-5deg);
    animation: glow-sweep 12s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes glow-sweep {
    0%, 100% {
        transform: translateX(-100%) rotate(-15deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(200%) rotate(-15deg);
        opacity: 0.8;
    }
}

/* ===== Floating Particles ===== */
.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.particle-1 { top: 15%; left: 25%; animation: particle-rise 8s linear infinite; }
.particle-2 { top: 35%; left: 45%; animation: particle-rise 10s linear infinite; animation-delay: -2s; }
.particle-3 { top: 55%; left: 15%; animation: particle-rise 9s linear infinite; animation-delay: -4s; }
.particle-4 { top: 75%; left: 65%; animation: particle-rise 11s linear infinite; animation-delay: -6s; }
.particle-5 { top: 25%; left: 75%; animation: particle-rise 7s linear infinite; animation-delay: -1s; }
.particle-6 { top: 45%; left: 85%; animation: particle-rise 12s linear infinite; animation-delay: -3s; }
.particle-7 { top: 65%; left: 35%; animation: particle-rise 8s linear infinite; animation-delay: -5s; }
.particle-8 { top: 85%; left: 55%; animation: particle-rise 10s linear infinite; animation-delay: -7s; }

@keyframes particle-rise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-400px) translateX(40px) scale(0.5);
        opacity: 0;
    }
}

/* ===== Grid Overlay ===== */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    animation: grid-pulse 4s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ===== Noise Texture Overlay ===== */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ===== Brand Logo - Floating style like onboarding ===== */
.brand-logo-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
}
