/* ============================================================
   PaperTrade — pages/forgot-password.css
   Forgot password (/forgot-password): a single centered column
   with the email form and, after submit, the always-neutral
   "check your inbox" view with a 60-second resend cooldown.
   Builds on the shared classes .page, .field, .input, .btn and
   .link-btn — only page-specific pieces live here.
   ============================================================ */

/* ---------- Centered column ---------- */
.fp-wrap { max-inline-size:460px; margin-inline:auto; }

.fp-title { font-size:32px; font-weight:700; letter-spacing:-0.5px; margin-block-end:8px; }
.fp-sub { color:var(--muted); margin-block-end:var(--space-5); }
.fp-form { display:grid; gap:var(--space-4); }

/* Page-local spinner (no shared spinner class exists) */
.fp-spin { inline-size:14px; block-size:14px; flex:none; border:2px solid color-mix(in srgb, var(--brand-text) 35%, transparent); border-top-color:var(--brand-text); border-radius:var(--radius-full); animation:fp-rotate .7s linear infinite; }
@keyframes fp-rotate { to { transform:rotate(360deg); } }

/* ---------- "Check your inbox" state ---------- */
.fp-state-ic { display:grid; place-content:center; inline-size:52px; block-size:52px; margin-block-end:var(--space-4); border-radius:var(--radius-full); }
.fp-state-ic.is-ok { background:color-mix(in srgb, var(--long) 14%, transparent); color:var(--long); }

.fp-alert { padding:12px 14px; margin-block:0 var(--space-4); border-radius:var(--radius-md); font-size:13px; font-weight:500; }
.fp-alert.is-ok { background:color-mix(in srgb, var(--long) 10%, transparent); border:1px solid color-mix(in srgb, var(--long) 40%, transparent); }

.fp-sent-to { font-size:13px; color:var(--muted); margin-block:0 2px; }
.fp-sent-to strong { color:var(--text); overflow-wrap:anywhere; }
#fp-edit { margin-block-start:0; }

.fp-resend-row { display:flex; align-items:center; gap:var(--space-3); margin-block-start:var(--space-5); }
.fp-hint { font-size:12px; color:var(--muted); }

.fp-signin { margin-block-start:var(--space-6); text-align:center; font-size:13px; color:var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width:480px) {
  .fp-title { font-size:26px; }
  .fp-resend-row { flex-wrap:wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-spin { animation:none; }
}
