/* ==========================================================================
   WebWiz Login Suite — Electric redesign (v1.5.17-electric)
   --------------------------------------------------------------------------
   The card is the demo's exact card (nileshmhatre.com animated electric
   login/signup): 430px wide, 650px tall, card-inner padding 40px 36px,
   logo 64px, title 29px, fields 53px, button 53px, drifting orbs, rotating
   conic-gradient arc border, decorative rings, divider, social buttons,
   switch text. The demo's classes (.logo, .title, .field, ...) are scoped
   under .wzls-dialog so they cannot leak into the theme.
   The popup is a 3D flip card (login / register faces) plus a forgot face
   that fades in over the flip area. No tabs.
   PRESENTATION ONLY — no selectors below are used by the JS/AJAX engine
   except the plugin's own .wzls-* classes, which keep their meaning.
   ========================================================================== */

/* ---------- Tokens (shared) ---------- */
#wzls-modal,
.wzls-inline,
.wzls-page-reset,
.wzls-login-page {
  --wzls-el-cyan: #ff2d2d;
  --wzls-el-blue: #b30000;
  --wzls-el-card-a: #171e27;
  --wzls-el-card-b: #0a0e14;
  --wzls-el-input: #0e141c;
  --wzls-el-muted: #788596;
  --wzls-el-label: #667384;
}

/* ==========================================================================
   POPUP SHELL
   ========================================================================== */
#wzls-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  padding: 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
#wzls-modal.wzls-show { display: block; }
body.wzls-noscroll { overflow: hidden; }

/* Backdrop = the demo's page background. No blur. */
#wzls-modal .wzls-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #3b1717, transparent 30%),
              radial-gradient(circle at 80% 80%, #3d1616, transparent 30%),
              #070a0f;
}

#wzls-modal .wzls-center {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drifting orbs (demo). Fixed, so they cannot cause horizontal scroll;
   the modal clips them horizontally (overflow-x: hidden above). */
#wzls-modal::before,
#wzls-modal::after,
.wzls-login-page::before,
.wzls-login-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3px);
  z-index: 0;
}
.wzls-login-page::before,
.wzls-login-page::after { position: absolute; }
#wzls-modal::before,
.wzls-login-page::before {
  width: 180px;
  height: 180px;
  left: -70px;
  top: -70px;
  background: #ff2d2d;
  box-shadow: 0 0 100px #ff2d2d;
  animation: wzls-el-orb1 7s ease-in-out infinite;
}
#wzls-modal::after,
.wzls-login-page::after {
  width: 160px;
  height: 160px;
  right: -60px;
  bottom: -60px;
  background: #b30000;
  box-shadow: 0 0 100px #b30000;
  animation: wzls-el-orb2 8s ease-in-out infinite;
}
@keyframes wzls-el-orb1 { 50% { transform: translate(80px, 70px); } }
@keyframes wzls-el-orb2 { 50% { transform: translate(-70px, -70px); } }

/* ==========================================================================
   DIALOG = flip container (demo .flip-container)
   ========================================================================== */
.wzls-dialog {
  position: relative;
  width: min(430px, 92vw);
  margin: 0 auto;
  perspective: 1500px;
  transition: height .5s ease;
  z-index: 1;
  box-sizing: border-box;
}
/* The card never overflows a small viewport: cap it, the card-inner
   scrolls inside it (see below) and the modal scrolls as a fallback. */
#wzls-modal .wzls-dialog { max-height: 92vh; }

/* Close button (popup only — hidden on the /login/ page). */
.wzls-dialog .wzls-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  color: #9fb3c8;
}
.wzls-dialog .wzls-close:hover { color: #ffffff; }
.wzls-login-page .wzls-dialog .wzls-close { display: none; }

/* ==========================================================================
   FLIP CARD (demo .flip-card)
   ========================================================================== */
.wzls-dialog .flip-card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .75, .2, 1);
}
.wzls-dialog .flip-card.flipped { transform: rotateY(180deg); }

/* ==========================================================================
   CARD FACES (demo .card-face)
   ========================================================================== */
