/* Payzeno auth — modern merchant onboarding */

body.pz-auth {
  --pz-brand: #0088ce;
  --pz-brand-mid: #33a3d9;
  --pz-brand-dark: #143d69;
  --pz-brand-light: #e8f4fc;
  --pz-ink: #0f172a;
  --pz-muted: #64748b;
  --pz-border: #e2e8f0;
  --pz-surface: #ffffff;
  --pz-radius: 14px;
  --pz-shadow: 0 24px 48px -12px rgba(20, 61, 105, 0.12), 0 8px 20px -8px rgba(15, 23, 42, 0.08);
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 136, 206, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(0, 136, 206, 0.14), transparent 50%),
    linear-gradient(160deg, #eef6fc 0%, #e8f4fc 40%, #f8fafc 100%);
  color: var(--pz-ink);
  -webkit-font-smoothing: antialiased;
}

body.pz-auth .pz-auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (max-width: 991.98px) {
  body.pz-auth .pz-auth-wrap {
    grid-template-columns: 1fr;
  }
}

/* Hero panel */
body.pz-auth .pz-auth-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0a2540 0%, #143d69 28%, #0088ce 58%, #5bb8e8 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.pz-auth .pz-auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

body.pz-auth .pz-auth-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

body.pz-auth .pz-auth-hero__blob {
  position: absolute;
  width: 280px;
  height: 280px;
  left: -80px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

body.pz-auth .pz-auth-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}

body.pz-auth .pz-auth-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

body.pz-auth .pz-auth-hero p {
  opacity: 0.92;
  line-height: 1.65;
  font-size: 1.02rem;
  margin-bottom: 0;
}

body.pz-auth .pz-auth-hero__features {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.pz-auth .pz-auth-hero__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

body.pz-auth .pz-auth-hero__features i {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

body.pz-auth .pz-auth-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Form panel */
body.pz-auth .pz-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

body.pz-auth .pz-auth-panel--scroll {
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

body.pz-auth .pz-auth-form {
  width: 100%;
  max-width: 420px;
}

body.pz-auth .pz-auth-form--wide {
  max-width: 520px;
}

body.pz-auth .pz-auth-card {
  background: var(--pz-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: calc(var(--pz-radius) + 4px);
  box-shadow: var(--pz-shadow);
  padding: clamp(1.5rem, 4vw, 2rem);
}

body.pz-auth .pz-auth-logo {
  height: 36px;
  margin-bottom: 1.25rem;
}

body.pz-auth .pz-auth-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pz-brand-light), #d1fae5);
  color: var(--pz-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 136, 206, 0.15);
}

body.pz-auth .pz-auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  color: var(--pz-ink);
}

body.pz-auth .pz-auth-subtitle {
  color: var(--pz-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

body.pz-auth .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

body.pz-auth .form-control,
body.pz-auth .form-select {
  border-radius: 11px;
  border-color: var(--pz-border);
  padding: 0.62rem 0.85rem;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

body.pz-auth .form-control:hover,
body.pz-auth .form-select:hover {
  background: #fff;
}

body.pz-auth .form-control:focus,
body.pz-auth .form-select:focus {
  border-color: var(--pz-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 136, 206, 0.14);
}

body.pz-auth .btn-pz {
  background: linear-gradient(135deg, var(--pz-brand) 0%, var(--pz-brand-mid) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 11px;
  box-shadow: 0 10px 24px -8px rgba(0, 136, 206, 0.55);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

body.pz-auth .btn-pz:hover {
  color: #fff;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(0, 136, 206, 0.6);
}

body.pz-auth .btn-pz:active {
  transform: translateY(0);
}

body.pz-auth .btn-pz-ghost {
  background: transparent;
  border: none;
  color: var(--pz-brand);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem;
  width: 100%;
  border-radius: 10px;
  transition: background 0.15s;
}

body.pz-auth .btn-pz-ghost:hover {
  background: var(--pz-brand-light);
  color: var(--pz-brand-dark);
}

body.pz-auth .pz-auth-link {
  color: var(--pz-brand);
  font-weight: 600;
  text-decoration: none;
}

body.pz-auth .pz-auth-link:hover {
  color: var(--pz-brand-dark);
  text-decoration: underline;
}

body.pz-auth .alert {
  border-radius: 11px;
  border: none;
  font-size: 0.9rem;
}

body.pz-auth .alert-success {
  background: #e8f4fc;
  color: #143d69;
}

body.pz-auth .alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

/* OTP verification */
body.pz-auth .pz-otp-wrap {
  margin-bottom: 1.25rem;
}

body.pz-auth .pz-otp {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

body.pz-auth .pz-otp input {
  width: 2.85rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border: 2px solid var(--pz-border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--pz-ink);
  padding: 0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.1s;
}

body.pz-auth .pz-otp input:focus {
  outline: none;
  border-color: var(--pz-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 136, 206, 0.14);
  transform: translateY(-2px);
}

body.pz-auth .pz-otp input.filled {
  border-color: var(--pz-brand-mid);
  background: #fff;
}

body.pz-auth .pz-otp-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--pz-muted);
}

body.pz-auth .pz-resend-block {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pz-border);
}

body.pz-auth .pz-resend-block p {
  font-size: 0.85rem;
  color: var(--pz-muted);
  margin-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
  body.pz-auth .pz-auth-hero {
    display: none;
  }

  body.pz-auth .pz-auth-panel {
    min-height: 100vh;
  }

  body.pz-auth .pz-otp input {
    width: 2.5rem;
    height: 3rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  body.pz-auth .pz-otp {
    gap: 0.35rem;
  }

  body.pz-auth .pz-otp input {
    width: 2.2rem;
    height: 2.75rem;
    font-size: 1.1rem;
    border-radius: 10px;
  }
}
