/* ── forgot.css — Forgot & Reset Password pages ── */

/* Narrow card variant (single column on wider screens still looks good) */
.auth-card--narrow {
  max-width: 860px;
}

/* ── Sent / Success state ── */
.frp-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0;
  animation: frp-fade-in 0.4s ease;
}

@keyframes frp-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Icon circle */
.frp-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(102, 102, 255, 0.12);
  border: 2px solid rgba(102, 102, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  animation: frp-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.frp-icon-wrap--green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.frp-icon-wrap--red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

@keyframes frp-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.frp-icon        { color: #7777ff; font-size: 32px; }
.frp-icon--green { color: #22c55e; }
.frp-icon--red   { color: #ef4444; }

/* Badge variants */
.auth-badge--green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.auth-badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.frp-sent-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--auth-text, #e0e0ff);
  margin: 12px 0 8px;
}

.frp-sent-body {
  color: var(--auth-text-dim, #9090bb);
  line-height: 1.6;
  margin: 0 0 16px;
}

.frp-sent-email {
  color: #7777ff;
  font-weight: 600;
}

.frp-sent-note {
  font-size: 13px;
  color: var(--auth-text-dim, #9090bb);
  margin: 0 0 8px;
}

/* Resend button (inline text button) */
.frp-resend-btn {
  background: none;
  border: none;
  color: #7777ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.frp-resend-btn:hover   { color: #9999ff; }
.frp-resend-btn:disabled {
  color: var(--auth-text-dim, #9090bb);
  text-decoration: none;
  cursor: default;
}

/* Cooldown countdown */
.frp-cooldown {
  font-size: 12px;
  color: var(--auth-text-dim, #9090bb);
  margin: 4px 0 16px;
}

.frp-back-btn {
  display: flex;
  width: 100%;
  text-decoration: none;
  margin-top: 20px;
  justify-content: center;
}

/* ── Loading spinner ── */
.frp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.frp-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(102, 102, 255, 0.2);
  border-top-color: #6666ff;
  border-radius: 50%;
  animation: frp-spin 0.8s linear infinite;
}

@keyframes frp-spin {
  to { transform: rotate(360deg); }
}

/* ── Password strength bar ── */
.frp-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.frp-strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.frp-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

.frp-strength-fill[data-level="1"] { width: 25%; background: #ef4444; }
.frp-strength-fill[data-level="2"] { width: 50%; background: #f97316; }
.frp-strength-fill[data-level="3"] { width: 75%; background: #eab308; }
.frp-strength-fill[data-level="4"] { width: 100%; background: #22c55e; }

.frp-strength-label {
  font-size: 11px;
  min-width: 48px;
  text-align: right;
  color: var(--auth-text-dim, #9090bb);
  transition: color 0.3s;
}

/* ── Requirements checklist ── */
.frp-requirements {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.frp-req {
  font-size: 12px;
  color: var(--auth-text-dim, #9090bb);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.frp-req.ok {
  color: #22c55e;
}

.frp-req-icon {
  font-size: 13px;
  line-height: 1;
  transition: all 0.2s;
}

.frp-req.ok .frp-req-icon::before {
  content: "✓";
}

.frp-req:not(.ok) .frp-req-icon::before {
  content: "○";
}

/* ── Redirect progress bar (success page) ── */
.frp-redirect-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0 8px;
}

.frp-redirect-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6666ff, #22c55e);
  border-radius: 4px;
  transition: width 3s linear;
}

.frp-redirect-txt {
  font-size: 12px;
  color: var(--auth-text-dim, #9090bb);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .frp-requirements {
    grid-template-columns: 1fr;
  }

  .frp-sent-title {
    font-size: 18px;
  }
}