.dh-login-otp-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f6f1;
}

.dh-login-otp-card [hidden] {
  display: none !important;
}

.dh-login-otp-modal[hidden] {
  display: none !important;
}

.dh-login-otp-modal-open {
  overflow: hidden;
}

.dh-login-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  box-sizing: border-box;
}

.dh-login-otp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 37, 28, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dh-login-otp-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
}

.dh-login-otp-modal .dh-login-otp-shell {
  min-height: 0;
  display: block;
  padding: 0;
}

.dh-login-otp-modal .dh-login-otp-card {
  width: 100%;
}

.dh-login-otp-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  box-sizing: border-box;
}

.dh-login-otp-card {
  position: relative;
  width: min(100%, 430px);
  background: #ffffff;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
  box-sizing: border-box;
}

.dh-login-otp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #536258;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none !important;
  box-shadow: none !important;
}

.dh-login-otp-close:hover,
.dh-login-otp-close:focus {
  border-color: #dce3d8;
  background: #f2f6ef;
  color: #267630;
  outline: 2px solid rgba(47, 143, 58, 0.16);
  outline-offset: 2px;
}

.dh-login-otp-brand {
  margin-bottom: 8px;
  color: #2f8f3a;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.dh-login-otp-card h1 {
  margin: 0 0 22px;
  color: #15251c;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.dh-login-otp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #dce3d8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #f2f6ef;
}

.dh-login-otp-tabs button {
  min-height: 42px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #31513b !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  outline: 0;
}

.dh-login-otp-tabs button:hover,
.dh-login-otp-tabs button:focus {
  background: #e7efe2 !important;
  color: #203127 !important;
}

.dh-login-otp-tabs button.is-active {
  background: #2f8f3a !important;
  color: #ffffff !important;
}

.dh-login-otp-form {
  display: grid;
  gap: 14px;
}

.dh-login-otp-field {
  display: grid;
  gap: 7px;
}

.dh-login-otp-field label {
  color: #31423a;
  font-size: 13px;
  font-weight: 700;
}

.dh-login-otp-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7dfd2;
  border-radius: 8px;
  background: #ffffff;
  color: #17251d;
  font-size: 16px;
  line-height: 1.3;
  padding: 10px 12px;
  box-sizing: border-box;
  box-shadow: none;
}

.dh-login-otp-field input:focus {
  border-color: #2f8f3a;
  outline: 2px solid rgba(47, 143, 58, 0.18);
  outline-offset: 1px;
}

.dh-login-otp-phone-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
}

.dh-login-otp-message {
  min-height: 20px;
  color: #536258;
  font-size: 14px;
  line-height: 1.4;
}

.dh-login-otp-message[data-type="success"] {
  color: #176b31;
}

.dh-login-otp-message[data-type="error"] {
  color: #b42318;
}

.dh-login-otp-submit,
.dh-login-otp-resend {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  text-decoration: none;
}

.dh-login-otp-submit {
  border: 1px solid #2f8f3a !important;
  background: #2f8f3a !important;
  color: #ffffff !important;
}

.dh-login-otp-submit:hover,
.dh-login-otp-submit:focus {
  background: #267630 !important;
  border-color: #267630 !important;
  color: #ffffff !important;
  outline: 2px solid rgba(47, 143, 58, 0.18);
  outline-offset: 2px;
}

.dh-login-otp-resend {
  border: 1px solid #2f8f3a !important;
  background: #ffffff !important;
  color: #2f8f3a !important;
}

.dh-login-otp-resend:hover,
.dh-login-otp-resend:focus {
  border-color: #267630 !important;
  background: #f2f6ef !important;
  color: #267630 !important;
  outline: 2px solid rgba(47, 143, 58, 0.16);
  outline-offset: 2px;
}

.dh-login-otp-submit:disabled,
.dh-login-otp-resend:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 480px) {
  .dh-login-otp-shell {
    align-items: start;
    padding-top: 20px;
  }

  .dh-login-otp-card {
    padding: 22px 18px;
  }
}
