@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0; /* Optional background */
}

    .no-js #loader { display: none;  }
    .js #loader { display: block; position: absolute; left: 100px; top: 0; }
    .se-pre-con {
        position: fixed;
        left: 0px;
        top: 0px;
        width: 100%;
        height: 100%;
        z-index: 9999;
        background: url(images/loader-128x/Preloader_abundant2.gif) center no-repeat #fff;
    }

.main {
  display: flex;
  width: 100%;
  height: 100vh; /* Full viewport height */
}

.half-bg-amcs,
.form-login {
  width: 50%;
}

.half-bg-amcs {
  background: url(background/amcs.jpg);
  opacity: 80%;
  background-size: cover;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  color: white;
  font-weight: 600;
  align-content: space-around;
  flex-wrap: wrap;
  flex-direction: column;
}

.half-bg-amcs p {
  margin-bottom: 1rem;
  font-size: 15px;
}

.form-login {
  background-color: rgb(255, 255, 255); /* Adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  min-height: 100vh; /* Full viewport height */
  flex-direction: column; /* Ensure elements stack vertically */
}

.form-login .container {
  max-width: 400px; /* Set a max width for the form */
  width: 100%;
}

.container .logo {
  width: 80px;
  height: 80px;
  margin: 0 auto; /* Center logo */
}

.container .text {
  width: 300px;
  height: 80px;
}

form.login-form {
  width: 100%;
  max-width: 400px;
  margin-top: 2rem;
}

form .main-text {
  font-size: 25px;
  color: #333;
  font-weight: 600;
  color: #4267b2;
}

form .textt {
  font-size: 15px;
  color: #333;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

label {
  font-size: 17px;
  color: #333;
  font-weight: normal;
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .input-group-text {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  padding: 0.46rem;
}

.input-group .input-group-text i {
  color: #0056b3;
  font-size: 1.2rem;
  padding: 0.3rem;
}

.input-group .form-control {
  padding-left: 10px;
  border: 1px solid #ccc;
  outline: none;
  padding: 1.1rem;
}

.input-group .form-control:focus {
  border-color: #007bff;
  box-shadow: none;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 2rem;
}

.btn-login:hover {
  background-color: #0056b3;
}

.forgot-password {
  display: flex;
  justify-content: space-between;
  width: 100%;
  bottom: 10px;
  left: 0;
  padding: 1rem 0rem;
}

.forgot-password a {
  font-size: 15px;
  font-weight: normal;
  color: #000;
}

/* Media query for responsiveness */
@media (max-width: 1000px) {
  .main {
    flex-direction: column;
  }

  .form-login {
    width: 100%;
    min-height: 70vh; /* Takes up more space */
  }

  .half-bg-amcs {
    width: 100%;
    height: 50vh; /* Takes up less space */
  }

  form .main-text,
  form p {
    font-size: 18px; /* Adjust the font size */
  }

  label {
    font-size: 15px;
  }
  
   .form-login .container {
    max-width: 430px; /* Set a max width for the form */
    width: 100%;
  }

  .input-group .form-control {
    padding-left: 8px;
    width: 100%; /* Slightly smaller padding */
  }

  .form-control {
    padding: 0.7rem;
    font-size: 0.9rem; /* Adjust font size */
  }

  .btn-login {
    padding: 0.9rem;
    font-size: 0.9rem;
  }

  .container {
    padding: 1.5rem; /* Reduce padding on smaller screens */
  }
}

.forgot-password {
  display: flex;
  justify-content: space-between;
  width: 100%;
  bottom: 10px;
  left: 0;
  padding: 1rem 0rem;
}

@media (max-width: 600px) {
    
    
      .main {
    flex-direction: column;
  }

  .form-login {
    width: 100%;
    min-height: 80vh; /* Takes up more space */
  }

  .half-bg-amcs {
    width: 100%;
    height: 50vh; /* Takes up less space */
  }
    


  .form-login .container {
    max-width: 450px; /* Set a max width for the form */
    width: 100%;
  }

  .container .logo {
    width: 100px;
    height: 100px;
    margin: 0 auto; /* Center logo */
  }

  .container .text {
    width: 250px;
    height: 75px;
    margin-top:.5rem;
  }

  form.login-form {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
  }

  form .main-text {
    font-size: 25px;
    color: #333;
    font-weight: 600;
    color: #4267b2;
  }

  form .textt {
    font-size: 15px;
    color: #333;
    font-weight: normal;
    margin-bottom: 0.5rem;
  }

  label {
    font-size: 17px;
    color: #333;
    font-weight: normal;
  }

  .input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .input-group .input-group-text {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    padding: 0.46rem;
  }

  .input-group .input-group-text i {
    color: #0056b3;
    font-size: 1.2rem;
    padding: 0.3rem;
  }

  .input-group .form-control {
    border-radius: 0 5px 5px 0;
    padding-left: 10px;
    border: 1px solid #ccc;
    outline: none;
    padding: 1.1rem;
  }

  .input-group .form-control:focus {
    border-color: #007bff;
    box-shadow: none;
  }

  .form-control {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }

  .btn-login {
    width: 100%;
    padding: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 2rem;
  }

  .btn-login:hover {
    background-color: #0056b3;
  }

  .forgot-password a {
    font-size: 15px;
    font-weight: normal;
  }
}
