:root {
    --primary: #00f0ff;
    --primary-light: #7df9ff;
    --primary-dark: #00a6c7;
    --accent: #ff2d75;
    --background: #0a0e17;
    --card-bg: rgba(16, 22, 36, 0.8);
    --text: #e0f2fe;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --error: #ff4d4d;
    --neon-glow: 0 0 10px rgba(0, 240, 255, 0.8),
                 0 0 20px rgba(0, 240, 255, 0.6),
                 0 0 30px rgba(0, 240, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');
body {
    background-color: var(--background);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Tech background elements */
.tech-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.grid-line {
    position: absolute;
    background: rgba(0, 240, 255, 0.05);
}
.horizontal {
    width: 100%;
    height: 1px;
}
.vertical {
    width: 1px;
    height: 100%;
}
.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary);
}
.cyber-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6),
                inset 0 0 10px rgba(0, 240, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    animation: fadeIn 0.8s ease-out, float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.cyber-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to bottom right,
      transparent 0%,
      rgba(0, 240, 255, 0.05) 50%,
      transparent 100%
    );
    transform: rotate(30deg);
    animation: shine 8s linear infinite;
}
h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 8px var(--primary);
    position: relative;
    display: inline-block;
    width: 100%;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 3px;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.input-group {
    position: relative;
}
.input-group i {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    z-index: 2;
}
.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.input-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.input-group:focus-within::after {
    width: 100%;
}

button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 1.1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #0a0e17;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

.switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.switch a {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.switch a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 8px var(--accent);
}

.switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.switch a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
}

@keyframes shine {
    0% {
      transform: rotate(30deg) translate(-30%, -30%);
    }
    100% {
      transform: rotate(30deg) translate(30%, 30%);
    }
}

/* Binary code animation */
.binary-code {
    position: absolute;
    color: rgba(0, 240, 255, 0.1);
    font-family: monospace;
    font-size: 0.8rem;
    user-select: none;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(-100%);
    }
}

  /* Responsive */
@media (max-width: 480px) {
    .cyber-card {
      margin: 0 1.5rem;
      padding: 1.8rem;
    }
    
    h2 {
      font-size: 1.8rem;
    }
}

/* Cyberpunk scanline effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.03) 1px,
      transparent 1px
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
      transform: translateY(0%);
    }
    100% {
      transform: translateY(-100%);
    }
}


  
  /* ==== CYBERPUNK STYLE ==== */
.cyber-button-container {
    position: relative;
    margin: 2rem 0;
    z-index: 10;
}
.cyber-glitch-btn {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00f0ff;
    color: #00f0ff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.5s;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5),
                0 0 30px rgba(0, 240, 255, 0.2);
}
.cyber-glitch-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    color: #ff2d75;
    border-color: #ff2d75;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8),
                0 0 40px rgba(255, 45, 117, 0.6),
                0 0 80px rgba(255, 45, 117, 0.4);
    text-shadow: 0 0 5px #ff2d75;
}
.cyber-text {
    position: relative;
    z-index: 2;
}
.cyber-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: -5px;
    width: 100%;
    height: 100%;
    color: #ff2d75;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    animation: glitch-effect 2s infinite linear alternate-reverse;
}
.cyber-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 5px;
    width: 100%;
    height: 100%;
    color: #00f0ff;
    z-index: -2;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-effect 3s infinite linear alternate-reverse;
}
.cyber-overlay {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
      transparent 45%, 
      rgba(0, 240, 255, 0.3) 50%, 
      transparent 55%);
    background-size: 200% 200%;
    animation: scan-overlay 4s linear infinite;
    opacity: 0.5;
    z-index: 1;
}
.cyber-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 45, 117, 0.1);
    z-index: 0;
    animation: flicker 0.1s infinite alternate;
}
.cyber-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.8), transparent 70%);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}
.cyber-glitch-btn:hover .cyber-glow {
    opacity: 0.3;
}
.cyber-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 240, 255, 0.7);
    transform: scaleX(0);
    transform-origin: left;
    animation: scanline 3s infinite linear;
    z-index: 2;
}
/* ==== INSANE ANIMATIONS ==== */
@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}
@keyframes scan-overlay {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
@keyframes flicker {
    0% { opacity: 0.1; }
    10% { opacity: 0.2; }
    20% { opacity: 0.1; }
    30% { opacity: 0.3; }
    40% { opacity: 0.1; }
    50% { opacity: 0.2; }
    60% { opacity: 0.1; }
    70% { opacity: 0.4; }
    80% { opacity: 0.1; }
    90% { opacity: 0.3; }
    100% { opacity: 0.2; }
}
@keyframes scanline {
    0% { transform: scaleX(0); }
    10% { transform: scaleX(1); }
    100% { transform: scaleX(1); }
}