body {
  background: #0f2027;  /* fallback for old browsers */
  background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.login-box {
  width: 350px;
  padding: 40px;
  background: rgba(0,0,0,0.7);
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
  border-radius: 10px;
}

.login-box h2 {
  margin: 0 0 30px;
  text-align: center;
}

.user-box {
  position: relative;
  margin-bottom: 30px;
}

.user-box input {
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  color: #fff;
  outline: none;
}

.user-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  color: #fff;
  transition: 0.5s;
  pointer-events: none;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
  top: -20px;
  font-size: 12px;
  color: #03e9f4;
}

button {
  background: #03e9f4;
  border: none;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  font-size: 16px;
  transition: 0.3s ease;
}

button:hover {
  background: #029abf;
}
