body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: auto; /* Allow scrolling when zoomed */
  position: relative;
  font-family: "Poppins", sans-serif;
  background-image: url("../pics/bgl.png");
  background-repeat: no-repeat;
  background-size: cover; /* Makes the background image cover the entire viewport */
  background-position: center;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../pics/.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: -1;
}

.container {
  display: flex;
  align-items: stretch;
  width: 700px;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.left-image {
  flex-shrink: 0;
  width: 50%;
  height: auto;
  max-width: 337px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  object-fit: cover;
}
.logi-image {
  display: block;
  width: 75%;
  height: auto;
  max-width: 330px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  object-fit: cover;
  margin: 0 auto; /* Center the image horizontally */
}

.content {
  flex-grow: 1;
  width: 100%;
  padding: 30px;
  background-color: #128f8b;
  box-shadow: 0 20px 28px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.3);
}

#LoginT {
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  margin-top: -10px;
  margin-bottom: 20px;
  color: white;
}

.userinput label {
  margin: 2px 0 5px;
  font-size: 14px;
  color: white;
}

.userinput input[type="text"],
.userinput input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #128f8b;
  color: white;
}

.userinput input[type="text"]::placeholder,
.userinput input[type="password"]::placeholder {
  color: #ffffff;
  opacity: 1;
}

.container2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

#register {
  margin-right: 5px;
  color: white;
  font-size: 14px;
}

#link {
  color: white;
  text-decoration: none;
}

#link:hover {
  text-decoration: underline;
}

#link1 {
  width: 100%;
  padding: 10px;
  background-color: #44abad;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-weight: bold;
  transition: 0.3s;
}

#link1:hover {
  background-color: white;
  color: #44abad;
}

#forgotPassword {
  display: block;
  margin: 10px 0;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
}

#forgotPassword:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .left-image {
    width: 100%;
    max-width: none;
    height: auto;
    margin-right: 0;
    margin-bottom: 20px;
    border-radius: 10px 10px 0 0;
  }

  .content {
    padding: 20px;
  }

  #link1 {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .left-image {
    display: none;
  }

  .container {
    width: 100%;
    margin: 20px; /* Add margin on mobile */
    box-sizing: border-box; /* Ensure padding and margin do not overflow the container */
  }

  .content {
    padding: 20px;
  }

  #LoginT {
    font-size: 20px;
  }

  .userinput input[type="text"],
  .userinput input[type="password"] {
    padding: 8px;
  }

  #link1 {
    font-size: 14px;
    padding: 8px;
  }
}

/* Hide image when zoomed */
@media (min-resolution: 2dppx) {
  .left-image {
    display: none;
  }
}
