/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: linear-gradient(135deg, #6a11cb, #ffadfc);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: gradientMove 10s ease infinite;
  background-size: 200% 200%;
}

/* ===== Background Gradient Animation ===== */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===== Login Container ===== */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 1.2s ease both;
}

/* ===== Logo ===== */
.logo {
  width: 100px;
  margin-bottom: 10px;
  animation: floatLogo 3s ease-in-out infinite;
}

/* ===== Title ===== */
.login-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, #6a11cb, #7b0077);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  animation: fadeIn 1.5s ease;
}

/* ===== Inputs ===== */
input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 30px;
  outline: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #7b0077;
  box-shadow: 0 0 10px rgba(123, 0, 119, 0.3);
  transform: scale(1.02);
}

/* ===== Button ===== */
.login-btn {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  background: linear-gradient(to right, #6a11cb, #7b0077);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(123, 0, 119, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(123, 0, 119, 0.4);
}

/* ===== Forgot Password ===== */
.forgot-text {
  margin-top: 20px;
  color: #555;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-text:hover {
  color: #7b0077;
  cursor: pointer;
}

/* ===== Error Message ===== */
.error-message {
  color: red;
  margin-top: 10px;
  font-size: 14px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .login-box {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 24px;
  }

  input, .login-btn {
    font-size: 15px;
  }
}
