.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 8px;
}

.otp-box {
  width: 56px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--otp-box-border, rgba(255, 255, 255, .14));
  background: var(--otp-box-bg, rgba(0, 0, 0, .22));
  color: var(--otp-box-fg, #fff);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  caret-color: #1abb9c;
}

.otp-box:focus {
  border-color: #1abb9c;
  box-shadow: 0 0 0 3px rgba(26, 187, 156, .28);
  transform: translateY(-1px);
}

.otp-box.is-invalid {
  border-color: rgba(231, 76, 60, .7);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, .18);
}

.otp-timer {
  text-align: center;
  font-size: 12px;
  opacity: .7;
  margin: 10px 0 0;
}

.otp-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
}

.otp-actions__sep {
  width: 1px;
  height: 14px;
  background: var(--otp-action-sep, rgba(255, 255, 255, .18));
  margin: 0 6px;
}

.otp-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--otp-action-fg, rgba(255, 255, 255, .72));
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.otp-action i { font-size: 1rem; }

.otp-action:hover:not(:disabled) {
  color: #1abb9c;
  background: rgba(26, 187, 156, .1);
}

.otp-action:disabled {
  opacity: .38;
  cursor: not-allowed;
}

html[data-theme="light"] {
  --otp-box-bg: #fff;
  --otp-box-fg: #1a1a1a;
  --otp-box-border: #d8dee6;
  --otp-action-fg: rgba(26, 32, 44, .72);
  --otp-action-sep: rgba(26, 32, 44, .18);
}

.np-main {
  --otp-box-bg: var(--np-bg);
  --otp-box-fg: var(--np-dark);
  --otp-box-border: var(--np-border);
  --otp-action-fg: var(--np-text);
  --otp-action-sep: var(--np-border);
}

@media (max-width: 420px) {
  .otp-box {
    width: 48px;
    height: 56px;
    font-size: 1.35rem;
    border-radius: 12px;
  }
  .otp-boxes { gap: 8px; }
}
