@import 'init.css';
@import 'navbar.css';
@import 'footer.css';
@import 'form.css';

main {
  min-height: calc(100vh - (56px + 81px + 60px));
  width: 100%;
  display: flex;
  flex-direction: column;

}

main.public-login {
  background: url('../assets/image/bangkok-background-desktop-wo-mnk.png') no-repeat center bottom;
  -webkit-background-size: contain;
  -moz-background-size: contain;
  -o-background-size: contain;
  background-size: contain;
  position: relative;
  overflow: hidden;
}

main.officer-login {
  margin: auto;
  padding: 0rem 1rem 3rem 1rem;
}

.card {
  margin: auto;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  min-height: 392px;
  max-width: 847px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
}

.card.card-officer {
  max-width: 900px;
  padding: 2rem 0rem;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: row;
  height: auto;
}

.card-profile-section {
  order: 1;
  background-color: #E0F8EB;
  color: #038840;
  text-align: center;
  font-size: 1rem;
  width:45%;
  font-weight: bold;
  height: 100%;
  position: relative;
  background: url('../assets/image/bangkok-card-background-wo-mnk-color.png') no-repeat center bottom; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.card-usermanual-section {
  order: 1;
  text-align: center;
  font-size: 1rem;
  width: 50%;
  font-weight: bold;
  height: 100%;
  position: relative;
  border-right: 1px solid #F2F2F2;
}

.card-usermanual-section.out-frame {
  display: none;
}

.card-usermanual-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: bold;
}

.card-usermanual-section .document-field {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.card-usermanual-section .document-field .document-card {
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  text-align: left;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
}

.card-usermanual-section .document-field .document-card h3 {
  color: #374151;
  font-size: 1rem;
  font-weight: normal;
}

.card-usermanual-section .document-field .document-card button.view-document-button {
  background-color: #ffffff;
  border-radius: 50px;
  border: 1px solid #038840;
  text-align: center;
  color: #038840;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  min-width: 106px;
  min-height: 22px;
  padding: 5px;
}

.card-usermanual-section .document-field .document-card button.view-document-button a {
  width: 100%;
  height: 100%;
  display: block;
}

.card-profile-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

/* .card-profile-background {
  height: 100%;
  width: 100%;

} */

.card-profile-container img {
  margin: auto;
}

.card-login-section {
  padding: 50px;
  order: 2;
  flex: 1;
  width: 100%;
  height: 100%
}

.card-officer .card-login-section, .card-usermanual-section {
  padding: 0px 30px 50px 30px;
}

.card-login-section h1, .card-login-section h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: bold;
}

.card-login-section p {
  margin-top: 10px;
}

.card-login-button-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 44px;
}

.card-login-button {
  display: flex;
  flex: row;
  gap: 10px;
  background-color: #ffffff;
  border-radius: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 1rem;
  font-weight: normal;
  color: #000000;
}

.content-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

.page-bar {
  height: 15px;
  width: 100%;
  max-width: 100%;
  background-color: #038840;
  margin-bottom: 2rem;
}

.back-to-home-button {
  min-width: 140px;
  min-height: 30px;
  background-color: #f5f5f5;
  border-radius: 50px;
  text-align: center;
  color: #038840;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-top: 1rem;
  gap: 10px;
  padding: 10px 8px;
  width: fit-content;
}

.officer-page-title-container {
  width: 100%;
  margin-top: auto;
  color: #038840;
  font-size: 1.75rem;
  font-weight: bold;
  
  gap: 1rem;
  margin-bottom: 2rem;
  cursor: pointer;
  text-align: center;
}

.officer-page-title-container a {
  width: fit-content;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: auto;
}

@media screen and (max-width: 1200px) {
  main {
    min-height: calc(100vh - (52px + 81px));
    padding: 1rem;
  }

  .card {
    max-width: 600px;
  }
  
  .card-profile-section {
    display: none;
  }

  .card-login-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  main.public-login {
    background: url('../assets/image/bangkok-background-tablet-wo-mnk.png') no-repeat center bottom;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
  }
}

@media screen and (max-width: 900px) {
  main {
    min-height: calc(100vh - (81px + 50.39px));
    padding: 1rem;
  }

  main.public-login {
    background: url('../assets/image/bangkok-background-mobile-wo-mnk.png') no-repeat center bottom;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
  }

  .officer-page-title-container {
    font-size: 1.5rem;
  }

  .card-usermanual-section {
    display: none;
  }

  .card-usermanual-section.out-frame {
    display: block;
    width: 100%;
    padding: 3rem 0rem;
    border: none;
  }

  .card-usermanual-section.out-frame .card-usermanual-title {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .card {
    max-width: 400px;
  }

  .card-login-section {
    padding: 35px;
  }
}

@media screen and (max-width: 768px) {

  .officer-page-title-container {
    font-size: 1.25rem;
  }

  main {
    min-height: calc(100vh - (81px + 68.78px));
  }
}


@media screen and (max-width: 475px) {
  .officer-page-title-container {
    font-size: 1.05rem;
  }

  .card {
    max-width: 350px;
    min-height: auto;
  }

  .card-login-section {
    padding: 2rem 1.5rem 3rem 1.5rem;
    justify-content: flex-start;
  }

  .card-login-button {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 425px) {
  main {
    min-height: calc(100vh - (81px + 64px));
  }

  .card {
    max-width: 300px;
  }
}