* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-box {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  color: white;
  width: 300px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 30px;
}

.user-box {
  position: relative;
  margin-bottom: 20px;
}

.user-box input {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid white;
  color: white;
  font-size: 16px;
}

.user-box label {
  position: absolute;
  top: 10px;
  left: 0;
  pointer-events: none;
  color: #ccc;
  transition: 0.3s ease;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
  top: -15px;
  color: #23d5ab;
  font-size: 12px;
}

#togglePassword {
  position: absolute;
  top: 10px;
  right: 0;
  background: none;
  color: #23d5ab;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background: #23d5ab;
  border: none;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
}

.login-btn:hover {
  background: #1ca98d;
}
