﻿/* 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-radius-lg: 18px;
  --pz-shadow: 0 24px 48px -12px rgba(20, 61, 105, 0.12), 0 8px 20px -8px rgba(15, 23, 42, 0.08);
  --pz-shadow-lg: 0 28px 56px -24px rgba(20, 61, 105, 0.18);
  --pz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  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(0, 136, 206, 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;
}

body.pz-auth .pz-auth-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.75rem;
}

body.pz-auth .pz-auth-hero__stat {
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

body.pz-auth .pz-auth-hero__stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

body.pz-auth .pz-auth-hero__stat span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.88;
}

/* Form panel */
body.pz-auth .pz-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 136, 206, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef6fc 100%);
}

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-form--register {
  max-width: 640px;
}

body.pz-auth .pz-auth-step {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pz-brand);
  margin-bottom: 0.35rem;
}

/* Account type cards (registration) */
body.pz-auth .pz-account-type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body.pz-auth .pz-account-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  height: 100%;
  padding: 0.85rem 0.9rem 0.9rem;
  border: 1.5px solid var(--pz-border);
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.12s;
  margin: 0;
}

body.pz-auth .pz-account-type-card:hover {
  border-color: #cbd5e1;
  background: #fff;
}

body.pz-auth .pz-account-type-card.is-selected,
body.pz-auth .pz-account-type-card:has(.pz-account-type-card__input:checked) {
  border-color: var(--pz-brand);
  background: var(--pz-brand-light);
  box-shadow: 0 0 0 3px rgba(0, 136, 206, 0.12);
}

body.pz-auth .pz-account-type-card__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

body.pz-auth .pz-account-type-card__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--pz-border);
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

body.pz-auth .pz-account-type-card.is-selected .pz-account-type-card__icon,
body.pz-auth .pz-account-type-card:has(.pz-account-type-card__input:checked) .pz-account-type-card__icon {
  background: var(--pz-brand);
  border-color: var(--pz-brand);
  color: #fff;
}

body.pz-auth .pz-account-type-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 1.25rem;
}

body.pz-auth .pz-account-type-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pz-ink);
  line-height: 1.3;
}

body.pz-auth .pz-account-type-card__desc {
  font-size: 0.76rem;
  color: var(--pz-muted);
  line-height: 1.4;
}

body.pz-auth .pz-account-type-card__check {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid var(--pz-border);
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

body.pz-auth .pz-account-type-card.is-selected .pz-account-type-card__check,
body.pz-auth .pz-account-type-card:has(.pz-account-type-card__input:checked) .pz-account-type-card__check {
  background: var(--pz-brand);
  border-color: var(--pz-brand);
  color: #fff;
}

/* Onboarding wizard */
body.pz-auth .pz-auth-wrap--onboarding {
  grid-template-columns: 1fr;
}

body.pz-auth .pz-platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pz-auth .pz-platform-pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--pz-border);
  border-radius: 999px;
  background: #f8fafc;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

body.pz-auth .pz-platform-pill:hover {
  background: #fff;
  border-color: #cbd5e1;
}

body.pz-auth .pz-platform-pill.is-selected,
body.pz-auth .pz-platform-pill:has(.pz-platform-pill__input:checked) {
  border-color: var(--pz-brand);
  background: var(--pz-brand-light);
  color: var(--pz-brand-dark);
}

body.pz-auth .pz-platform-pill__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.pz-auth .pz-onboarding-type-block {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--pz-border);
  background: #f8fafc;
}

body.pz-auth .pz-auth-card {
  background: var(--pz-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--pz-radius-lg);
  box-shadow: var(--pz-shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

body.pz-auth .pz-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pz-brand-dark), var(--pz-brand), var(--pz-brand-mid));
}

body.pz-auth .pz-auth-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body.pz-auth .pz-auth-card__head .pz-auth-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

body.pz-auth .pz-auth-form-fields {
  margin-top: 0.25rem;
}

body.pz-auth .pz-auth-input-wrap {
  position: relative;
}

body.pz-auth .pz-auth-input-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

body.pz-auth .pz-auth-input-wrap .form-control {
  padding-left: 2.45rem;
}

body.pz-auth .pz-auth-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

body.pz-auth .pz-auth-panel__top .pz-auth-logo {
  margin-bottom: 0;
}

body.pz-auth .pz-auth-lang {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--pz-border);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
}

body.pz-auth .pz-auth-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pz-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

body.pz-auth .pz-auth-lang__btn img {
  border-radius: 2px;
  object-fit: cover;
}

body.pz-auth .pz-auth-lang__btn:hover {
  color: var(--pz-ink);
  background: #f8fafc;
}

body.pz-auth .pz-auth-lang__btn.is-active {
  color: var(--pz-brand-dark);
  background: var(--pz-brand-light);
  box-shadow: inset 0 0 0 1px rgba(0, 136, 206, 0.18);
}

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), #cce9f8);
  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 .pz-auth-flag-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pz-auth .pz-auth-flag-pick {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

body.pz-auth .pz-auth-flag-pick__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.pz-auth .pz-auth-flag-pick__content {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--pz-border);
  border-radius: 999px;
  background: #f8fafc;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

body.pz-auth .pz-auth-flag-pick:hover .pz-auth-flag-pick__content {
  background: #fff;
  border-color: #cbd5e1;
}

body.pz-auth .pz-auth-flag-pick:has(.pz-auth-flag-pick__input:checked) .pz-auth-flag-pick__content {
  border-color: var(--pz-brand);
  background: var(--pz-brand-light);
  color: var(--pz-brand-dark);
}

body.pz-auth .pz-auth-flag-pick__content img {
  flex-shrink: 0;
  border-radius: 2px;
}

body.pz-auth .pz-auth-phone-field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

body.pz-auth .pz-auth-phone-field__prefix {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--pz-border);
  border-radius: 11px;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

body.pz-auth .pz-auth-phone-field__prefix img {
  border-radius: 2px;
}

body.pz-auth .pz-auth-phone-field .form-control {
  flex: 1;
  min-width: 0;
}

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-dark) 0%, var(--pz-brand) 55%, var(--pz-brand-mid) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(0, 136, 206, 0.55);
  transition: transform 0.15s var(--pz-ease), box-shadow 0.15s, filter 0.15s;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

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;
  }
}

body.pz-auth .pz-auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--pz-border);
}

body.pz-auth .pz-auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pz-muted);
}

body.pz-auth .pz-auth-trust i {
  color: var(--pz-brand);
  font-size: 0.68rem;
}

body.pz-auth .pz-auth-hero__features li i {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  body.pz-auth .btn-pz {
    transition: none;
  }
}

