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

:root {
  --bg-dark: #0a0014;
  --bg-mid: #12002a;
  --neon-purple: #bf00ff;
  --neon-cyan: #00f5ff;
  --neon-pink: #ff006e;
  --neon-yellow: #ffee00;
  --ground: #1e0040;
  --ground-border: #9d00ff;
  --text-primary: #ffffff;
  --text-dim: #8888aa;
  --danger: #ff1744;
  --success: #00e676;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow: hidden;
}

.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.logo-section {
  position: relative;
  z-index: 1;
  text-align: center;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 40px var(--neon-cyan), 0 0 80px var(--neon-purple);
  position: relative;
}

.glitch {
  animation: glitch 3s infinite;
}

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

.glitch::before {
  color: var(--neon-pink);
  animation: glitch-shift 2s infinite;
  clip-path: inset(0 0 60% 0);
  z-index: -1;
}

.glitch::after {
  color: var(--neon-cyan);
  animation: glitch-shift2 2.5s infinite;
  clip-path: inset(40% 0 0 0);
  z-index: -1;
}

@keyframes glitch-shift {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 2px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, -2px); }
}

@keyframes glitch-shift2 {
  0%, 88%, 100% { transform: translate(0); }
  90% { transform: translate(2px, -3px); }
  93% { transform: translate(-3px, 2px); }
  95% { transform: translate(1px, 1px); }
}

.tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-top: 1rem;
  letter-spacing: 4px;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mid);
  padding: 2rem;
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
}

.tab-switcher {
  display: flex;
  margin-bottom: 2rem;
  gap: 0;
}

.tab-btn {
  flex: 1;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.tab-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.tab-btn.active {
  background: var(--neon-purple);
  border-color: var(--neon-purple);
  color: white;
  box-shadow: 0 0 15px rgba(191, 0, 255, 0.4);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: var(--neon-cyan);
  letter-spacing: 2px;
}

.form-group input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--text-dim);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(191, 0, 255, 0.3);
}

.hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.submit-btn {
  padding: 1rem;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border: none;
  border-radius: 4px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  box-shadow: 0 0 20px rgba(191, 0, 255, 0.6), 0 0 40px rgba(255, 0, 110, 0.3);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
}

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }
  .auth-left {
    min-height: 200px;
    flex: 0;
    padding: 2rem;
  }
  .logo {
    font-size: 2.5rem;
  }
  .auth-right {
    flex: 1;
  }
}
