/* ── SAFIT OTP Login ── */
:root {
  --otp-bg:       #1a1a1a;
  --otp-card:     #242424;
  --otp-border:   #333;
  --otp-gold:     #E8C547;
  --otp-gold-bg:  rgba(232,197,71,.08);
  --otp-text:     #f0f0f0;
  --otp-muted:    #888;
  --otp-err:      #e05050;
  --otp-green:    #4caf50;
  --otp-radius:   12px;
}

/* hide default WP page title on login page */
.page-id-safit-login .entry-header,
.page-id-safit-login .entry-title { display: none !important; }

.safit-otp-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: transparent;
  direction: rtl;
}

.safit-otp-card {
  background: var(--otp-card);
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: otpFadeIn .3s ease;
}

@keyframes otpFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* logo */
.safit-otp-logo {
  margin-bottom: 1.5rem;
}
.safit-otp-logo img {
  height: 60px;
  width: auto;
}

/* titles */
.safit-otp-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--otp-text);
  margin-bottom: 8px;
}
.safit-otp-subtitle {
  font-size: 13px;
  color: var(--otp-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* field */
.safit-otp-field {
  text-align: right;
  margin-bottom: 1.25rem;
}
.safit-otp-field label {
  display: block;
  font-size: 13px;
  color: var(--otp-muted);
  margin-bottom: 6px;
}
.safit-otp-field input {
  width: 100%;
  background: #1a1a1a;
  border: 1.5px solid var(--otp-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--otp-text);
  outline: none;
  text-align: center;
  letter-spacing: 2px;
  transition: border-color .2s;
  box-sizing: border-box;
  font-family: monospace;
}
.safit-otp-field input:focus {
  border-color: var(--otp-gold);
}

/* error */
.safit-otp-err {
  font-size: 12px;
  color: var(--otp-err);
  margin-top: 6px;
  min-height: 18px;
  text-align: right;
}

/* main button */
.safit-otp-btn {
  width: 100%;
  background: var(--otp-gold);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  margin-top: 4px;
  font-family: inherit;
}
.safit-otp-btn:hover  { opacity: .9; }
.safit-otp-btn:active { transform: scale(.98); }
.safit-otp-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* OTP boxes */
.safit-otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1rem;
  direction: ltr;
}
.otp-box {
  width: 52px;
  height: 58px;
  background: #1a1a1a;
  border: 2px solid var(--otp-border);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--otp-text);
  text-align: center;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: monospace;
  caret-color: var(--otp-gold);
}
.otp-box:focus {
  border-color: var(--otp-gold);
  box-shadow: 0 0 0 3px rgba(232,197,71,.2);
}
.otp-box.filled {
  border-color: var(--otp-gold);
  background: var(--otp-gold-bg);
}
.otp-box.err {
  border-color: var(--otp-err);
  animation: otpShake .3s ease;
}

@keyframes otpShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* resend / timer */
.safit-otp-resend {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.safit-otp-timer {
  font-size: 13px;
  color: var(--otp-muted);
}
#timer-count {
  color: var(--otp-gold);
  font-weight: 600;
  font-family: monospace;
}
.safit-otp-resend-btn,
.safit-otp-change-btn {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s;
}
.safit-otp-resend-btn {
  color: var(--otp-gold);
  border: 1px solid var(--otp-gold);
}
.safit-otp-resend-btn:hover { background: var(--otp-gold-bg); }
.safit-otp-change-btn {
  color: var(--otp-muted);
}
.safit-otp-change-btn:hover { color: var(--otp-text); }

/* success */
.safit-otp-success-icon {
  width: 64px;
  height: 64px;
  background: var(--otp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 1.25rem;
  animation: otpPop .4s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes otpPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* mobile */
@media (max-width: 480px) {
  .safit-otp-card { padding: 2rem 1.25rem; }
  .otp-box { width: 44px; height: 52px; font-size: 20px; }
  .safit-otp-boxes { gap: 7px; }
}
