* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden; /* Prevent horizontal scroll on smaller devices */
  background-color: #f8f8f8; /* Light background for better contrast */
}

.wave {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 100%;
  z-index: -1;
}

.container {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 7rem;
  padding: 0 2rem;
}

.img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-content {
  display: flex;
  /* flex-direction: column; Change to column for better stacking */
  justify-content: center;
  align-items: center;
}

.img img {
  width: 400px;
  max-width: 100%; /* Ensure image does not overflow */
  height: auto; /* Maintain aspect ratio */
}

form {
  width: 500px;
  max-width: 90%; /* Make form responsive */
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-container img {
  height: 200px;
  margin: 20px;
}

.quick-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.quick-container img {
  height: 100px;
  margin: 20px;
  transition: transform 0.3s; /* Add a hover effect */
}

.quick-container img:hover {
  transform: scale(1.1); /* Scale effect on hover */
}

.login-content h2 {
  color: #333;
  text-transform: uppercase;
  font-size: 2.9rem;
  font-family: "ITC Avant Garde Gothic Paneuropean Demi Bold", sans-serif;
}

.login-content .input-div {
  position: relative;
  display: grid;
  grid-template-columns: 7% 93%;
  margin: 25px 0;
  padding: 5px 0;
  border-bottom: 2px solid #d9d9d9;
}

.input-div.one {
  margin-top: 0;
}

.i {
  color: #d9d9d9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.i i {
  transition: color 0.3s; /* Transition for icon color */
}

.input-div > div {
  height: 45px;
}

.input-div > div > h5 {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1rem;
  transition: top 0.3s, font-size 0.3s; /* Smooth transition for label */
}

.input-div:before,
.input-div:after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #a22630;
  transition: width 0.4s; /* Transition for underline */
}

.input-div:before {
  right: 50%;
}

.input-div:after {
  left: 50%;
}

.input-div.focus:before,
.input-div.focus:after {
  width: 50%;
}

.input-div.focus > div > h5 {
  top: -5px;
  font-size: 15px;
}

.input-div.focus > .i > i {
  color: #a22630;
}

.input-div > div > input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: none;
  padding: 0.5rem 0.7rem;
  font-size: 1.2rem;
  color: #555;
  font-family: "Poppins", sans-serif;
}

.input-div.pass {
  margin-bottom: 4px;
}

a {
  text-align: right;
  text-decoration: none;
  color: #a22630;
  transition: color 0.3s; /* Smooth transition for link color */
}

a:hover {
  color: #af8f00;
}

.btn {
  display: block;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  outline: none;
  border: none;
  background-color: #a22630;
  font-size: 1.2rem;
  color: #fff;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  margin: 1rem 0;
  cursor: pointer;
  transition: background-color 0.5s; /* Transition for button background */
}

.btn:hover {
  background-color: #af8f00;
}

.forgot-link {
  width: 100%;
  text-align: center !important;
  margin-top: -10px !important;
  margin-bottom: 10px;
  font-size: 0.85rem !important;
}

.forgot-link a {
  color: #999 !important;
  font-size: 0.85rem !important;
  text-decoration: none;
}

.forgot-link a:hover {
  color: #a22630 !important;
}

.PWButton:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}


@media screen and (max-width: 1000px) {
  form {
    width: 90%;
    align-items: center;
    justify-content: center;
  }

  .logo-container img {
    height: 145px;
    margin: 8px 0;
  }

  .quick-container img {
    height: 60px;
  }

  .img img {
    width: 300px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  form {
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .img {
    display: none;
  }

  .wave {
    display: none;
  }

  .login-content h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .login-content h2 {
    font-size: 1.5rem;
  }

  .logo-container img {
    height: 100px;
  }

  .quick-container img {
    height: 50px;
  }

  .btn {
    height: 45px;
    font-size: 1rem;
  }
}
