* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Animated Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, #0f172a 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, #0f172a 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, #0f172a 75%) -50px 0,
        linear-gradient(-45deg, transparent 75%, #0f172a 75%) -50px 0;
    background-color: #1e293b;
    background-size: 100px 100px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

/* Gradient Overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(139, 92, 246, 0.1) 50%,
            rgba(236, 72, 153, 0.1) 100%);
    z-index: -1;
    animation: gradientShift 8s ease infinite;
}

/* Floating Circles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(59, 130, 246, 0.2) 0%,
            rgba(59, 130, 246, 0.05) 70%);
    animation: float 6s ease-in-out infinite;
    filter: blur(20px);
}

/* Card Glow Effect */
.card-glow {
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 10px 40px -20px rgba(59, 130, 246, 0.5),
        0 0 60px rgba(139, 92, 246, 0.3);
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

/* Animations */
@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 100px 100px, 100px 100px, 100px 100px, 100px 100px;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 0.7;
        background-position: 0% 50%;
    }

    50% {
        opacity: 1;
        background-position: 100% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow:
            0 0 0 1px rgba(59, 130, 246, 0.1),
            0 10px 40px -20px rgba(59, 130, 246, 0.5),
            0 0 60px rgba(139, 92, 246, 0.3);
    }

    100% {
        box-shadow:
            0 0 0 1px rgba(59, 130, 246, 0.2),
            0 10px 40px -10px rgba(59, 130, 246, 0.6),
            0 0 80px rgba(139, 92, 246, 0.4);
    }
}

/* Input Focus Effects */
.input-focus {
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.input-focus:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* Button Hover Effects */
.btn-hover {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px -5px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.4);
}

.btn-hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            transparent 20%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 80%);
    transform: rotate(30deg);
    transition: transform 0.6s;
}

.btn-hover:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Logo Animation */
.logo-container {
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-5px) rotate(1deg);
    }

    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Error Message Animation */
.error-slide {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}