/* JigjigaSale — immersive auth (login/register) v2.
   Scoped to the auth body + jjs-v2 so it never touches other pages. */

body.jigji-auth-body.jjs-v2{
  margin:0;min-height:100vh;
  background:linear-gradient(180deg,var(--jjs-navy-900) 0%,var(--jjs-navy-800) 40%,var(--jjs-canvas) 40%,var(--jjs-canvas) 100%);
  font-family:var(--jjs-font);
}
/* brand logo from jigji_auth_header, centered on the navy band.
   !important overrides the legacy auth.css which pins the img to a tiny
   icon width (it was built for the old square logo). */
body.jigji-auth-body.jjs-v2 .jigji-auth-logo{display:block!important;text-align:center;padding:40px 20px 22px;width:auto!important}
body.jigji-auth-body.jjs-v2 .jigji-auth-logo a{display:inline-block}
body.jigji-auth-body.jjs-v2 .jigji-auth-logo img{height:46px!important;width:auto!important;max-width:250px!important;display:inline-block;filter:drop-shadow(0 8px 20px rgba(0,0,0,.35))}

.jjs-auth-wrap{max-width:430px;margin:0 auto;padding:0 18px 44px}
.jjs-auth-card{background:#fff;border-radius:var(--jjs-r-xl);padding:26px 22px 24px;box-shadow:var(--jjs-shadow-lg)}
.jjs-auth-title{margin:0 0 4px;font-size:var(--jjs-fs-xl);font-weight:800;letter-spacing:-.02em;color:var(--jjs-ink)}
.jjs-auth-sub{margin:0 0 20px;font-size:var(--jjs-fs-sm);color:var(--jjs-slate-500)}

.jjs-auth-form .jjs-field-label{margin-top:2px}
.jjs-auth-form .jjs-field{margin-bottom:14px}
.jjs-auth-form .jigji-password-field{position:relative}
.jjs-auth-form .jigji-password-field .jjs-field{margin-bottom:4px}
.jjs-auth-form .jjs-eye{position:absolute;right:8px;top:11px;background:0;border:0;color:var(--jjs-slate-400);cursor:pointer;padding:6px;font-size:var(--jjs-fs-md)}

.jjs-auth-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 18px;font-size:var(--jjs-fs-xs)}
.jjs-check{display:flex;align-items:center;gap:7px;color:var(--jjs-slate-600);font-weight:600;cursor:pointer}
.jjs-check input{accent-color:var(--jjs-blue-500);width:15px;height:15px}
.jjs-auth-row a{color:var(--jjs-blue-500);font-weight:700}

.jjs-auth-note-err{background:var(--jjs-red-050);color:var(--jjs-red);font-size:var(--jjs-fs-sm);font-weight:700;padding:10px 12px;border-radius:var(--jjs-r);margin-bottom:16px}

/* social divider + Google button */
.jjs-auth-or{display:flex;align-items:center;gap:12px;color:var(--jjs-slate-400);font-size:var(--jjs-fs-xs);font-weight:600;margin:16px 0}
.jjs-auth-or::before,.jjs-auth-or::after{content:"";flex:1;height:1px;background:var(--jjs-slate-200)}
.jjs-btn-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px;
  border:1px solid var(--jjs-slate-300);border-radius:var(--jjs-r);background:#fff;color:#3c4043;
  font-family:inherit;font-weight:700;font-size:var(--jjs-fs-sm);text-decoration:none;cursor:pointer;transition:background .12s,box-shadow .12s}
