body {
  font-family: Poppins, Inter, system-ui, Arial;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  height: 100vh;
  background: #ffffff;
  overflow: hidden;
}

.bg-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s ease;
  z-index: -1;
  animation:
    zoomIn 3s ease-out forwards,
    slowRotate 360s linear infinite 4s;
}

@keyframes zoomIn {
  0% {
    transform: translate(-50%, -50%) scale(0.01);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
}

@keyframes slowRotate {
  from {
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) scale(0.3) rotate(360deg);
  }
}

.bg-logo.dimmed {
  opacity: 0.08;
  filter: blur(2px);
  transition: all 0.8s ease;
}

.login-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.4s ease;
}

/* Visible state */
.login-box.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Inputs */
.login-box input {
  font-size: 16px;
  width: 280px;
  padding: 14px 16px;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,0.1);
  outline: none;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
}

.login-box input:focus {
  border-color: #5B3FD3;
  box-shadow: 0 10px 40px rgba(91,63,211,0.2);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0); /* start transparent */
  backdrop-filter: blur(0px);
  z-index: 1;
  pointer-events: none;
  transition: all 0.6s ease;
}

/* Active state */
.overlay.active {
  background: rgba(0, 0, 0, 0.3);
}

.go-btn {
  width: 70px;
  padding: 12px;
  border: none;
  border-radius: 30px;
  background: #000000;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.go-btn:hover {
  background: #4c35b5;
}

.error-msg {
  font-size: 14px;
  color: #e11d48; /* soft red */
  min-height: 16px;
  text-align: center;
}

/* highlight invalid inputs */
.input-error {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.1);
}


