/* 
  Cyberpunk / Dark Sci-Fi Theme 
  Core Colors: 
  - Background: #050505
  - Primary Neon: #00f3ff (Cyan)
  - Secondary Neon: #bc13fe (Purple)
  - Text: #e0e0e0
*/

:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --text-primary: #e0e0e0;
    --text-secondary: #94a3b8;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace, system-ui; /* Tech font */
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Animation */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Glow Effect */
.glass-card::before {
    content: "";
    position: absolute;
    top: var(--mouse-y, -50%);
    left: var(--mouse-x, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15), transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* Typography & Typewriter */
.typewriter-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--neon-cyan);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Status Indicator Pulse */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--dot-color-rgb), 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(var(--dot-color-rgb), 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--dot-color-rgb), 0); }
}

/* Form Styles */
input, textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2) !important;
    outline: none !important;
}

/* Button */
.btn-cyber {
    background: linear-gradient(90deg, #00f3ff, #0066ff);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #bc13fe, #00f3ff);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-cyber:hover::before {
    opacity: 1;
}

/* Toast Notification */
.toast-cyber {
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--neon-cyan);
    width: 100%;
    animation: progress-shrink 3s linear forwards;
}

@keyframes progress-shrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Auth Overlay Animation */
.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    letter-spacing: 1px;
}