.wzls-dialog .card-face {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 30px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}
/* Rotating conic-gradient arc border (the "electric" effect). */
.wzls-dialog .card-face::before {
  content: "";
  position: absolute;
  width: 180%;
  height: 180%;
  left: -40%;
  top: -40%;
  background: conic-gradient(transparent 0deg, transparent 255deg, #ff2d2d 285deg, #ffffff 305deg, #ff2d2d 325deg, transparent 350deg);
  animation: wzls-el-electric 3s linear infinite;
  z-index: -2;
}
@keyframes wzls-el-electric { to { transform: rotate(360deg); } }
.wzls-dialog .signup-face { transform: rotateY(180deg); }

/* Forgot face: a third face that fades in over the flip area. */
.wzls-dialog .forgot-face {
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.wzls-dialog.wzls-show-forgot .forgot-face { opacity: 1; visibility: visible; }
.wzls-dialog.wzls-show-forgot .flip-card { visibility: hidden; }

/* OTP verify face: a fourth face that fades in over the flip area (same
   pattern as the forgot face). Shown after CREATE ACCOUNT is clicked. */
.wzls-dialog .otp-face {
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.wzls-dialog.wzls-show-otp .otp-face { opacity: 1; visibility: visible; }
.wzls-dialog.wzls-show-otp .flip-card { visibility: hidden; }
/* The email the code was sent to, shown under the OTP face title. */
.wzls-dialog .wzls-otp-sent-email { font-weight: 700; color: #ffffff; }
/* The OTP face's boxes span the full card width (no Send button beside
   them, unlike the old register-form row). */
.wzls-dialog .otp-face .wzls-otp-field { width: 100%; }
/* Resend sits below the verify button with a little breathing room. */
.wzls-dialog .wzls-resend-otp { margin-top: 10px; }
/* Back to registration is a proper button now (not a tiny link), with the
   same breathing room below Resend. */
.wzls-dialog .wzls-back-register { margin-top: 10px; }

/* ==========================================================================
   OTP VERIFY ANIMATION (the demo's orbit → loading % → success checkmark).
   Plays on the OTP face while the code is checked on the server.
   ========================================================================== */
.wzls-dialog .wzls-otp-stage { position: relative; }
/* The animation layers sit over the form area, centred. */
.wzls-dialog .wzls-otp-orbit,
.wzls-dialog .wzls-otp-loading,
.wzls-dialog .wzls-otp-success {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}
.wzls-dialog .wzls-otp-stage--orbit .wzls-otp-orbit,
.wzls-dialog .wzls-otp-stage--loading .wzls-otp-loading,
.wzls-dialog .wzls-otp-stage--success .wzls-otp-success { display: flex; }
/* While an animation layer plays, the form fades out. */
.wzls-dialog .wzls-otp-stage--orbit .wzls-form-otp-verify,
.wzls-dialog .wzls-otp-stage--loading .wzls-form-otp-verify,
.wzls-dialog .wzls-otp-stage--success .wzls-form-otp-verify { opacity: 0; visibility: hidden; }
.wzls-dialog .wzls-form-otp-verify { transition: opacity .25s ease, visibility .25s; }

/* Orbit: six red dots circling the stage (the demo's orbiting ring). */
.wzls-dialog .wzls-otp-orbit-ring {
  position: relative;
  width: 72px;
  height: 72px;
  animation: wzls-otp-ringspin 1s linear infinite;
}
@keyframes wzls-otp-ringspin { to { transform: rotate(360deg); } }
.wzls-dialog .wzls-otp-orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #ff2d2d;
  box-shadow: 0 0 10px rgba(255, 45, 45, .7);
  transform: rotate(var(--a)) translateY(-32px);
}

/* Loading: a spinning red arc with a pulsing ring and a % counter. */
.wzls-dialog .wzls-otp-loading-core {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wzls-otp-morphin .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@keyframes wzls-otp-morphin {
  from { transform: scale(.4) rotate(-45deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}
.wzls-dialog .wzls-otp-loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, #ff2d2d 70%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 60%, black 62%);
  mask: radial-gradient(circle, transparent 60%, black 62%);
  animation: wzls-otp-spin 1.1s linear infinite;
}
@keyframes wzls-otp-spin { to { transform: rotate(360deg); } }
.wzls-dialog .wzls-otp-loading-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid #ff2d2d;
  opacity: 0;
  animation: wzls-otp-pulse 1.6s ease-out infinite;
}
@keyframes wzls-otp-pulse {
  0% { transform: scale(.85); opacity: .55; }
  100% { transform: scale(1.35); opacity: 0; }
}
.wzls-dialog .wzls-otp-loading-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1f;
  border: 1.5px solid rgba(255, 45, 45, .35);
  box-shadow: inset 0 0 12px rgba(255, 45, 45, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* Success: green flash, growing bubbles, a vault circle with a checkmark
   that draws itself in, and a "Verified" badge below. */
.wzls-dialog .wzls-otp-success-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, .55) 0%, rgba(16, 185, 129, .15) 40%, transparent 70%);
  opacity: 0;
  transform: scale(.4);
}
.wzls-dialog .wzls-otp-stage--success .wzls-otp-success-flash { animation: wzls-otp-flash .9s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes wzls-otp-flash {
  0% { transform: scale(.4); opacity: 0; }
  35% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wzls-dialog .wzls-otp-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid #10b981;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.wzls-dialog .wzls-otp-stage--success .wzls-otp-bubble { animation: wzls-otp-bubblegrow 1.4s cubic-bezier(.16, 1, .3, 1) forwards; }
.wzls-dialog .wzls-otp-stage--success .wzls-otp-bubble:nth-of-type(2) { animation-delay: .12s; }
.wzls-dialog .wzls-otp-stage--success .wzls-otp-bubble:nth-of-type(3) { animation-delay: .24s; }
@keyframes wzls-otp-bubblegrow {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; }
  70% { opacity: .5; }
  100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0; }
}
.wzls-dialog .wzls-otp-vault {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, .18), 0 0 50px rgba(16, 185, 129, .35), 0 14px 30px -10px rgba(16, 185, 129, .7);
  animation: wzls-otp-popin .7s cubic-bezier(.34, 1.56, .64, 1) forwards;
  z-index: 3;
}
@keyframes wzls-otp-popin {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  55% { transform: scale(1.25) rotate(12deg); opacity: 1; }
  75% { transform: scale(.95) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.wzls-dialog .wzls-otp-checkmark {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: wzls-otp-drawcheck .55s .3s cubic-bezier(.65, 0, .35, 1) forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2));
}
@keyframes wzls-otp-drawcheck { to { stroke-dashoffset: 0; } }
.wzls-dialog .wzls-otp-success-badge {
  position: absolute;
  top: calc(50% + 56px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(.8);
  background: #10b981;
  color: #ffffff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, .35);
  opacity: 0;
  white-space: nowrap;
}
.wzls-dialog .wzls-otp-stage--success .wzls-otp-success-badge { animation: wzls-otp-badgepop .55s .65s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes wzls-otp-badgepop {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.8); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
/* Error shake for the OTP face (the demo shakes the card on a wrong code). */
.wzls-dialog .otp-face.wzls-otp-shake { animation: wzls-otp-shake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes wzls-otp-shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* A card-face used on its own (reset page / logged-in /login/ branch):
   in normal flow, so it defines the dialog's height. */
.wzls-dialog .card-face.wzls-static-face { position: relative; }

/* ==========================================================================
   INNER CARD (demo .card-inner)
   ========================================================================== */
.wzls-dialog .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px 36px;
  border-radius: 28px;
  background: linear-gradient(145deg, #171e27, #0a0e14);
  box-shadow: inset 7px 7px 15px rgba(0, 0, 0, .85),
              inset -5px -5px 12px rgba(255, 255, 255, .035),
              0 30px 80px rgba(0, 0, 0, .75);
  /* Demo uses overflow: hidden. We allow vertical scroll inside the card
     (with the scrollbar hidden) so a capped card on a small screen can
     still be scrolled to its submit button; horizontal overflow stays
     clipped so the rings never cause a horizontal scrollbar. */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.wzls-dialog .card-inner::-webkit-scrollbar { display: none; }
/* Decorative rings (demo). */
.wzls-dialog .card-inner::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 45, 45, .18);
  border-radius: 50%;
  right: -100px;
  top: -100px;
  box-shadow: 0 0 30px rgba(255, 45, 45, .08), inset 0 0 30px rgba(255, 45, 45, .04);
}
.wzls-dialog .card-inner::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 45, 45, .12);
  border-radius: 50%;
  left: -60px;
  bottom: -60px;
}

/* Panels inside a face are always visible (the old .wzls-panel hiding
   rule is gone — faces, not tabs, decide what shows). */
.wzls-dialog .wzls-panel { display: block; }
.wzls-dialog .wzls-panel form { display: block; }

/* ---------- Logo / title / subtitle (demo) ---------- */
.wzls-dialog .logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #10161e;
  color: #ff2d2d;
  font-size: 27px;
  font-weight: bold;
  box-shadow: 7px 7px 15px rgba(0, 0, 0, .8), -4px -4px 10px rgba(255, 255, 255, .04), inset 2px 2px 5px rgba(0, 0, 0, .7);
  animation: wzls-el-logoGlow 2.5s infinite;
  overflow: hidden;
  /* Never let the tile squash: when the error box appears the card's
     content grows and flex items can compress — the logo must keep its
     64x64 rounded-square shape (it was collapsing into a flat pill). */
  flex-shrink: 0;
}
/* Site logo inside the logo tile (replaces the bolt/sparkle glyphs). */
.wzls-dialog .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes wzls-el-logoGlow {
  50% { box-shadow: 7px 7px 15px rgba(0, 0, 0, .8), -4px -4px 10px rgba(255, 255, 255, .04), inset 2px 2px 5px rgba(0, 0, 0, .7), 0 0 28px rgba(255, 45, 45, .35); }
}
.wzls-dialog .title {
  text-align: center;
  font-size: 29px;
  margin: 0 0 8px;
  letter-spacing: 1px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px #000, -1px -1px 1px rgba(255, 255, 255, .12);
}
.wzls-dialog .subtitle {
  text-align: center;
  font-size: 13px;
  color: #788596;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ---------- Fields (demo) ---------- */
.wzls-dialog .field { position: relative; margin-bottom: 16px; }
.wzls-dialog .field input,
.wzls-dialog .field select {
  width: 100%;
  height: 53px;
  border: 1px solid transparent;
  outline: none;
  border-radius: 13px;
  padding: 0 18px;
  background: #0e141c;
  color: #ffffff;
  font-size: 14px;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .8), inset -3px -3px 7px rgba(255, 255, 255, .035);
  transition: .35s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.wzls-dialog .field select {
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667384' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.wzls-dialog .field label {
  position: absolute;
  left: 18px;
  top: 17px;
  padding: 0 5px;
  color: #667384;
  background: #0e141c;
  pointer-events: none;
  font-size: 13px;
  transition: .3s;
}
.wzls-dialog .field input:focus {
  border-color: #ff2d2d;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 45, 45, .25), 0 0 18px rgba(255, 45, 45, .28);
}
.wzls-dialog .field select:focus {
  border-color: #ff2d2d;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 45, 45, .25), 0 0 18px rgba(255, 45, 45, .28);
}
.wzls-dialog .field input:focus + label,
.wzls-dialog .field input:not(:placeholder-shown) + label {
  top: -7px;
  color: #ff2d2d;
  font-size: 10px;
  text-shadow: 0 0 7px #ff2d2d;
}
/* Static labels (country code, OTP, Turnstile) sit above the control. */
.wzls-dialog .field.field-static label {
  position: static;
  display: block;
  margin-bottom: 6px;
  padding: 0;
  background: transparent;
  font-size: 12px;
  pointer-events: auto;
}
.wzls-dialog .field.field-static input:focus + label { top: auto; font-size: 12px; text-shadow: none; }
/* Password eye (demo). Padding enlarges the tap area to ~45px while the
   glyph itself stays at the demo's 17px offset. */
.wzls-dialog .password-field input { padding-right: 52px; }
.wzls-dialog .eye {
  position: absolute;
  right: 3px;
  top: 3px;
  padding: 14px;
  color: #657385;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: .3s;
  user-select: none;
  -webkit-user-select: none;
}
.wzls-dialog .eye:hover { color: #ff2d2d; text-shadow: 0 0 8px #ff2d2d; }

/* Side-by-side rows (name, phone, OTP). */
.wzls-dialog .wzls-row { display: flex; gap: 10px; align-items: flex-end; }
.wzls-dialog .wzls-row .field { flex: 1 1 0; min-width: 0; }
.wzls-dialog .wzls-row .wzls-cc { flex: 0 0 140px; max-width: 140px; }
.wzls-dialog .wzls-row .wzls-otp-field { flex: 1 1 0; min-width: 0; }
.wzls-dialog .wzls-row .wzls-otp-send { flex: 0 0 110px; max-width: 110px; }

/* OTP digit boxes (demo field look). */
.wzls-dialog .wzls-otp-boxes { display: flex; gap: 6px; }
/* OTP digit boxes: the WRAP is the flex item (the box you see); the input
   fills it and takes the typing, while a plain display span layered over
   it mirrors the digit. The input's own text does not paint in this
   theme/browser combination, so the span — ordinary text — is the visible
   digit. The input's text is transparent (its broken glyphs stay hidden)
   but its caret stays white and visible, and the span ignores pointer
   events so taps still land on the input. */
.wzls-dialog .wzls-otp-digit-wrap {
  flex: 1 1 0;
  min-width: 0;
  flex-shrink: 0;
  height: 53px;
  position: relative;
}
.wzls-dialog .wzls-otp-digit {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid transparent;
  outline: none;
  border-radius: 13px;
  background: #0e141c;
  color: transparent;
  caret-color: #ffffff;
  -webkit-text-fill-color: transparent;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .8), inset -3px -3px 7px rgba(255, 255, 255, .035);
  transition: .35s;
  box-sizing: border-box;
}
.wzls-dialog .wzls-otp-digit:focus {
  border-color: #ff2d2d;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 45, 45, .25), 0 0 18px rgba(255, 45, 45, .28);
}
.wzls-dialog .wzls-otp-digit-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Options row / remember / link (demo) ---------- */
.wzls-dialog .options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
  font-size: 11px;
}
.wzls-dialog .remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #718091;
  cursor: pointer;
  margin: 0;
}
.wzls-dialog .remember input { accent-color: #ff2d2d; width: 14px; height: 14px; margin: 0; }
.wzls-dialog .link {
  color: #ff2d2d;
  cursor: pointer;
  text-decoration: none;
}
.wzls-dialog .link:hover { text-shadow: 0 0 8px #ff2d2d; }

/* ---------- Main button (demo .main-btn) ---------- */
.wzls-btn {
  width: 100%;
  height: 53px;
  position: relative;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  overflow: hidden;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1.5px;
  background: linear-gradient(120deg, #b30000, #ff2d2d);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 45, 45, .25);
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.wzls-btn::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 150%;
  top: -25%;
  left: -100px;
  background: rgba(255, 255, 255, .28);
  transform: rotate(20deg);
  transition: .55s;
}
.wzls-btn:hover::before { left: 120%; }
.wzls-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .75), 0 0 35px rgba(255, 45, 45, .65);
}
.wzls-btn:active { transform: translateY(2px); box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .4); }
.wzls-btn:disabled,
.wzls-btn.wzls-loading { opacity: .65; cursor: wait; transform: none; animation: none; }

