/* Merchant dashboard sign-in: brand hero + 6-digit passcode keypad.
   Brand: indigo #6366f1 → purple #a855f7, gold dot #ffb020, navy #0b1b3a. */

.pclogin {
  --pc-ink: #151d48;
  --pc-muted: #737791;
  --pc-indigo: #6366f1;
  --pc-purple: #a855f7;
  --pc-gold: #ffb020;
  --pc-navy: #0b1b3a;
  --pc-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  font-family: "Poppins", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--pc-ink); background: #f6f7fd;
}

/* ---- hero ---------------------------------------------------------------- */
.pcl-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px clamp(32px, 5vw, 72px);
  background:
    radial-gradient(120% 90% at 0% 0%, #312e81 0%, transparent 60%),
    radial-gradient(90% 80% at 100% 100%, #6d28d9 0%, transparent 65%),
    var(--pc-navy);
  color: #fff;
}
.pcl-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1;
  animation: pcl-drift 18s ease-in-out infinite alternate; }
.pcl-orb.o1 { width: 420px; height: 420px; left: -120px; top: 30%; background: #6366f1; }
.pcl-orb.o2 { width: 340px; height: 340px; right: -80px; top: -60px; background: #a855f7; animation-delay: -6s; }
.pcl-orb.o3 { width: 180px; height: 180px; right: 18%; bottom: 12%; background: #ffb020; opacity: .35; animation-delay: -12s; }
@keyframes pcl-drift { to { transform: translate3d(40px, -30px, 0) scale(1.08); } }
/* faint dot grid over the glow */
.pcl-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }

.pcl-logo { height: 40px; width: auto; align-self: flex-start; }
.pcl-pitch h2 { margin: 0 0 14px; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; }
.pcl-pitch h2 em { font-style: normal;
  background: linear-gradient(90deg, #ffc04d, #ffb020 40%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcl-pitch p { margin: 0; max-width: 30ch; font-size: 1.05rem; line-height: 1.55; color: rgba(255,255,255,.72); }

.pcl-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pcl-chip { padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pcl-chip b { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.pcl-chip b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 8px; vertical-align: 2px; background: var(--pc-gold); box-shadow: 0 0 0 4px rgba(255,176,32,.18); }
.pcl-chip span { font-size: .8rem; color: rgba(255,255,255,.62); }

/* ---- panel + card -------------------------------------------------------- */
.pcl-panel { display: grid; place-items: center; padding: 40px 24px;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(168,85,247,.10), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(99,102,241,.10), transparent 70%),
    #f6f7fd; }
.pcl-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center;
  padding: 36px 30px 30px; border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(21,29,72,.04), 0 24px 60px -12px rgba(46,45,116,.22);
  border: 1px solid #eef0f8; }
.pcl-mark { height: 38px; width: auto; margin-bottom: 22px; }
.pcl-card h1 { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--pc-ink); }
.pcl-sub { margin: 6px 0 22px; color: var(--pc-muted); font-size: .95rem; }

/* six cells mirror one real input laid invisibly over them */
.pcl-cells { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  width: 100%; cursor: text; }
.pcl-cells input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  border: 0; padding: 0; font-size: 16px; color: transparent; caret-color: transparent; cursor: text; }
.pcl-cell { position: relative; height: 56px; border-radius: 14px; background: #f6f7fd;
  border: 1.5px solid #e4e7f3; transition: border-color .15s, box-shadow .15s, background .15s; }
.pcl-cell::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 50%; background: var(--pc-grad);
  transform: scale(0); transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.pcl-cell.on { background: #fff; border-color: #c7c9fb; }
.pcl-cell.on::after { transform: scale(1); }
.pcl-cells:focus-within .pcl-cell.cur,
.pcl-cell.cur { border-color: var(--pc-indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.14); background: #fff; }

.pcl-err { margin: 14px 0 0; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  color: #c81e3a; background: #fff0f2; }

.pcl-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin: 22px 0 18px; }
.pcl-pad button { height: 60px; border: 0; border-radius: 18px; background: #f3f4fb; color: var(--pc-ink);
  font-family: inherit; font-size: 1.4rem; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background .12s, transform .08s, color .12s; -webkit-tap-highlight-color: transparent; }
.pcl-pad button:hover { background: #eceefb; }
.pcl-pad button:active { transform: scale(.95); background: #e0e1fd; color: var(--pc-indigo); }
.pcl-pad button:focus-visible { outline: 2px solid var(--pc-indigo); outline-offset: 2px; }
.pcl-pad .pcl-fn { background: transparent; font-size: .9rem; font-weight: 500; color: var(--pc-muted); }
.pcl-pad .pcl-fn[data-k="back"] { font-size: 1.35rem; }

.pcl-go { width: 100%; height: 54px; border: 0; border-radius: 16px; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1; color: #fff; background: var(--pc-grad);
  box-shadow: 0 12px 24px -10px rgba(99,102,241,.7); transition: opacity .15s, transform .1s, box-shadow .15s; }
.pcl-go:hover:not(:disabled) { box-shadow: 0 16px 30px -10px rgba(124,58,237,.75); }
.pcl-go:active:not(:disabled) { transform: translateY(1px); }
.pcl-go:disabled { opacity: .45; cursor: default; box-shadow: none; }

.pcl-shake { animation: pcl-shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes pcl-shake {
  15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); }
  45% { transform: translateX(-8px); } 60% { transform: translateX(8px); }
}

/* ---- tablet / phone: hero becomes a band, the card rises over it ---------- */
@media (max-width: 959px) {
  .pclogin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pcl-hero { padding: 28px 24px 92px; gap: 22px; }
  .pcl-chips, .pcl-pitch p { display: none; }
  .pcl-logo { height: 32px; }
  .pcl-pitch h2 { font-size: 1.75rem; }
  .pcl-panel { align-items: start; padding: 0 16px 32px; background: #f6f7fd; }
  .pcl-card { margin-top: -64px; padding: 28px 20px 22px; }
  .pcl-mark { display: none; }
}
@media (max-width: 380px) {
  .pcl-cells { gap: 7px; }
  .pcl-cell { height: 50px; }
  .pcl-pad button { height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcl-orb, .pcl-shake { animation: none; }
  .pcl-cell::after { transition: none; }
}
