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

/* ---- card ---- */
.signin-container{
  background:#fff;
  border-radius:1rem;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  width:100%;
  max-width:28rem;
  padding:2rem 1.75rem 2.5rem;
  position:relative;
}

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

/* ---- avatar ---- */
.signin-avatar{
  position:absolute;
  top:-2.75rem;
  left:50%;
  transform:translateX(-50%);
}
.signin-avatar img{
  width:88px;height:88px;
  border-radius:9999px;
  border:4px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}

/* ---- inputs ---- */
.signin-input{
  width:100%;
  border:1px solid #d1d5db;
  padding:0.55rem 0.8rem;
  border-radius:0.5rem;
  font-size:0.9rem;
}

/* ---- button ---- */
.signin-btn{
  width:100%;
  background:#002cd9; /* royal blue */
  color:#fff;
  padding:0.6rem 1rem;
  border-radius:0.5rem;
  font-weight:600;
  transition:background .2s;
}
.signin-btn:hover{background:#0320a8}

/*─────────────────── RESET & BASE ───────────────────*/
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #f3f4f6;
  color: #111827;
  overflow-x: hidden;
}

/*─────────────────── PAGE LAYOUT ───────────────────*/
.signin-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

/*─────────────────── CONTAINER ───────────────────*/
.signin-container {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.75rem 2.5rem;
}