/* Lock the red gradient + white text on EVERY solid button against the
   theme's button override (it was painting buttons white with dark text —
   the forgot/reset buttons were already locked this way, which is why
   SEND RESET LINK was white while SIGN IN was dark). */
.wzls-dialog .wzls-btn:not(.wzls-btn-ghost),
.wzls-page-reset .wzls-btn:not(.wzls-btn-ghost),
.wzls-inline .wzls-btn:not(.wzls-btn-ghost) {
  background: linear-gradient(120deg, #b30000, #ff2d2d) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 45, 45, .25) !important;
}

/* Ghost button (Send OTP). */
.wzls-btn.wzls-btn-ghost {
  background: transparent;
  color: #ff2d2d;
  border: 1px solid rgba(255, 45, 45, .45);
  box-shadow: none;
  animation: none;
  font-size: 12px;
  letter-spacing: 1px;
}
.wzls-btn.wzls-btn-ghost:hover {
  box-shadow: 0 0 15px rgba(255, 45, 45, .25);
  transform: translateY(-2px);
}
.wzls-btn.wzls-btn-ghost:disabled { opacity: .5; cursor: wait; transform: none; }

/* Secondary button (My Account inline box). */
.wzls-btn.wzls-btn-secondary {
  background: #10161e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .7), -3px -3px 7px rgba(255, 255, 255, .03);
  animation: none;
}
.wzls-btn.wzls-btn-secondary:hover {
  color: #ff2d2d;
  box-shadow: 0 0 15px rgba(255, 45, 45, .2), 5px 5px 10px rgba(0, 0, 0, .7);
}

/* ---------- Divider / social / switch text (demo) ---------- */
.wzls-dialog .divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: #566272;
  font-size: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.wzls-dialog .divider::before,
.wzls-dialog .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #293541, transparent);
}
/* Social login: full-width brand buttons, stacked (the "Continue with …"
   labels are too long to sit side by side). Google is Google's own style
   (white, coloured G, dark text); Facebook is Facebook blue with a white f. */
