/* Email OTP verification (register + merchant sign-up) */
.otp-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.otp-row input {
  flex: 1;
  min-width: 0;
}
.otp-send {
  flex: none;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #123f2a, #246a45);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: 0.2s;
}
.otp-send:hover:not(:disabled) {
  filter: brightness(1.1);
}
.otp-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.otp-box {
  margin-top: 10px;
}
.otp-box[hidden] {
  display: none;
}
.otp-input-wrap {
  position: relative;
}
.otp-input-wrap input {
  width: 100%;
  letter-spacing: 0.45em;
  font-weight: 800;
  text-align: center;
  padding-right: 46px;
}
.otp-status {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.otp-status.ok {
  display: flex;
  background: #1e9e4a;
}
.otp-status.bad {
  display: flex;
  background: #d92d20;
}
.otp-input-wrap.ok input {
  border-color: #1e9e4a !important;
  background: #f1fbf4 !important;
}
.otp-input-wrap.bad input {
  border-color: #d92d20 !important;
  background: #fff5f4 !important;
}
.otp-msg {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 650;
  min-height: 16px;
  color: #68756d;
}
.otp-msg.ok {
  color: #1e7a3c;
}
.otp-msg.bad {
  color: #b42318;
}
@media (max-width: 480px) {
  .otp-row {
    flex-direction: column;
  }
  .otp-send {
    min-height: 42px;
  }
}

/* Forgot password popup */
.fp-link {
  font-size: 12px;
  font-weight: 800;
  color: #56852f;
  text-decoration: none;
}
.fp-link:hover {
  text-decoration: underline;
}
.fp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 30, 20, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fp-overlay[hidden] {
  display: none;
}
.fp-box {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.fp-box h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #123f2a;
}
.fp-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #68756d;
}
.fp-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: #edf3ea;
  color: #2a4d38;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fp-field {
  margin-bottom: 14px;
  position: relative;
}
.fp-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #26352d;
  margin: 0 0 6px;
}
.fp-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #d8e1d9;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
}
.fp-field input:focus {
  outline: none;
  border-color: #77a94b;
  box-shadow: 0 0 0 4px rgba(119, 169, 75, 0.12);
  background: #fff;
}
.fp-field .otp-row input {
  width: auto;
}
.fp-pwfield input {
  padding-right: 64px;
}
.fp-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 0;
  background: #edf3ea;
  color: #426e2a;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.fp-err {
  min-height: 18px;
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: #b42318;
}
.fp-err.ok {
  color: #1e7a3c;
}
.fp-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #123f2a, #246a45);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.fp-submit[hidden],
.fp-pw[hidden] {
  display: none;
}
.fp-submit:disabled {
  opacity: 0.65;
}
