/* ============================================================
   Podstrm - Forgot / reset password flow
   Reuses shared auth classes from auth-modal.css
   (.auth-field, .auth-primary, .otp-box, .otp-inputs, .otp-resend)
   ============================================================ */

.fp-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(31, 79, 255, 0.18), transparent 60%),
    radial-gradient(720px 520px at 100% 110%, rgba(31, 214, 224, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
}

.fp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px var(--page-gutter);
}

.fp-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 18px 80px;
}

.fp-card {
  position: relative;
  width: min(100%, 500px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 40px 44px 38px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
[data-theme="dark"] .fp-card { background: #101827; border-color: #31405b; }

/* ---------- Stepper ---------- */
.fp-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.fp-step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-step-dot span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.fp-step-dot.is-active { color: var(--text); }
.fp-step-dot.is-active span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}
.fp-step-dot.is-done span {
  border-color: transparent;
  background: var(--green);
  color: #05210a;
}

/* ---------- Steps ---------- */
.fp-step { display: none; animation: fp-fade 0.28s ease both; }
.fp-step.is-active { display: block; }

@keyframes fp-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fp-icon {
  width: 74px;
  height: 74px;
  margin: 4px auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #3fd0f4, #1f7bf0);
  box-shadow: 0 14px 34px rgba(31, 123, 240, 0.42);
}
.fp-icon-success {
  background: linear-gradient(155deg, #7ee65b, #2fb84f);
  box-shadow: 0 14px 34px rgba(47, 184, 79, 0.42);
}

.fp-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.fp-copy {
  max-width: 360px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}
.fp-copy strong { color: var(--text); font-weight: 700; }

.fp-form { display: grid; gap: 14px; }
.fp-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: -6px;
}

/* ---------- Password field + toggle ---------- */
.fp-password-wrap { position: relative; }
.fp-password-wrap .auth-field { padding-right: 46px; }
.fp-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.fp-eye:hover { color: var(--text); }
.fp-eye.is-visible { color: var(--cyan); }

/* ---------- OTP boxes: always fit six on one row ---------- */
.fp-card .otp-inputs {
  width: 100%;
  gap: clamp(6px, 2.4vw, 12px);
}
.fp-card .otp-box {
  flex: 1 1 0;
  width: 0;            /* let flex-grow size it; defeats the input's intrinsic width */
  min-width: 0;
  max-width: 56px;
  height: 58px;
  font-size: 22px;
  padding: 0;
}

.fp-hint {
  margin: -4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--coral);
}

.fp-back {
  display: block;
  width: 100%;
  margin-top: 20px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-align: center;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
}
.fp-back:hover { color: var(--text); }

.fp-done-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 520px) {
  .fp-card { padding: 32px 22px 28px; border-radius: 14px; }
  .fp-step-dot { font-size: 0; gap: 0; }        /* labels collapse, dots remain */
  .fp-step-dot span { font-size: 12px; }
  .fp-stepper { gap: 10px; justify-content: center; }
}
