.lft-auth__open {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
      display: none;
}

.lft-open-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.lft-auth__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  /* sit above mobile header/footer overlays & panels */
  z-index: 2147483800
}

.lft-auth__backdrop.is-open {
  display: block
}

.lft-auth__modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  z-index: 2147483801;
  display: none;
  overflow: hidden;
  font-family: inherit
}
@media (max-width: 768px){
.lft-auth__modal {
position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  transform: translate(0%,0%);
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  z-index: 2147483801;
  display: none;
  overflow: hidden;
  font-family: inherit;
}
}

.lft-auth__modal.is-open {
  display: block
}

.lft-auth__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee
}

.lft-auth__title {
  font-size: 16px;
  font-weight: 700
}

.lft-auth__close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  line-height: 1
}

.lft-auth__back {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.lft-auth__body {
  padding: 14px
}

.lft-auth__msg {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f6f6f6;
  font-size: 11px;
  display: none
}

.lft-auth__msg.is-error {
  background: #fff2f2
}

.lft-auth__hint {
  margin-bottom: 10px;
  color: #444
}

.lft-step label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: #333
}

.lft-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box
}

.lft-btn {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  width: 100%
}

.lft-btn-primary {
  border-color: #222;
  background: #222;
  color: #fff
}

.lft-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0
}

.lft-otp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0
}

.lft-otp-row .lft-btn {
  width: auto;
  margin-top: 0
}

.lft-otp-ttl {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

/* OTP 4-digit inputs */
.lft-otp-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
  direction: ltr;
}

.lft-otp-input {
  width: 42px;
  text-align: center;
  font-size: 18px;
  padding: 10px 0;
}

.lft-otp-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 8px;
  gap: 10px;
}

.lft-otp-resend {
  margin-top: 2px;
}

.lft-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #222;
  font-size: 12px;
  text-decoration: underline;
}

.lft-otp-resend-icon svg {
  display: block;
}

/* Loading state for async actions */
.lft-btn.is-loading {
  position: relative;
  opacity: .8;
  pointer-events: none;
}

.lft-btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  border-top-color: #000;
  animation: lft-spin .7s linear infinite;
}

.lft-btn-primary.is-loading::after {
  border-color: rgba(255, 255, 255, .6);
  border-top-color: #fff;
}

@keyframes lft-spin {
  to {
    transform: rotate(360deg)
  }
}

.lft-input {
  border: 1px solid #dadada !important;
}

/* Toast message */
.lft-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 2147483900;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.lft-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Custom tweaks (requested) === */
.lft-auth__msg.is-error {
  background: #fff2f2;
  font-size: 10px;
}
.lft-btn-primary {
  background: linear-gradient(135deg, #7f23ff 0%, #b56bff 100%) !important;
  color: #fff !important;
  border: 0;
}
.lft-step input::placeholder {
  color: #000;
  opacity: 0.2;
  text-align: center;
  font-size: 15px;
}
.lft-step input {
  color: #000;
  text-align: center;
  font-size: 15px;
  margin-top: 10px;
  background: #fafafa !important;
  border: 0 !important;
  font-family: 'estedadv';
}
.lft-input {
  text-align: center;
  font-size: 15px !important;
}
.lft-auth__body {
  padding: 10px 30px 30px 30px;
}
.lft-auth__back {
  border: 0;
  padding-top: 8px !important;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.lft-step label {
  font-size: 15px;
  letter-spacing: 0;
}
.lft-auth__msg {
  font-size: 12px;
}
.lft-link-btn {
  text-decoration: none;
}
.lft-otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  margin-top: 11px;
}

.lft-auth__terms {
  margin-top: 8px;
  font-size: 11px;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

.lft-auth__terms a {
  color: inherit;
  text-decoration: underline;
}
