/* Extends login.css — additional styles for the forgot password flow */

.fp-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

.fp-subtitle strong {
  color: var(--white);
  font-weight: 400;
}

/* ── OTP timer ring ─────────────────────── */
.otp-timer-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.otp-ring {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.otp-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.otp-ring-fill {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: butt;
  stroke-dasharray: 150.8; /* 2π × 24 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.4s;
}

.otp-ring-fill.warn  { stroke: var(--gray-mid); }
.otp-ring-fill.urgent { stroke: #f0a8a8; }

.otp-timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.4s;
}

.otp-timer-text.warn   { color: var(--gray-mid); }
.otp-timer-text.urgent { color: #f0a8a8; }

/* ── OTP input boxes ────────────────────── */
.otp-input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 4px;
}

.otp-box {
  width: 44px;
  height: 52px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -moz-appearance: textfield;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button { -webkit-appearance: none; }

.otp-box:focus {
  border-color: rgba(245,245,240,0.4);
  background: var(--input-focus);
}

.otp-box.filled {
  border-color: rgba(245,245,240,0.25);
}

/* ── Resend text ────────────────────────── */
.otp-resend-text {
  font-size: 12px;
  color: var(--gray-mid);
}

.fp-link-btn {
  background: none;
  border: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.fp-link-btn:disabled {
  color: var(--gray-mid);
  text-decoration: none;
  cursor: not-allowed;
}

/* ── Password field wrapper ─────────────── */
.pw-wrap {
  position: relative;
}

.pw-wrap input {
  width: 100%;
  padding: 14px 42px 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
  appearance: none;
  border-radius: 0;
}

.pw-wrap input::placeholder { color: rgba(245,245,240,0.2); }
.pw-wrap input:focus { background: var(--input-focus); border-color: rgba(245,245,240,0.3); }

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.pw-toggle:hover { color: var(--white); }

/* ── Password strength bar ──────────────── */
.pw-strength {
  height: 2px;
  margin-top: 6px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.pw-strength::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--strength-pct, 0%);
  background: var(--strength-color, transparent);
  transition: width 0.35s ease, background 0.35s ease;
}

/* ── Success icon ───────────────────────── */
.fp-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(168,240,184,0.08);
  border: 1px solid rgba(168,240,184,0.25);
  color: #a8f0b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: fadeUp 0.5s 0.1s cubic-bezier(0.16,1,0.3,1) both, iconPulse 2.5s 0.8s ease infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,240,184,0.15); }
  50%       { box-shadow: 0 0 0 10px rgba(168,240,184,0); }
}

/* Step transition */
.login-card { animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
