/**
 * Center forgot-password flow — recovery steps, OTP, and reset extras.
 * Load after center-auth.css.
 */

.center-auth-page--forgot .cl-wrap {
  align-items: start;
  padding-top: 1.75rem;
}

.cl-steps {
  list-style: none;
  margin: 0 0 1.65rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cl-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cl-muted);
}

.cl-steps li small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}

.cl-steps__n {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cl-ink-soft);
  background: #fff;
  border: 1.5px solid var(--cl-line);
}

.cl-steps li.is-current {
  color: var(--cl-ink);
}

.cl-steps li.is-current .cl-steps__n {
  color: #fff;
  background: var(--cp-orange);
  border-color: var(--cp-orange);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.28);
}

.cl-steps li.is-done {
  color: var(--cl-ink-soft);
}

.cl-steps li.is-done .cl-steps__n {
  color: #fff;
  background: var(--cp-success);
  border-color: var(--cp-success);
}

.cl-field__control--otp .form-control {
  padding-left: 2.75rem;
  padding-right: 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cl-hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cl-muted);
}

.cl-match {
  min-height: 1.15rem;
  margin: 0.35rem 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.cl-match.is-error {
  color: #dc2626;
}

.cl-match.is-ok {
  color: var(--cp-success);
}

.cl-mail {
  width: 100%;
  max-width: 26rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.95rem 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow:
    0 20px 40px -24px rgba(12, 27, 51, 0.28),
    0 0 0 1px rgba(12, 27, 51, 0.04);
  backdrop-filter: blur(12px);
}

.cl-mail__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.cl-mail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2d6c4;
}

.cl-mail__dot:first-child { background: #f97316; }
.cl-mail__dot:nth-child(2) { background: #2563eb; }

.cl-mail__bar em {
  margin-left: 0.4rem;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-muted);
}

.cl-mail__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.4rem;
  background: #fff;
  border: 1px solid var(--cl-line);
  border-radius: 12px;
}

.cl-mail__row i {
  font-size: 1.05rem;
  color: var(--cl-muted);
}

.cl-mail__row.is-unread {
  background: linear-gradient(165deg, #fff7ed 0%, #fff 70%);
  border-color: #fed7aa;
}

.cl-mail__row.is-unread i {
  color: var(--cp-orange);
}

.cl-mail__row div {
  flex: 1;
  min-width: 0;
}

.cl-mail__row strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cl-ink);
}

.cl-mail__row span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cl-muted);
}

.cl-mail__row time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-orange);
}

.cl-shield {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--cl-line);
  border-radius: 14px;
}

.cl-shield i {
  font-size: 1.15rem;
  color: var(--cp-blue);
  margin-top: 0.1rem;
}

.cl-shield p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: #4b5563;
}

.cl-shield strong {
  color: var(--cl-ink);
}

@media (max-width: 960px) {
  .center-auth-page--forgot .cl-wrap {
    padding-top: 1.25rem;
  }

  .cl-steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cl-steps li {
    flex: 1 1 auto;
    font-size: 0.75rem;
  }

  .cl-steps li small {
    display: none;
  }

  .cl-mail {
    display: none;
  }
}