.jjs-btn-google:hover{background:#f8f9fa;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.jjs-btn-google svg{width:18px;height:18px;flex:0 0 auto}

.jjs-auth-guest{text-align:center;font-size:var(--jjs-fs-xs);color:var(--jjs-slate-500);font-weight:700;margin-top:14px;padding:11px;border:1px dashed var(--jjs-slate-300);border-radius:var(--jjs-r)}
.jjs-auth-alt{text-align:center;margin-top:16px;font-size:var(--jjs-fs-sm);color:var(--jjs-slate-600)}
.jjs-auth-alt a{font-weight:800}

/* ---------- register extras ---------- */
.jjs-auth-wrap--wide{max-width:462px}
/* container-scoped + !important to override the legacy auth.css role toggle */
.jjs-role-toggle.jjs-role-toggle{display:flex;background:var(--jjs-slate-100);border-radius:var(--jjs-r-lg);padding:4px;gap:4px;margin:0 0 18px}
.jjs-role-toggle .jjs-role-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:10px 6px;border:0!important;background:transparent!important;border-radius:var(--jjs-r-sm)!important;font-family:inherit;font-weight:800;font-size:var(--jjs-fs-sm);color:var(--jjs-slate-500)!important;cursor:pointer;transition:background .12s,color .12s;width:auto!important;margin:0!important}
.jjs-role-toggle .jjs-role-btn small{display:block;font-weight:600;font-size:var(--jjs-fs-xs);color:var(--jjs-slate-400)}
.jjs-role-toggle .jjs-role-btn .jjs-role-ic{font-size:var(--jjs-fs-md);line-height:1.4}
.jjs-role-toggle .jjs-role-btn.active{background:var(--jjs-navy-900)!important;color:#fff!important}
.jjs-role-toggle .jjs-role-btn.active small{color:#a9bfe6!important}
.jjs-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jjs-strength{margin:-6px 0 12px}
.jjs-strength .strength-bar{display:block;height:5px;width:0;background:var(--jjs-slate-200);border-radius:var(--jjs-r-pill);transition:width .2s ease,background .2s ease}
.jjs-strength .strength-text{display:block;font-size:var(--jjs-fs-xs);font-weight:700;color:var(--jjs-slate-500);margin-top:5px}
.jjs-check--terms{margin:2px 0 16px;font-size:var(--jjs-fs-xs);align-items:flex-start;line-height:1.4}
.jjs-check--terms input{margin-top:1px}
.jjs-check--terms a{font-weight:700}

/* ajax feedback messages */
.jigji-auth-message:empty{display:none}
.jigji-auth-message .success,.jigji-auth-message .error{font-size:var(--jjs-fs-sm);font-weight:700;padding:10px 12px;border-radius:var(--jjs-r);margin-bottom:14px}
.jigji-auth-message .success{background:var(--jjs-green-050);color:var(--jjs-green)}
.jigji-auth-message .error{background:var(--jjs-red-050);color:var(--jjs-red)}

/* ---------- centre sign-in ----------
   One login form serves the customer, seller, staff and driver doors; ?for=
   sets --jjs-ctx and the card wears that centre's colour. The badge carries the
   identity so the card itself stays plain — the gold action button is the same
   everywhere, because gold means "the thing to press" across this whole site
   and a per-centre button colour would quietly break that. */
.jjs-auth-card--ctx{border-top:0}
.jjs-auth-badge{
  display:inline-flex;align-items:center;justify-content:center;
  width:54px;height:54px;margin:0 0 15px;border-radius:var(--jjs-r-lg);
  background:var(--jjs-slate-100);
  background:color-mix(in srgb, var(--jjs-ctx) 13%, #fff);
  color:var(--jjs-ctx);
}
.jjs-auth-badge svg{width:27px;height:27px;display:block}

/* Who you are currently signed in as, on the wrong-account page. */
.jjs-auth-who{
  margin:0 0 18px;padding:11px 13px;border-radius:var(--jjs-r);
  background:var(--jjs-slate-100);color:var(--jjs-slate-600);
  font-size:var(--jjs-fs-sm);
}
.jjs-auth-who strong{color:var(--jjs-ink);font-weight:800}

/* Footer links: the way onward for someone who does not have an account here. */
.jjs-auth-links{
  display:flex;flex-direction:column;gap:9px;align-items:center;
  margin-top:18px;padding-top:16px;border-top:1px solid var(--jjs-slate-200);
  font-size:var(--jjs-fs-sm);color:var(--jjs-slate-600);text-align:center;
}
.jjs-auth-links a{color:var(--jjs-blue-500);font-weight:800}
.jjs-auth-links > a:last-child{color:var(--jjs-slate-500);font-weight:700}