.wzls-dialog .social { display: flex; flex-direction: column; gap: 10px; }
.wzls-dialog .social a {
  flex: none;
  width: 100%;
  height: 48px;
  border-radius: 11px;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
}
.wzls-dialog .social a .wzls-social-logo { width: 20px; height: 20px; flex-shrink: 0; }
.wzls-dialog .social a[data-provider="google"] {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.wzls-dialog .social a[data-provider="google"]:hover {
  background: #f8f9fa;
  color: #1f1f1f;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.wzls-dialog .social a[data-provider="facebook"] {
  background: #1877f2;
  color: #ffffff;
  border: 1px solid #1877f2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.wzls-dialog .social a[data-provider="facebook"]:hover {
  background: #166fe5;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.wzls-dialog .switch-text {
  text-align: center;
  /* Pushed to the bottom of the face (demo puts it last); 22px of space
     above it keeps the demo's spacing when the face is taller. */
  margin-top: auto;
  padding-top: 20px;
  color: #697788;
  font-size: 12px;
}
.wzls-dialog .switch-btn {
  color: #ff2d2d;
  cursor: pointer;
  margin-left: 5px;
  font-weight: bold;
  transition: .3s;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.wzls-dialog .switch-btn:hover { text-shadow: 0 0 10px #ff2d2d; }

/* ---------- Message area (demo .message) ----------
   Errors/success show as a proper alert box so they are easy to read. */
.wzls-msg {
  text-align: center;
  margin-top: 16px;
  min-height: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  word-break: break-word;
}
.wzls-msg.wzls-err {
  color: #ffd7db;
  background: rgba(255, 45, 45, .14);
  border: 1px solid rgba(255, 45, 45, .5);
  border-radius: 10px;
  padding: 10px 12px;
}
.wzls-msg.wzls-err::before { content: "\26A0  "; }
.wzls-msg.wzls-ok {
  color: #c8ffe9;
  background: rgba(0, 255, 179, .10);
  border: 1px solid rgba(0, 255, 179, .4);
  border-radius: 10px;
  padding: 10px 12px;
}

/* Turnstile widget sits inside a field; keep it from overflowing. */
.wzls-dialog .wzls-turnstile { overflow: hidden; }
.wzls-dialog .wzls-turnstile .cf-turnstile { transform-origin: left top; }

/* ==========================================================================
   MY ACCOUNT INLINE BOX
   ========================================================================== */
.wzls-inline {
  background: linear-gradient(145deg, #171e27, #0a0e14);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  max-width: 460px;
  margin: 0 auto 24px;
  color: #ffffff;
}
/* The theme was overriding this heading dark-on-dark. Stronger selector. */
body .wzls-inline h3 {
  color: #ffffff !important;
  margin: 0 0 6px;
  font-size: 20px;
}
body .wzls-inline p {
  color: #9fb3c8;
  margin: 0 0 16px;
  font-size: 14px;
}
.wzls-inline .wzls-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wzls-inline .wzls-actions .wzls-btn { margin: 0; }
.wzls-inline .wzls-inline-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: #ff2d2d;
  text-decoration: none;
  font-size: 13px;
}
.wzls-inline .wzls-inline-link:hover { text-shadow: 0 0 8px #ff2d2d; }

/* Logged-in notice used by the shortcodes. */
.wzls-already {
  text-align: center;
  color: #9fb3c8;
  font-size: 14px;
  padding: 24px 16px;
}
.wzls-already a { color: #ff2d2d; text-decoration: none; }

/* ==========================================================================
   DEDICATED /login/ PAGE — same card, inline (no close button).
   ========================================================================== */
.wzls-login-page {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #3b1717, transparent 30%),
              radial-gradient(circle at 80% 80%, #3d1616, transparent 30%),
              #070a0f;
  padding: 56px 16px;
  overflow: hidden;
  min-height: 70vh;
}
.wzls-login-page .wzls-center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 430px;
  margin: 0 auto;
}
/* Logged-in state on /login/: same card, message + action button. */
.wzls-login-page .wzls-dialog .wzls-actions { margin-top: 16px; }

/* My Account page (logged out): the same card, inline, no close button. */
.wzls-myaccount { position: relative; padding: 24px 0; }
.wzls-myaccount .wzls-center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 430px;
  margin: 0 auto;
}
.wzls-myaccount .wzls-dialog .wzls-close { display: none; }

/* Full-page login (/login/): standalone document, no theme chrome.
   The card fills the viewport and is centred; the page itself scrolls,
   never the card's inner content, so the logo can never be scrolled
   out of the card. */
body.wzls-fullpage { margin: 0; background: #070a0f; }
body.wzls-fullpage .wzls-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
body.wzls-fullpage .wzls-login-page .wzls-center { margin: 0; }

/* Full-page login: a way back home (the page has no header/footer).
   A single X button top-right. */
.wzls-login-page .wzls-home-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
.wzls-login-page .wzls-home-close:hover { background: rgba(255, 45, 45, .3); }

/* Inline / full-page cards: the page scrolls, not the card's inner
   content. (The popup keeps its inner scroll — it is a fixed overlay.) */
.wzls-login-page .wzls-dialog .card-inner,
.wzls-myaccount .wzls-dialog .card-inner { overflow: visible; }

/* Site footer: the "We Accept Payments" heading was cyan — make it the
   site's red so the footer matches the theme. */
.rb-payments-box h3 { color: #ff2d2d !important; }

/* My Account page: hide the account-only icon boxes for logged-out visitors.
   The row is hand-built Elementor content (page 6268), not WooCommerce nav —
   each item is a column with a stable Elementor ID.
   NOTE: the old selector used body.logged-out, but WordPress core never adds
   a logged-out class — body_class() only adds logged-in when signed in — so
   the rule never matched and guests kept seeing Downloads / Edit Details /
   Log Out (v1.5.3 live check failed on exactly this). body:not(.logged-in)
   is the correct guest selector. */
body:not(.logged-in) .elementor-element-c9c1dd4,
body:not(.logged-in) .elementor-element-d94a51c,
body:not(.logged-in) .elementor-element-ef40325 { display: none !important; }

/* ==========================================================================
   RESET PASSWORD PAGE — same card (static face, in normal flow).
   ========================================================================== */
.wzls-page-reset {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #3b1717, transparent 30%),
              radial-gradient(circle at 80% 80%, #3d1616, transparent 30%),
              #070a0f;
  padding: 56px 16px;
  overflow: hidden;
  min-height: 70vh;
}
.wzls-page-reset .wzls-center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 430px;
  margin: 0 auto;
}
.wzls-page-reset .wzls-dialog { position: relative; }
.wzls-page-reset .wzls-actions { margin-top: 16px; }
/* Reset form fields: demo input look, static labels above the input. */
.wzls-page-reset .wzls-field { margin-bottom: 19px; position: relative; }
.wzls-page-reset .wzls-field label {
  display: block;
  font-size: 12px;
  color: #667384;
  margin-bottom: 6px;
}
.wzls-page-reset .wzls-field input {
  width: 100%;
  height: 53px;
  border: 1px solid transparent;
  outline: none;
  border-radius: 13px;
  padding: 0 18px;
  background: #0e141c;
  color: #ffffff;
  font-size: 14px;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .8), inset -3px -3px 7px rgba(255, 255, 255, .035);
  transition: .35s;
  box-sizing: border-box;
}
.wzls-page-reset .wzls-field input:focus {
  border-color: #ff2d2d;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 45, 45, .25), 0 0 18px rgba(255, 45, 45, .28);
}
.wzls-page-reset .wzls-field .eye {
  position: absolute;
  right: 3px;
  top: 25px;
  padding: 14px;
  color: #657385;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: .3s;
  user-select: none;
  -webkit-user-select: none;
}
.wzls-page-reset .wzls-field .eye:hover { color: #ff2d2d; text-shadow: 0 0 8px #ff2d2d; }
.wzls-page-reset .wzls-field input[type="password"] { padding-right: 52px; }

/* ==========================================================================
   MOBILE — demo's own breakpoints, extended for the plugin's rows.
   ========================================================================== */
@media (max-width: 500px) {
  /* Demo: card 620px tall, inner padding 32px 20px. (JS re-syncs the
     dialog to the active face's real height; 620px is the pre-JS default.) */
  .wzls-dialog { height: 620px; }
  .wzls-dialog .card-inner { padding: 32px 20px; }
  .wzls-dialog .title { font-size: 26px; }
  .wzls-dialog .social { gap: 8px; }
  .wzls-dialog .social a { font-size: 14px; height: 48px; }

  /* Side-by-side rows stack vertically so nothing is cramped. */
  .wzls-dialog .wzls-row:not(.wzls-otp-row) { flex-direction: column; align-items: stretch; }
  .wzls-dialog .wzls-row:not(.wzls-otp-row) .field { flex: 1 1 auto; width: 100%; }
  .wzls-dialog .wzls-row .wzls-cc { flex: 1 1 auto; max-width: none; }

  /* OTP row: all 6 boxes fit a 360px screen (flex:1, min-width:0,
     48px tall); the Send OTP button drops to a full-width row below so
     it stays visible and tappable instead of squeezing the boxes. */
  .wzls-dialog .wzls-otp-row { flex-wrap: wrap; }
  .wzls-dialog .wzls-otp-row .wzls-otp-field { flex: 1 1 100%; max-width: none; }
  .wzls-dialog .wzls-otp-row .wzls-otp-send { flex: 1 1 100%; max-width: none; }
  .wzls-dialog .wzls-otp-digit-wrap { height: 48px; }
  .wzls-dialog .wzls-otp-digit { font-size: 18px; }
  .wzls-dialog .wzls-otp-digit-display { font-size: 18px; }
  .wzls-dialog .wzls-otp-send .wzls-btn { height: 48px; }

  /* Tap targets stay >= 44px. Fields/buttons are already 53px. */
  .wzls-dialog .field input,
  .wzls-dialog .field select { min-height: 48px; }
  .wzls-btn { min-height: 48px; }

  /* /login/ page: tighter padding, no horizontal overflow. */
  .wzls-login-page { padding: 24px 12px; overflow-x: hidden; }
  .wzls-page-reset { padding: 24px 12px; overflow-x: hidden; }
}

/* Respect reduced motion: stop the arcs, orbs and button shimmer. */
@media (prefers-reduced-motion: reduce) {
  .wzls-dialog .card-face::before,
  #wzls-modal::before, #wzls-modal::after,
  .wzls-login-page::before, .wzls-login-page::after,
  .wzls-dialog .logo,
  .wzls-btn { animation: none !important; }
}
