@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #4158D0, #C850C0, #FFCC70, #0093E9);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.form-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 40px 30px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.form-box:hover {
  transform: translateY(-5px);
}

h2 {
  margin-bottom: 25px;
  font-weight: 600;
  color: #fff;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  padding: 10px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
}

.input-group label {
  position: absolute;
  left: 10px;
  top: 10px;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
  transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  top: -10px;
  left: 0;
  font-size: 12px;
  color: #FFCC70;
}

.input-group input:focus {
  border-bottom-color: #FFCC70;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(45deg, #FFCC70, #C850C0);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 204, 112, 0.4);
}

.logout {
  margin-top: 20px;
  background: linear-gradient(45deg, #0093E9, #80D0C7);
}

p {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

a {
  color: #FFCC70;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.message {
  margin-top: 10px;
  font-size: 14px;
  color: #ffbaba;
  min-height: 20px;
}
