@import url("https://fonts.googleapis.com/css?family=Sunflower:300");

* {
  margin: 0;
  padding: 0;
  font-family: "Sunflower", sans-serif;
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  background: #E2E8E4;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
  padding: 0 20px;
}

.sub-container {
  max-width: 950px;
  width: 100%;
  max-height: 700px;
  height: 440px;
  margin: 100px auto 0;
  display: flex;
  background: #fff;
  box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, 0.125);
  box-shadow: 5px 5px #828583;
  overflow: hidden; /* Hide overflow by default */
}

.sub-container .banner-img {
  width: 900px;
  height: 100%;
}

.sub-container .banner-img img {
  width: 100%;
  height: 100%;
}

.sub-container .login-form {
  width: 550px;
  padding: 40px 35px 0;
  position: relative;
}

.sub-container .login-form .title {
  color: #303030;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.login-form .label {
  color: #524a4a;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
}

.login-form .input {
  margin: 3px 0 15px;
  width: 100%;
  padding: 8px;
}

.login-form .forgot a {
  color: #0000CD;
  font-size: 14px;
  font-weight: bold;
  margin-top: 15px;
  float: right;
}

.btn {
  margin-top: 10px;
  left: 40px;
  width: 70%;
  padding: 8px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 20px;
}

@media screen and (max-width: 500px) {
  .sub-container {
    flex-direction: column;
    max-width: 300px;
    max-height: none; /* Allow height to grow */
    height: auto; /* Allow height to grow */
    margin-top: 50px;
    border-radius: 25px;
    overflow: auto; /* Enable scrolling if content overflows */
  }
  
  .sub-container .banner-img {
    border-radius: 15px;
    max-width: 100%;
  }

  .banner-img img {
    border-radius: 25px 25px 0 0;
  }

  .sub-container .login-form {
    width: 100%;
    padding: 10px 25px 0;
  }

  .sub-container .login-form .title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .login-form .input {
    margin-bottom: 2px;
    border: none;
    border-bottom: 1px solid gray;
    font-size: 18px;
  }

  .login-form .forgot {
    margin-bottom: 55px;
    margin-top: 15px;
  }

  .btn {
    margin-top: 15px;
    left: 40px;
    width: 80%;
    padding: 8px;
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 20px;
  }

  .login-form .forgot a {
    color: #0000CD;
    font-size: 14px;
    font-weight: normal;
  }
}

@media screen and (max-width: 700px) {
  body {
    width: 100%;
  }

  .sub-container {
    flex-direction: column;
    max-width: 300px;
    max-height: none; /* Allow height to grow */
    height: auto; /* Allow height to grow */
    margin-top: 50px;
    border-radius: 25px;
    overflow: auto; /* Enable scrolling if content overflows */
  }
  
  .sub-container .banner-img {
    border-radius: 15px;
    max-width: 100%;
  }

  .banner-img img {
    border-radius: 25px 25px 0 0;
  }

  .sub-container .login-form {
    width: 100%;
    padding: 10px 25px 0;
  }

  .sub-container .login-form .title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .login-form .input {
    margin-bottom: 2px;
    border: none;
    border-bottom: 1px solid gray;
    font-size: 18px;
  }

  .login-form .forgot {
    margin-bottom: 55px;
    margin-top: 15px;
  }

  .btn {
    margin-top: 15px;
    left: 40px;
    width: 80%;
    padding: 8px;
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 20px;
  }

  .login-form .forgot a {
    color: #0000CD;
    font-size: 14px;
    font-weight: normal;
  }
}

.footer {
  background: #fff;
  border-top: 1px solid #dee2e6;
  padding: 1rem;
  width: 100%;
  position: fixed;
  z-index: 999;
  bottom: 0;
}

.footer p {
  color: #869099;
  font-size: 1em;
  margin: 0;
}

.footer p a {
  color: #007bff;
  text-decoration: underline;
}

.footer p a:hover {
  text-decoration: none;
}
