#login {
  width: 900px;
  padding: 6% 0 0 !important;
  position: relative;
}
#login_error {
  margin-bottom: 8px !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 4px 12px !important;
  font-weight: 700;
}
.login-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 600px;
  margin: 0 auto;
}
.login-header-logo {
  margin-right: 15px;
}
.login-header-bkk {
  width: 160px;
  height: 150px;
}
.login-header-bkk img {
  width: 100%;
  height: auto;
}
#loginform {
  margin-top: 0;
  background-color: #e8f0ee;
  border-radius: 6px;
  padding: 60px 125px;
  border: none;
}

.loginform-heading {
  font-size: 34px;
  color: #009172;
  font-weight: 700;
  text-align: left !important;
  margin-bottom: 20px;
}
.loginform-heading-desc {
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}
.loginform-main {
  margin-top: 55px;
  margin-bottom: 15px !important;
}
.loginform-main-pwdlabel {
  color: #009172;
  font-size: 14px;
  font-weight: 700;
}
.loginform-main-input {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.loginform-main-input .input {
  margin: 0 !important;
  border: none;
  border-radius: 9px;
  background-color: #fff;
  height: 66px;
  padding: 10px 20px !important;
}
.loginform-main-input .input:focus {
  border-color: #009172;
  box-shadow: 0 0 0 1px #009172;
}
.loginform-main-input .login-btn {
  width: 160px;
  height: 66px;
  border-radius: 33px;
  flex:  0 0 160px;
  margin-left: 22px;
  background-color: #009172;
  position: relative;
  font-weight: 700;
  padding: 0 12px 0 40px !important;
}
.loginform-main-input .login-btn:hover {
  background-color: #009172;
  opacity: .7;
}
.loginform-main-input .login-btn:focus, .loginform-main-input .login-btn:checked, .loginform-main-input .login-btn:hover, .loginform-main-input .login-btn:active {
  border-color: #009172 !important;
  box-shadow: 0 0 0 1px #009172 !important;
  background: #009172 !important;
}

.forgetmenot {
  margin-top: 10px !important;
}
.forgetmenot input:focus, .forgetmenot input:checked{
  border-color: #009172;
  box-shadow: 0 0 0 1px #009172;
}
.forgetmenot input:checked:before{
  content: url(../images/login_chk.png) !important;
  width: 16px;
  height: 16px;
  padding: 2px 0 0 3px;
}
.login-footer {
  font-size: 14px;
  color: #fff;
  background-color: #009172;
  text-align: center;
  line-height: 3;
}
.login-footer.sp {
  display: none;
}
@media screen and (min-width:768px) {
  body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  #login {
    -webkit-box-flex: 1;
    -ms-flex: 1 1;
    flex: 1 1;
  }
}

@media screen and (max-width:767px) {
  #login {
    width: 100%;
    padding: 7% 15px 0 !important;
    height: calc(100vh + 42px);
  }
  .login-header {
    width: 100%;
    justify-content: flex-start;
  }
  .login-header-logo img {
    width: 100%;
  }
  #loginform {
    padding: 40px 26px;
    margin-top: -5px;
  }
  .breaksp {
    display: block;
  }
  .login-header-bkk {
    flex: 0 0 31%;
    width: auto;
    height: auto;
  }
  .loginform-heading {
    font-size: 21px;
  }
  .loginform-heading-desc {
    font-size: 12px;
  }
  .loginform-main {
    margin-top: 25px;
    margin-bottom: 8px !important;
  }
  .loginform-main-input {
    display: block;
  }
  .loginform-main-input .input {
    height: 45px;
  }
  .loginform-main-input .login-btn {
    height: 45px;
    width: 130px;
    float: unset;
    margin-top: 18px;
    margin-left: calc(50% - 65px);
  }
  #login_error {
    font-size: 9px;
  }
  .loginform-main-input .input {
    padding: 10px !important;
  }
  .forgetmenot input{
    width: 16px;
    height: 16px;
  }
  .forgetmenot {
    display: none;
  }
  .login-footer {
    left: 0;
  }
  .login-footer.pc {
    display: none;
  }
  .login-footer.sp {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
  }
}
