/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0f23;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Animated Grid Background */
.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
    animation: gridScroll 20s linear infinite;
    z-index: 0;
}

@keyframes gridScroll {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(100px);
    }
}

/* Glowing Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 10%;
    left: 10%;
}

.orb2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: 15%;
    right: 15%;
    animation-delay: 5s;
}

.orb3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(50px, -50px);
    }
    66% {
        transform: translate(-30px, 30px);
    }
}

/* Data Lines */
.data-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.3;
}

.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: lineMove 3s ease-in-out infinite;
}

.line:nth-child(1) {
    top: 20%;
    width: 40%;
    left: 0;
    animation-delay: 0s;
}

.line:nth-child(2) {
    top: 50%;
    width: 50%;
    right: 0;
    animation-delay: 1s;
}

.line:nth-child(3) {
    top: 80%;
    width: 35%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes lineMove {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Common Buttons */
button, .btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Common Input Styles */
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
}

input[type="password"]:focus,
input[type="text"]:focus {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Common Card Styles */
.glass-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Error Message */
.error-message {
    color: #ff6b6b !important;
}

/* Links */
a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: rgba(255, 255, 255, 0.9);
}
