﻿/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Animated Background */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    z-index: -1;
}

/* Grid Animation */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Glowing Border */
.glow-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(#1e293b, #1e293b) padding-box,
                linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6) border-box;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5),
                   0 0 40px rgba(16, 185, 129, 0.3),
                   inset 0 0 20px rgba(16, 185, 129, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.5),
                   0 0 60px rgba(139, 92, 246, 0.3),
                   inset 0 0 30px rgba(139, 92, 246, 0.1);
    }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(6, 182, 212, 0.1) 25%,
        rgba(139, 92, 246, 0.1) 50%,
        rgba(236, 72, 153, 0.1) 75%,
        rgba(16, 185, 129, 0.1) 100%);
    background-size: 200% 200%;
    animation: holographicShift 10s ease infinite;
}

@keyframes holographicShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Neon Glow Text */
.neon-text {
    text-shadow:
        0 0 10px rgba(16, 185, 129, 0.8),
        0 0 20px rgba(16, 185, 129, 0.6),
        0 0 30px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.2);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(16, 185, 129, 0.8),
            0 0 20px rgba(16, 185, 129, 0.6),
            0 0 30px rgba(16, 185, 129, 0.4);
    }
    50% {
        text-shadow:
            0 0 20px rgba(16, 185, 129, 1),
            0 0 30px rgba(16, 185, 129, 0.8),
            0 0 40px rgba(16, 185, 129, 0.6),
            0 0 50px rgba(16, 185, 129, 0.4);
    }
}

/* Scanning Line */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(16, 185, 129, 0.8),
        transparent);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Input Focus Effect */
.cyber-input:focus {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(16, 185, 129, 0.3),
        0 0 20px rgba(16, 185, 129, 0.2),
        inset 0 0 20px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

/* Button Hover Effect */
.cyber-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cyber-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
.loading-circle {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    animation: glitch-1 2s infinite;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00fff9;
    animation: glitch-2 2s infinite;
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
    }
    20% {
        clip-path: inset(40% 0 35% 0);
    }
    40% {
        clip-path: inset(15% 0 70% 0);
    }
    60% {
        clip-path: inset(70% 0 15% 0);
    }
    80% {
        clip-path: inset(20% 0 60% 0);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
    }
    20% {
        clip-path: inset(60% 0 20% 0);
    }
    40% {
        clip-path: inset(10% 0 80% 0);
    }
    60% {
        clip-path: inset(80% 0 10% 0);
    }
    80% {
        clip-path: inset(30% 0 50% 0);
    }
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #10b981;
}

.corner-decoration.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.corner-decoration.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.corner-decoration.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}
