/* Shared 5-digit OTP + circular 2-minute timer — admin & client login */

.otp-digits {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  direction: ltr;
  margin: 0.25rem 0 1rem;
}

.otp-digit {
  width: 2.65rem;
  height: 3.15rem;
  border: 1.5px solid #d6deea;
  border-radius: 0.85rem;
  background: #f4f7fb;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #10233f;
  outline: none;
  caret-color: #1e6fe8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.otp-digit:focus {
  background: #fff;
  border-color: #1e6fe8;
  box-shadow: 0 0 0 3px rgba(30, 111, 232, 0.18);
}

.otp-timer {
  --otp-progress: 1;
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto;
}

.otp-timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 1.05rem;
}

.otp-resend-form {
  margin: 0;
  text-align: center;
}

.otp-timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.otp-timer-track {
  fill: none;
  stroke: #e8eef6;
  stroke-width: 4.5;
}

.otp-timer-progress {
  fill: none;
  stroke: url(#otpTimerGrad);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 125.6;
  stroke-dashoffset: calc(125.6 * (1 - var(--otp-progress)));
  transition: stroke-dashoffset 0.4s linear;
}

.otp-timer.is-done .otp-timer-progress {
  stroke: #94a3b8;
}

.otp-timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0b1f3a;
  letter-spacing: 0.02em;
}

.otp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.15rem;
}

.otp-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  color: #1e6fe8;
  cursor: pointer;
  text-decoration: none;
}

.otp-link:hover {
  text-decoration: underline;
}

.otp-link:disabled,
.otp-resend[disabled] {
  color: #94a3b8;
  cursor: default;
  text-decoration: none;
}

.otp-hint {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.55;
}

.otp-local {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.78rem;
  text-align: center;
}

.otp-switch {
  margin: 0.95rem 0 0;
  text-align: center;
}

.otp-switch a,
.otp-switch button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e6fe8;
  cursor: pointer;
  text-decoration: none;
}

.otp-switch a:hover,
.otp-switch button:hover {
  text-decoration: underline;
}
