/* ---- Page centering ---- */
.fp-body {
  background: #f3f4f6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ---- Card ---- */
.fp-container {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 28rem;
  padding: 3rem 2rem 3.5rem;
  position: relative;
}

/* 70% width on tablets */
@media (min-width: 640px) and (max-width: 1023px) {
  .fp-container {
    max-width: 70vw;
    padding: 3rem 2.5rem;
  }
}
@media (min-width: 1024px) {
  .fp-container {
    max-width: 32rem;
  }
}

/* ---- Avatar ---- */
.fp-avatar {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
}
.fp-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ---- Heading + Text ---- */
.fp-container h2 {
  text-align: center;
  font-size: 1.25rem;      /* smaller heading */
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: #111827;
}
.fp-container p {
  text-align: center;
  font-size: 0.875rem;     /* smaller paragraph */
  color: #475569;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

/* ---- Input ---- */
.fp-input {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fp-input:focus {
  border-color: #002cd9;
  box-shadow: 0 0 0 3px rgba(0, 44, 217, 0.2);
  outline: none;
}

/* ---- Button ---- */
.fp-btn {
  width: 100%;
  background: #002cd9;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;        /* slightly smaller text */
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 1rem;
}
.fp-btn:hover {
  background: #0320a8;
  transform: translateY(-1px);
}

/* ---- Footer logo ---- */
.fp-footer {
  text-align: center;
  margin-top: 1rem;
}
.fp-footer img {
  display: inline-block;
  opacity: 0.85;
}

/* ---- Separator ---- */
.fp-container hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1rem 0;
}

/* ─── Body background image helper ─────────────────── */
.with-bg {
  /* point this at whatever image you like: */
  background-image: url('/public/assets/uploads/bg_4.jpg');
  background-size: cover;           /* fill the viewport */
  background-position: center;      /* center it */
  background-repeat: no-repeat;     /* don’t tile */
  
  /* fall-back color while image is loading: */
  background-color: #f3f4f6;
}

.fp-container {
  background: #fff;
  border-radius: 1rem;
  /* add this line: */
  border: 2px solid #002cd9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  width: 100%;
  padding: 2rem 1.75rem 2.5rem;
  position: relative;
}


/* Base: mobile-first */
.fp-container {
  width: 90%;
  max-width: 25rem;       /* ≈400px */
  margin: 0 auto;         /* center */
  padding: 2rem 1.75rem 2.5rem;
}

/* Small tablets (≥600px) */
@media (min-width: 600px) {
  .fp-container {
    width: 85%;
    max-width: 32rem;     /* ≈512px */
  }
}

/* iPad portrait (≥768px) */
@media (min-width: 768px) {
  .fp-container {
    width: 75%;
    max-width: 36rem;     /* ≈576px */
  }
}

/* iPad landscape / small desktops (≥1024px) */
@media (min-width: 1024px) {
  .fp-container {
    width: 60%;
    max-width: 40rem;     /* ≈640px */
  }
}


.notification {
  padding: 0.75em 1em;
  margin: 1rem auto 1em;   /* <──  auto left + right  */
  border-radius: 4px;
  font-weight: bold;
  display: none;
  text-align: center;   /* optional: center the text too */
}

.notification.error   { background:#fee; color:#900; }
.notification.success { background:#efe; color:#090; }


/* --------------------------------------------------
   PayBridge – Forgot‑Password card (pure CSS)
   Author: PayBridge, By Joel Yao Adedi
   Matches sign‑in / sign‑up palette
-------------------------------------------------- */

:root {
  --pb-purple-300: #be85ff;
  --pb-purple-500: #245dff;
  --pb-purple-600: #134bff;
}

/* ---------- wrapper card ---------- */
.fp-container {
  position: relative;
  width: 100%;
  max-width: 30rem; /* 480px */
  padding: 3.5rem 2.25rem 2.75rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  background: #ffffff;
  box-sizing: border-box;

  /* fancy gradient outline */
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: linear-gradient(#fff 0 0),
    linear-gradient(135deg, var(--pb-purple-600) 0%, var(--pb-purple-300) 100%);

  box-shadow: 0 12px 38px -8px rgba(0, 0, 0, 0.18);
}

/* —— texture overlay (optional) —— */
.fp-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/static/img/paper-noise.png") center/120%;
  mix-blend-mode: overlay;
  opacity: 0.12;
  pointer-events: none;
}

/* ---------- avatar badge ---------- */
.fp-avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  background: #f4f4f4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.fp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- headings ---------- */
.fp-container h2 {
  margin-top: 2.25rem; /* push below avatar */
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: #09132c;
}
.fp-container p {
  margin: 0.75rem 0 1.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  color: #374151;
}

/* ---------- input ---------- */
.fp-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d1d5db;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.fp-input:focus {
  outline: none;
  border-color: var(--pb-purple-500);
  box-shadow: 0 0 0 3px rgba(36, 93, 255, 0.3);
}

/* ---------- button ---------- */
.fp-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #ffffff;
  background: var(--pb-purple-500);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease-in-out, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.4);
}
.fp-btn:hover {
  transform: translateY(-2px);
  background: var(--pb-purple-600);
}
.fp-btn:active {
  transform: translateY(0);
}

/* ---------- spinner ---------- */
.btn-spinner {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* ---------- notification (error / success) ---------- */
.notification {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.12); /* blue/500/12 */
  color: #3b82f6;
  box-sizing: border-box;
  display: none; /* toggled via JS */
}




/* ====== Newly added ====== */





/* ====== Tokens ====== */
:root{
  --bg: #0f172a;            /* slate-900 */
  --bg-grad-1:#0b1226;      /* subtle diagonal background */
  --bg-grad-2:#131f3a;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;          /* slate-500 */
  --brand:#1e40af;          /* blue-800 */
  --brand-600:#2563eb;      /* blue-600 */
  --brand-700:#1d4ed8;      /* blue-700 */
  --ring:#93c5fd;           /* blue-300 */
  --shadow: 0 10px 30px rgba(2,8,23,.12);
}

/* ====== Page & background ====== */
.fp-body.with-bg{
  min-height:100dvh;
  display:grid;
  place-items:center;
  margin:0;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(37,99,235,.08), transparent 60%),
    radial-gradient(1000px 700px at 10% 90%, rgba(59,130,246,.06), transparent 60%),
    linear-gradient(135deg, var(--bg-grad-1), var(--bg-grad-2));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
}

/* ====== Card ====== */
.fp-container{
  width:min(94vw, 400px);     /* smaller, tighter card */
  background:var(--card);
  border-radius:18px;
  padding:28px 26px 24px;
  box-shadow:var(--shadow);
  position:relative;
  border:1px solid rgba(15,23,42,.06);
  text-align:center;
}

/* Avatar overlaps the card */
.fp-avatar{
  width:72px; height:72px;
  border-radius:999px;
  margin:-56px auto 10px;       /* pull up over the border */
  display:grid; place-items:center;
  background:linear-gradient(180deg,#ffffff 30%, #f8fafc 100%);
  box-shadow:0 8px 20px rgba(2,8,23,.12);
  border:3px solid #fff;
}
.fp-avatar img{
  width:60px; height:60px; border-radius:999px;
  display:block;
}

/* ====== Headings & copy ====== */
.fp-container h2{
  margin:6px 0 6px;
  font-size:22px;
  letter-spacing:.2px;
}
.fp-container p{
  margin:0 0 18px;
  font-size:14.5px;
  line-height:1.55;
  color:var(--muted);
}

/* ====== Notification (hidden by default in HTML) ====== */
.notification{
  margin:12px 0 4px;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  line-height:1.4;
  text-align:left;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
}

/* ====== Form ====== */
#forgot-form{ margin-top:8px; }

.fp-input{
  width:100%;
  height:46px;
  padding:0 14px 0 42px;               /* room for icon */
  border:1px solid #e5e7eb;
  border-radius:12px;
  font-size:15px;
  background:#fff;
  box-shadow: inset 0 1px 0 rgba(2,8,23,.03);
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%232563EB'><path d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6zm2 0l8 5 8-5H4zm16 12V8l-8 5-8-5v10h16z'/></svg>");
  background-repeat:no-repeat;
  background-position:12px 50%;
}
.fp-input::placeholder{ color:#9aa3af; }
.fp-input:focus{
  outline:none;
  border-color:var(--brand-600);
  box-shadow:0 0 0 3px rgba(37,99,235,.18);
  transform:translateY(-1px);
}

/* ====== Button ====== */
.fp-btn{
  width:100%;
  margin-top:12px;
  height:48px;
  border:0;
  border-radius:12px;
  font-weight:700;
  font-size:15px;
  color:#fff;
  background:linear-gradient(180deg,var(--brand-600),var(--brand-700));
  box-shadow:0 10px 18px rgba(37,99,235,.22), inset 0 -2px 0 rgba(255,255,255,.15);
  cursor:pointer;
  transition:transform .08s ease, filter .15s ease, box-shadow .15s ease;
}
.fp-btn:hover{ filter:brightness(1.03); box-shadow:0 12px 22px rgba(37,99,235,.28); }
.fp-btn:active{ transform:translateY(1px); }

/* Spinner inside button (optional – you already have classes) */
.btn-spinner{
  width:18px; height:18px; border:3px solid rgba(255,255,255,.35);
  border-top-color:#fff; border-radius:999px; margin-right:8px;
  animation:spin .8s linear infinite;
}
.hidden{ display:none; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* Divider */
.fp-container hr{
  border:0; height:1px; background:linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin:18px 0 14px;
}

/* Footer logo sizing */
.fp-footer img{ height:38px; opacity:.9; }

/* ====== Small screens fine-tuning ====== */
@media (max-width:380px){
  .fp-container{ padding:24px 18px 20px; width:min(94vw, 360px); }
  .fp-input{ height:44px; }
  .fp-btn{ height:46px; }
}