/*─────────────────── AVATAR ───────────────────*/
.signin-avatar {
  position: absolute;
  top: -2.75rem;
  left: 50%;
  transform: translateX(-50%);
}
.signin-avatar img {
  width: 88px; 
  height: 88px;
  border-radius: 9999px;
  border: 4px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/*─────────────────── FORM ELEMENTS ───────────────────*/
.signin-input {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.signin-btn {
  width: 100%;
  background: #002cd9;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  transition: background 0.2s ease;
}
.signin-btn:hover {
  background: #0320a8;
}

/*─────────────────── FOOTER LINKS ───────────────────*/
.signin-container p.text-sm {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}
.signin-container p.text-sm a {
  color: #1d4ed8;
  text-decoration: none;
  transition: color 0.2s;
}
.signin-container p.text-sm a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/*─────────────────── TABLET (≥640px & <1024px) ───────────────────*/
@media (min-width: 640px) and (max-width: 1023px) {
  .signin-container {
    max-width: 70vw;
    padding: 2.5rem 3rem;
  }
  .signin-input {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .signin-btn {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/*─────────────────── DESKTOP (≥1024px) ───────────────────*/
@media (min-width: 1024px) {
  .signin-container {
    max-width: 34rem;
  }
}

/* auth-signin.css */

/* Remove default bottom margin/padding on container */
.signin-container {
  margin-bottom: 0 !important;
  padding-bottom: 2rem !important;
}

/* Make sure body has enough min-height so the card never sits flush to the very bottom */
body.signin-hero {
  display: flex;
  align-items: center;       /* vertically center the card */
  min-height: 100vh;         /* at least full viewport height */
}

/* If you still see a bit too much white below on large screens, you can nudge it up: */
@media (min-width: 640px) {
  .signin-container {
    transform: translateY(-5vh);
  }
}


/* auth-signin.css */

/* Add a bold blue border around the card */
.signin-container {
  border: 2px solid #2563EB;   /* use your primary blue */
  border-radius: 0.75rem;      /* match your existing rounded corners */
  box-shadow: none;            /* if you don’t want extra drop-shadow */
  /* (optional) pull the avatar circle above the border: */
  position: relative;
  overflow: visible;
}

/* Make sure the avatar still sits nicely on top */
.signin-avatar {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* ─────────────── Global text-size reset ─────────────── */
.signin-container,
.signin-container * {
  /* base font-size a little smaller than Tailwind’s default */
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
}

/* you might want to leave the top avatar’s outer circle unchanged: */
.signin-avatar + .signin-container * {
  font-size: 0.9rem !important;
}

/* ─────────────── Inputs → black borders ─────────────── */
.signin-input,
.signin-container select,
.signin-container textarea {
  border-color: hsl(0, 0%, 68%) !important;
  /* keep the nice, slightly rounded corners */
  border-radius: 0.375rem !important;
}

/* placeholder text can also be toned down: */
.signin-input::placeholder {
  color: hsl(0, 0%, 0%) !important;
  font-size: 0.9rem !important;
}

/* ─────────────── Buttons & headings ─────────────── */
.signin-btn {
  font-size: 0.95rem !important;
  padding: 0.75rem !important;
}

/* shrink the “Welcome Back” title a touch */
.signin-container h2 {
  font-size: 1.2rem !important;
  margin-bottom: 0.5rem !important;
}

/* keep links legible but small */
.signin-container a {
  font-size: 0.85rem !important;
}

/* ─────────────── Preserve responsiveness ─────────────── */
/* everything above uses relative units; it will scale down naturally */
/* If you need to push it further on very small phones, you can add: */
@media (max-width: 360px) {
  .signin-container,
  .signin-container * {
    font-size: 0.8rem !important;
  }
  .signin-input::placeholder {
    font-size: 0.8rem !important;
  }
  .signin-btn {
    font-size: 0.9rem !important;
    padding: 0.65rem !important;
  }
}

/* Shrink the main welcome heading */
.signin-container > div.text-center h2 {
  font-size: 1rem !important;      /* about 16px */
  margin-bottom: 0.5rem !important;
}

/* And reduce the logo below it too */
.signin-container > div.text-center h2 + img {
  width: 1.5rem !important;        /* about 24px */
  height: auto !important;
}

/* If you want it even smaller on the tiniest phones */
@media (max-width: 360px) {
  .signin-container > div.text-center h2 {
    font-size: 0.9rem !important;  /* ~14px */
  }
}


/* ─── ensure the container is positioned for absolute children ───── */
.signin-container {
  position: relative;
  overflow: visible;
}

/* ─── pull the avatar up over the border ────────────────────────── */
.signin-avatar {
  position: absolute;
  top: -2.5rem;               /* ~ half the avatar height (adjust as needed) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ─── tighten gap between avatar and heading ────────────────────── */
.signin-container .text-center {
  margin-top: 1rem;           /* less space above the H2 */
}

.signin-container h2 {
  margin-top: 2rem;        /* collapse heading’s own top margin */
  font-size: 1.125rem;        /* ~18px */
  line-height: 1.3;
}

/* ─── very small devices ────────────────────────────────────────── */
@media (max-width: 375px) {
  .signin-avatar {
    top: -3rem;               /* a bit less on tiny screens */
  }
  .signin-container h2 {
    font-size: 1rem;          /* ~16px */
    margin-top: 0.3rem;
  }
}

/* ─────────────────────────── Sign-In Container ────────────────────────── */
/* Base: mobile-first centering */
.signin-body {
  background: #f3f4f6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.signin-container {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  width: 90%;
  max-width: 25rem;    /* ~400px */
  margin: 0 auto;
  padding: 2rem 1.75rem 2.5rem;
  position: relative;
}

/* Small tablets (≥600px) */
@media (min-width: 600px) {
  .signin-container {
    width: 85%;
    max-width: 32rem;  /* ~512px */
    padding: 2.5rem 2.5rem 3rem;
  }
}

/* iPad portrait (≥768px) */
@media (min-width: 768px) {
  .signin-container {
    width: 75%;
    max-width: 36rem;  /* ~576px */
    padding: 3rem 3rem 3.5rem;
  }
}

/* iPad landscape & small desktop (≥1024px) */
@media (min-width: 1024px) {
  .signin-container {
    width: 60%;
    max-width: 40rem;  /* ~640px */
    /*padding: 3.5rem 4rem 4rem;*/
  }
}

/* in auth-signin.css (or your global stylesheet) */
.signin-hero {
  /* replace with your image path: */
  background-image: url('/public/assets/uploads/bg3.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  /* ensure it fills the viewport */
  min-height: 100vh;
  width: 100vw;

  /* if you want a subtle overlay, uncomment: */
  /* position: relative; */
}


.notification {
  padding: 0.75em 1em;
  margin: 1rem auto 1rem;   /* <──  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 – Sign‑In card styles (pure CSS)
   Author: PayBridge, By Joel Yao Adedi
   Re‑uses the purple accent palette from sign‑up
-------------------------------------------------- */

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

/* ---------- card ---------- */
.signin-container {
  position: relative;
  width: 100%;
  max-width: 26rem; /* 416px */
  padding: 2rem 2rem 2.75rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  background: #ffffff;
  box-sizing: border-box;

  /* 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), var(--pb-purple-300));

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

/* subtle inner texture (optional) */
.signin-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 ---------- */
.signin-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);
}
.signin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- heading ---------- */
.signin-container h2 {
  margin-top: 2rem; /* push below avatar */
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  color: #09132c;
}
.signin-container h2 span {
  color: var(--pb-purple-500);
}

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

/* ---------- button ---------- */
.signin-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  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);
}
.signin-btn:hover {
  transform: translateY(-2px);
  background: var(--pb-purple-600);
}
.signin-btn:active {
  transform: translateY(0);
}

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

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

/* ---------- notification placeholder ---------- */
.notification {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.12); /* red/500/12 */
  color: #ef4444;
  box-sizing: border-box;
  display: none; /* toggled via JS */
}


/* Make the sign-in logo responsive but readable */
.signin-container .text-center .signin-logo{
  height: 10px !important;   /* pick 40–56px to taste */
  width: auto !important;
  max-width: 80%;
  
  display: block;
  margin-top: .5rem;
}

/* Neutralize the earlier shrink rule (if you can’t delete it) */
.signin-container > div.text-center h2 + img{
  width: auto !important;
  height: 40px !important;
}

/* Base input styling */
.signin-input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
  background-color: #fff;
}

/* Space for icon */
.icon-email,
.icon-password {
  padding-left: 44px;
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 18px 18px;
}

/* Envelope icon (blue) */
.icon-email {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007BFF'>\
<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>");
}

/* Lock icon (blue) */
.icon-password {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007BFF'>\
<path d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 8V6a3 3 0 0 1 6 0v3H9z'/>\
</svg>");
}

/* Focus state with blue border */
.signin-input:focus {
  outline: none;
  border-color: #007BFF; /* Bootstrap blue */
}






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








/* ========= DESIGN TOKENS (reuse from forgot) ========= */
:root{
  --bg-grad-1:#0b1226;
  --bg-grad-2:#131f3a;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --brand-600:#2563eb;
  --brand-700:#1d4ed8;
  --shadow: 0 10px 30px rgba(2,8,23,.12);
}

/* ========= PAGE BACKGROUND ========= */
.signin-body.signin-hero{
  min-height:100dvh;
  margin:0;
  display:grid;
  place-items:center;
  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;
  color:var(--text);
}

/* ========= CARD ========= */
.signin-container{
  width:min(94vw, 400px);
  background:var(--card);
  border-radius:18px;
  padding:28px 26px 24px;
  box-shadow:var(--shadow);
  border:1px solid rgba(240, 240, 240, 0.06);
  position:relative;
  text-align:center;
}

/* ========= AVATAR ========= */
.signin-avatar{
  width:72px;height:72px;
  border-radius:999px;
  margin:-56px auto 6px;
  display:grid;place-items:center;
  background:linear-gradient(180deg,#ffffff 30%, #f8fafc);
  box-shadow:0 8px 20px rgba(2,8,23,.12);
  border:3px solid #fff;
}
.signin-avatar img{ width:60px;height:60px;border-radius:999px;display:block; }

/* ========= TYPO ========= */
.signin-container h2{
  margin:6px 0 2px;
  font-size:22px;
  letter-spacing:.2px;
}
.signin-container p{ color:var(--muted); }

/* ========= NOTIFICATION (optional) ========= */
.notification{
  margin:12px 0 4px;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  text-align:left;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
}

/* ========= INPUTS (with icons) ========= */
.signin-input{
  width:100%;
  height:46px;
  margin-top:10px;
  padding:0 14px 0 42px;                  /* space for icon */
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  font-size:15px;
  transition:border-color .15s ease, box-shadow .15s ease, transform .08s ease;
  box-shadow: inset 0 1px 0 rgba(2,8,23,.03);
}
.signin-input::placeholder{ color:#9aa3af !important; }
.signin-input:focus{
  outline:none;
  border-color:var(--brand-600);
  box-shadow:0 0 0 3px rgba(37,99,235,.18);
  transform:translateY(-1px);
}

/* Email icon */
.icon-email{
  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%;
}
/* Password icon */
.icon-password{
  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='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 8V6a3 3 0 0 1 6 0v3H9z'/></svg>");
  background-repeat:no-repeat;
  background-position:12px 50%;
}

/* ========= BUTTON ========= */
.signin-btn{
  width:100%;
  height:48px;
  margin-top:12px;
  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;
}
.signin-btn:hover{ filter:brightness(1.03); box-shadow:0 12px 22px rgba(37,99,235,.28); }
.signin-btn:active{ transform:translateY(1px); }

/* Spinner used inside button */
.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); } }

/* Links under the form */
.signin-container a{ color:var(--brand-600); }
.signin-container a:hover{ text-decoration:underline; }

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

.logo-small {
  width: 10px !important;
  height: 10px !important;
}
