/* =========================================================
   Workbobo — Password Recovery & Reset Styles
   Complementary styles for OTP verification & password resets
   ========================================================= */

/* OTP Verification Code Inputs */
.otp-container {
  margin: 1.5rem 0 1rem;
}

.otp-inputs-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.otp-digit-input {
  width: 52px;
  height: 60px;
  border-radius: var(--radius-md, 14px);
  border: 1.5px solid var(--line-strong, rgba(17, 17, 17, 0.16));
  background: #ffffff;
  color: var(--ink, #111111);
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  caret-color: var(--ink, #111111);
  outline: none;
}

.otp-digit-input:hover {
  border-color: rgba(17, 17, 17, 0.35);
}

.otp-digit-input:focus {
  border-color: var(--ink, #111111);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(17, 17, 17, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.otp-digit-input.filled {
  border-color: var(--ink, #111111);
  background: #faf9f6;
}

@media (max-width: 480px) {
  .otp-inputs-row {
    gap: 6px;
  }
  .otp-digit-input {
    width: 44px;
    height: 52px;
    font-size: 22px;
  }
}

/* Resend Countdown Bar */
.resend-box {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid var(--line, rgba(17, 17, 17, 0.09));
  border-radius: var(--radius-md, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-2, #4a4a48);
}

.resend-link {
  font-weight: 600;
  color: var(--ink, #111111);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.resend-link:hover {
  opacity: 0.7;
}

.resend-link:disabled {
  color: var(--muted, #8a8984);
  cursor: not-allowed;
  text-decoration: none;
}

/* User target email pill */
.target-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(17, 17, 17, 0.05);
  border-radius: var(--radius-pill, 999px);
  font-weight: 600;
  color: var(--ink, #111111);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  word-break: break-all;
}

/* Step Change Action button */
.step-back-action {
  background: none;
  border: none;
  color: var(--muted, #8a8984);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1.25rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm, 10px);
  transition: all 0.2s;
}

.step-back-action:hover {
  color: var(--ink, #111111);
  background: rgba(17, 17, 17, 0.04);
}

/* Password Strength Meter */
.strength-meter-wrap {
  margin-top: 0.5rem;
}

.strength-meter-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 4px;
  margin-bottom: 0.35rem;
}

.strength-bar {
  height: 100%;
  border-radius: var(--radius-pill, 999px);
  background: rgba(17, 17, 17, 0.09);
  transition: background-color 0.3s ease;
}

.strength-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted, #8a8984);
}

.strength-label {
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Live Password Match Status */
.password-match-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  margin-top: 0.4rem;
  font-weight: 500;
  transition: all 0.2s;
}

.match-icon {
  width: 14px;
  height: 14px;
}

.match-ok {
  color: #2f6916;
}

.match-bad {
  color: #c94a29;
}

/* Security Checklist */
.recovery-security-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md, 14px);
  background: #fbfbf9;
  border: 1px dashed var(--line-strong, rgba(17, 17, 17, 0.16));
  font-size: 0.8rem;
  color: var(--ink-2, #4a4a48);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.security-badge {
  font-size: 1rem;
  line-height: 1;
}
