body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #04908b, #038d7d);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden; /* Prevent body overflow */
}

.login-container {
  background-color: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out;
  overflow-y: auto; /* Allow scrolling within the container */
  max-height: 90vh; /* Set max height to avoid overflow */
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container img {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  background: linear-gradient(90deg, #04908b, #038d7d);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  font-size: 14px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.form-group input:focus {
  border-color: #04908b;
  outline: none;
}

.form-group input:hover {
  border-color: #04908b;
}

button {
  background-color: #04908b;
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #038d7d;
  transform: scale(1.05);
}

.error-message {
  color: red;
  margin-top: 10px;
  font-size: 14px;
  overflow-y: auto; /* Allow scroll inside the error message */
}

.show-password {
  margin-top: 10px;
  text-align: left;
  font-size: 14px;
  color: #555;
}

.show-password input {
  margin-right: 5px;
}

.invalid {
  border-color: red !important;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  .login-container {
    width: 90%;
    padding: 25px;
  }

  h2 {
    font-size: 24px;
  }

  .form-group input,
  button {
    font-size: 14px;
  }
}
