html, body {
  min-height: 100%;
}

body, .login-pf body {
  margin: 0;
  font-family: 'Kanit', 'Leelawadee UI', Tahoma, 'Noto Sans Thai', system-ui, sans-serif;
  color: #4c5258;
  background: url('../img/bg-login-img.jpg') center / cover no-repeat fixed;
}

.nw-screen {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 3rem 1rem;
  box-sizing: border-box;
}

.nw-content {
  width: 100%;
  max-width: 31rem;
}

.nw-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 3rem;
}

.nw-logo img {
  width: 260px;
  max-width: 100%;
  height: auto;
}

.nw-card {
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.75rem rgb(0 0 0 / 12%);
  padding: 2rem;
}

.nw-field {
  margin-bottom: 1rem;
}

.nw-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
}

.nw-field input {
  width: 100%;
  height: 2rem;
  box-sizing: border-box;
  border: 1px solid #ced4da;
  border-radius: 0.2rem;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: inherit;
  background: #fff;
}

.nw-field input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgb(13 110 253 / 25%);
}

.nw-password {
  position: relative;
}

.nw-password input {
  padding-right: 2.5rem;
}

.nw-eye {
  position: absolute;
  top: 0;
  right: 0;
  height: 2rem;
  width: 2.5rem;
  border: 0;
  background: transparent;
  color: #626970;
  cursor: pointer;
}

.nw-eye svg,
.nw-submit svg {
  width: 1rem;
  height: 1rem;
}

.nw-forgot {
  text-align: right;
  margin: -0.25rem 0 1rem;
}

.nw-forgot button {
  border: 0;
  background: transparent;
  color: #0d6efd;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.nw-submit {
  display: inline-flex;
  width: 100%;
  height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.2rem;
  background: #0d6efd;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.nw-submit:hover {
  background: #0b5ed7;
}

.nw-submit:disabled {
  opacity: 0.65;
}

.nw-notice {
  margin: 0 0 1.5rem;
  border: 1px solid #e2e3e5;
  border-radius: 0.375rem;
  background: #f7f8fa;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
}

.nw-notice-error {
  border-color: #f1aeb5;
  background: #f8d7da;
  color: #b42318;
}

.nw-dialog {
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 20%);
  padding: 1.5rem;
  max-width: 22rem;
  color: #4c5258;
  font: inherit;
}

.nw-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.nw-dialog p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.nw-dialog form {
  text-align: right;
}

.nw-dialog button {
  border: 0;
  border-radius: 0.2rem;
  background: #0d6efd;
  color: #fff;
  padding: 0.375rem 1rem;
  font: inherit;
  cursor: pointer;
}

#kc-header, #kc-header-wrapper {
  display: none;
}

.login-pf-page .card-pf {
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.75rem rgb(0 0 0 / 12%);
  border-top: 0;
}
