/* Background Gradient using the new palette */
body {
  margin: 0;
  height: 100vh;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #F2F2F2, #EAE4D5, #B6B09F);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Gradient movement animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Login container with soft tones */
.login-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 340px;
  text-align: center;
  animation: fadeIn 1.2s ease;
  transition: transform 0.3s ease;
}

.login-container:hover {
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.login-container h2 {
  color: #000000;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Input Fields */
.login-container input {
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #B6B09F;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  background-color: #F2F2F2;
  transition: all 0.3s ease;
  color: #000000;
}

.login-container input:focus {
  border-color: #000000;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
}

/* Login Button */
button {
  width: 100%;
  padding: 12px;
  background: #000000;
  color: #F2F2F2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

button:hover {
  background: #B6B09F;
  color: #000000;
  transform: scale(1.03);
}

/* Error & Success Messages */
#errorMsg {
  color: #c82333;  /* a red that shows up well */
  margin-top: 10px;
  font-weight: 600;
}

#successMsg {
  color: #006400;  /* dark green */
  margin-top: 10px;
  font-weight: 600;
  animation: fadeInMsg 0.8s ease;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Corner Images */
.corner-img {
  position: absolute;
  width: 100px;
  height: auto;
  top: 20px;
  transition: transform 0.3s ease;
}

.corner-img.left {
  left: 20px;
}

.corner-img.right {
  right: 20px;
}

.corner-img:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .login-container {
    width: 85%;
    padding: 25px 20px;
  }

  .corner-img {
    width: 70px;
    top: 15px;
  }
}
