* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f6f8fc;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #435a68;
  line-height: 20px;
}

.logo {
  width: 200px;
  height: 84px;
  margin: 0 auto 40px;
  background-image: url('../img/logo_new.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.form-signin {
  width: 360px;
  margin: 0 auto 14px;
  padding: 14px 28px 50px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.1);
  text-align: center;
}

.loginTxt {
  font-size: 25px;
  font-weight: 500;
  color: #202124;
  line-height: 32.5px;
  margin: 10px 0 30px;
  text-align: center;
}

.loginCredential {
  display: flex;
  width: 320px;
  margin: 0 auto 17px;
  height: 42px;
}

.loginCredential a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  min-width: 47px;
  height: 42px;
  background-color: transparent;
  border: 1px solid #cccccc;
  border-right: none;
  border-radius: 5px 0 0 5px;
  text-decoration: none;
}

.loginCredential a img {
  width: 15px;
  height: 16px;
}

.loginCredential input {
  flex: 1;
  height: 42px;
  border: 1px solid #cccccc;
  border-left: none;
  border-radius: 0 5px 5px 0;
  padding: 2px 8px 3px;
  font-size: 15px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #555555;
  line-height: 35px;
  outline: none;
  background-color: #ffffff;
}

.loginCredential input::placeholder {
  color: #999999;
}

.form-signin p {
  margin: 5px 0 0;
  text-align: center;
}

.form-signin p a {
  color: #00325b;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
}

.form-signin p a:hover {
  text-decoration: underline;
}

.btn-primary {
  display: block;
  width: 320px;
  height: 41px;
  margin: 15px auto 0;
  padding: 8.75px 19px;
  background-color: #8bc53f;
  color: #ffffff;
  font-size: 17.5px;
  font-weight: 400;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 25px;
  text-align: center;
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #7ab535;
}

.btn-primary:disabled {
  background-color: #b8d990;
  cursor: not-allowed;
}

.page-wrapper {
  padding-top: 60px;
}

/* Template 1 styles (inner pages) */
.page-wrapper.template-1 {
  background-color: #ffffff;
  min-height: 100vh;
}

body:has(.template-1) {
  background-color: #ffffff;
}

.labelTxt {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #5f6368;
  line-height: 20px;
  margin: 0 0 7px;
  text-align: left;
  width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.form-field {
  width: 320px;
  height: 40px;
  margin: 0 auto 20px;
  padding: 8px 8px 0;
  font-size: 15px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #2f3f49;
  line-height: 30px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.075);
  outline: none;
  background-color: #ffffff;
  display: block;
}

.form-field::placeholder {
  color: #999999;
}

.form-field.error {
  border-color: #dc3545;
}

.btn-dark {
  display: block;
  width: 320px;
  height: 41px;
  margin: 0 auto;
  padding: 8.75px 19px;
  background-color: #364457;
  color: #ffffff;
  font-size: 17.5px;
  font-weight: 400;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 25px;
  text-align: center;
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-dark:hover {
  background-color: #2b3847;
}

.btn-dark:disabled {
  background-color: #6b7a8d;
  cursor: not-allowed;
}

/* Validation error styles */
.loginCredential.error a {
  border-color: #dc3545;
}

.loginCredential.error input {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  text-align: left;
  margin: -12px auto 14px;
  width: 320px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Responsive */
@media (max-width: 480px) {
  .page-wrapper {
    padding-top: 30px;
  }

  .logo {
    width: 160px;
    height: 68px;
    margin-bottom: 24px;
  }

  .form-signin {
    width: calc(100% - 24px);
    margin: 0 12px 14px;
    padding: 14px 16px 36px;
    border-radius: 8px;
  }

  .loginTxt {
    font-size: 22px;
    margin: 8px 0 20px;
  }

  .loginCredential {
    width: 100%;
  }

  .error-message {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
  }

  .labelTxt {
    width: 100%;
  }

  .form-field {
    width: 100%;
  }

  .btn-dark {
    width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .form-signin {
    width: calc(100% - 48px);
    max-width: 360px;
    margin: 0 auto 14px;
  }
}
