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

body {
  font-family: "Poppins", sans-serif;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #050816;
  position: fixed;
  width: 100%;
}

body::before {
  content: "";
  position: absolute;
  width: 180%;
  height: 180%;
  background:
    radial-gradient(circle, #00e5ff55 0%, transparent 18%),
    radial-gradient(circle, #8a2be255 0%, transparent 18%),
    radial-gradient(circle, #00ffb355 0%, transparent 18%);
  background-size: 30% 30%;
  animation: moveBg 18s linear infinite;
  filter: blur(30px);
  pointer-events: none;
}

@keyframes moveBg {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.2);
  }
}

.light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.light:nth-child(1) {
  width: 350px;
  height: 350px;
  background: #00d4ff;
  top: -120px;
  left: -120px;
}

.light:nth-child(2) {
  width: 320px;
  height: 320px;
  background: #7c3aed;
  bottom: -100px;
  right: -100px;
}

.login-card {
  position: relative;
  z-index: 10;
  width: 390px;
  padding: 45px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 50px rgba(0, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #00d4ff, #8a2be2, #00ff99);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo {
  text-align: center;
  margin-bottom: 50px;
}

.logo h2 {
  color: white;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: #00e5ff;
}

.logo p {
  color: #c9d1d9;
  font-size: 13px;
  margin-top: 8px;
}

.input-group {
  margin-bottom: 18px;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 15px;
  transition: 0.3s;
  outline: none;
  border: 1px solid transparent;
}

.input-group input::placeholder {
  color: #b9c0c7;
}

.input-group input:focus {
  border-color: #00e5ff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #00d4ff, #6a5cff, #8a2be2);
  transition: 0.35s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 25px rgba(0, 229, 255, 0.5),
    0 0 45px rgba(138, 43, 226, 0.35);
}

.error-msg {
  background: rgba(255, 0, 60, 0.15);
  color: #ffb0b0;
  border: 1px solid rgba(255, 0, 60, 0.3);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 14px;
}

.bottom-line {
  margin-top: 28px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
}

@media (max-width: 480px) {
  .login-card {
    width: 92%;
    padding: 35px 25px;
  }

  .logo h2 {
    font-size: 28px;
  }
}