/* ===== CYBERPUNK LOGIN - BLACK & VIOLET FLOAT ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;700&display=swap');

:root {
  --violet: #9d00ff;
  --black: #000;
  --gray: #222;
  --white: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #000;
  font-family: 'Rajdhani', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  animation: bgMove 12s ease-in-out infinite alternate;
}
@keyframes bgMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 24px; }
}

#login-form {
  background: #000;
  border-radius: 24px;
  border: 2px solid var(--gray);
  box-shadow: 0 0 80px 24px var(--violet), 0 0 8px 2px var(--gray);
  width: 340px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  animation: floatUpDown 4s ease-in-out infinite alternate;
  transition: box-shadow 0.4s cubic-bezier(.4,2,.3,1), transform 0.4s cubic-bezier(.4,2,.3,1);
}
@keyframes floatUpDown {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-16px) scale(1.01); }
}

#login-form h2 {
  color: var(--white);
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-size: 1.7rem;
  font-weight: 700;
  text-shadow: 0 0 18px var(--violet), 0 0 2px var(--white);
  position: relative;
  overflow: visible;
  animation: glitch-main 2.5s infinite linear alternate;
}
#login-form h2::before, #login-form h2::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  color: var(--violet);
  opacity: 0.7;
  pointer-events: none;
}
#login-form h2::before {
  animation: glitch-top 2.5s infinite linear alternate-reverse;
  z-index: 2;
  text-shadow: 2px 0 var(--violet), 0 2px #fff;
}
#login-form h2::after {
  animation: glitch-bottom 2.5s infinite linear alternate;
  z-index: 1;
  text-shadow: -2px 0 #fff, 0 -2px var(--violet);
}
@keyframes glitch-main {
  0% { filter: none; }
  10% { filter: blur(0.5px); }
  20% { filter: none; }
  30% { filter: blur(1px); }
  40% { filter: none; }
  50% { filter: blur(0.5px); }
  60% { filter: none; }
  70% { filter: blur(1px); }
  80% { filter: none; }
  90% { filter: blur(0.5px); }
  100% { filter: none; }
}
@keyframes glitch-top {
  0% { clip-path: inset(0 0 60% 0); transform: translate(0,0); }
  10% { clip-path: inset(0 0 40% 0); transform: translate(-2px,-2px); }
  20% { clip-path: inset(0 0 60% 0); transform: translate(2px,0); }
  30% { clip-path: inset(0 0 40% 0); transform: translate(-1px,2px); }
  40% { clip-path: inset(0 0 60% 0); transform: translate(1px,-1px); }
  50% { clip-path: inset(0 0 40% 0); transform: translate(-2px,1px); }
  60% { clip-path: inset(0 0 60% 0); transform: translate(2px,-2px); }
  70% { clip-path: inset(0 0 40% 0); transform: translate(-1px,2px); }
  80% { clip-path: inset(0 0 60% 0); transform: translate(1px,-1px); }
  90% { clip-path: inset(0 0 40% 0); transform: translate(-2px,1px); }
  100% { clip-path: inset(0 0 60% 0); transform: translate(0,0); }
}
@keyframes glitch-bottom {
  0% { clip-path: inset(60% 0 0 0); transform: translate(0,0); }
  10% { clip-path: inset(40% 0 0 0); transform: translate(2px,2px); }
  20% { clip-path: inset(60% 0 0 0); transform: translate(-2px,0); }
  30% { clip-path: inset(40% 0 0 0); transform: translate(1px,-2px); }
  40% { clip-path: inset(60% 0 0 0); transform: translate(-1px,1px); }
  50% { clip-path: inset(40% 0 0 0); transform: translate(2px,-1px); }
  60% { clip-path: inset(60% 0 0 0); transform: translate(-2px,2px); }
  70% { clip-path: inset(40% 0 0 0); transform: translate(1px,-2px); }
  80% { clip-path: inset(60% 0 0 0); transform: translate(-1px,1px); }
  90% { clip-path: inset(40% 0 0 0); transform: translate(2px,-1px); }
  100% { clip-path: inset(60% 0 0 0); transform: translate(0,0); }
}

#login-form input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 1.2rem;
  background: #111;
  border: 2px solid var(--gray);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.08rem;
  border-radius: 14px;
  outline: none;
  box-shadow: 0 2px 8px 0 #111;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, filter 0.3s, transform 0.3s;
  position: relative;
  z-index: 2;
}
#login-form input:focus, #login-form input:hover {
  border-color: var(--violet);
  box-shadow: 0 0 32px 8px var(--violet), 0 2px 8px 0 #222;
  background: #181818;
  filter: brightness(1.1);
  transform: translateY(-4px) scale(1.03);
}

#login-form button {
  width: 100%;
  padding: 14px 0;
  background: #181818;
  color: var(--white);
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  font-size: 1.1rem;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 0 16px 2px var(--gray);
  transition: background 0.3s, box-shadow 0.3s, color 0.3s, filter 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
#login-form button:hover, #login-form button:focus {
  background: #222;
  color: var(--white);
  box-shadow: 0 0 48px 12px var(--violet), 0 0 16px 2px #222;
  filter: brightness(1.1);
  transform: translateY(-4px) scale(1.04);
}

.login-error {
  color: #ff4444;
  text-align: center;
  margin-top: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  text-shadow: 0 0 5px #ff4444;
  animation: shake 0.5s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 500px) {
  #login-form {
    width: 98vw;
    padding: 1.5rem 0.5rem;
    border-radius: 14px;
  }
  #login-form h2 {
    font-size: 1.1rem;
  }
}




