:root {
  --bg-0: #040814;
  --bg-1: #071428;
  --cyan: #22d3ee;
  --cyan-2: #38bdf8;
  --blue: #2563eb;
  --text: #f8fbff;
  --muted: #93a4c3;
  --glass: rgba(10, 22, 44, 0.72);
  --line: rgba(148, 187, 255, 0.18);
  --ok: #34d399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body.pz-login {
  overflow-x: hidden;
}

.pz-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  isolation: isolate;
}

.pz-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(720px 480px at 88% 12%, rgba(37, 99, 235, 0.22), transparent 50%),
    radial-gradient(640px 420px at 70% 88%, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(180deg, #071226 0%, #040814 100%);
}

.pz-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 187, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 187, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 40% 40%, black 20%, transparent 78%);
  animation: gridDrift 28s linear infinite;
}

.pz-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.pz-orb.a {
  width: 280px; height: 280px; left: 8%; top: 14%;
  background: #22d3ee;
  animation: floatA 11s ease-in-out infinite;
}

.pz-orb.b {
  width: 340px; height: 340px; right: 6%; top: -8%;
  background: #2563eb;
  animation: floatB 13s ease-in-out infinite;
}

.pz-orb.c {
  width: 220px; height: 220px; right: 28%; bottom: 8%;
  background: #0ea5e9;
  animation: floatA 9s ease-in-out infinite reverse;
}

.pz-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pz-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.pz-copy {
  position: relative;
  max-width: 640px;
  padding-bottom: 20px;
}

.pz-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  animation: rise 0.8s ease both;
}

.pz-mark {
  width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
}

.pz-brand-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
}

.pz-brand-name span { color: #fff; }

.pz-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
  color: #9befff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: rise 0.9s ease 0.08s both;
}

.pz-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
  animation: pulse 1.8s ease infinite;
}

.pz-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 800;
  animation: rise 1s ease 0.12s both;
}

.pz-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #67e8f9, #38bdf8 45%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pz-copy p.lead {
  max-width: 460px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  animation: rise 1s ease 0.18s both;
}

.pz-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: rise 1s ease 0.24s both;
}

.pz-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #d7e4ff;
  font-size: 13px;
  font-weight: 600;
}

.pz-chip svg { opacity: 0.9; }

.pz-float-card {
  position: absolute;
  right: -8px;
  top: 58%;
  width: 236px;
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 32, 58, 0.94), rgba(8, 18, 36, 0.94));
  border: 1px solid rgba(148, 187, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: floatCard 5.5s ease-in-out infinite, rise 1s ease 0.3s both;
}

.pz-float-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9fb4d8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.pz-check {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(52, 211, 153, 0.16);
  color: var(--ok);
}

.pz-amount {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pz-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  animation: rise 1s ease 0.36s both;
}

.pz-feed-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148,187,255,0.1);
  font-size: 12px;
  color: #c5d4ee;
}

.pz-feed-item b { color: #fff; }
.pz-feed-item .ok { color: var(--ok); }

.pz-card {
  position: relative;
  padding: 34px 28px 28px;
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  background: linear-gradient(180deg, rgba(14, 28, 52, 0.86), rgba(8, 16, 32, 0.9));
  border: 1px solid rgba(168, 198, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
  animation: cardIn 0.85s cubic-bezier(.2,.8,.2,1) both;
}

.pz-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(56,189,248,.55), transparent 38%, transparent 62%, rgba(37,99,235,.4));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.pz-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7eeadf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pz-kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.pz-card h2 {
  margin: 10px 0 6px;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.pz-card .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.pz-field { margin-bottom: 16px; }

.pz-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #dce7fb;
}

.pz-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(241, 247, 255, 0.96);
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pz-control:focus-within {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.pz-control input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  height: 52px;
  font-size: 14px;
  color: #0b1220;
  font-family: inherit;
}

.pz-control svg { color: #64748b; flex: 0 0 auto; }

.pz-eye {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0 18px;
  font-size: 13px;
}

.pz-meta label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9d7ef;
  cursor: pointer;
}

.pz-meta a {
  color: #8bdfff;
  text-decoration: none;
  font-weight: 700;
}

.pz-meta a:hover { text-decoration: underline; }

.pz-submit {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb 40%, #0ea5e9 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.pz-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.28) 48%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.4s ease infinite;
}

.pz-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pz-submit:disabled { opacity: 0.7; cursor: wait; }

.pz-secure {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #8aa0c4;
  font-size: 12px;
}

.pz-secure strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9be7c8;
  font-weight: 700;
}

.pz-auth-icon {
  width: 48px;
  height: 48px;
  margin: 12px 0 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.pz-mask {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #c9d7ef;
  font-size: 13px;
}

.pz-otp-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb4d8;
  font-weight: 800;
}

.pz-otp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  box-sizing: border-box;
}

.pz-otp-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(148, 187, 255, 0.28);
  background: rgba(8, 16, 32, 0.85);
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  outline: none;
  box-sizing: border-box;
}

.pz-otp-input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.pz-resend, .pz-back {
  margin: 14px 0 0;
  text-align: center;
  color: #8aa0c4;
  font-size: 13px;
}

.pz-resend a, .pz-back a {
  color: #8bdfff;
  font-weight: 700;
  text-decoration: none;
}

.pz-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: #8aa0c4;
  font-size: 12px;
  text-align: center;
}

.pz-shell.center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.pz-shell.center .pz-card {
  width: min(420px, 100%);
  justify-self: center;
}

[hidden] { display: none !important; }

.pz-foot {
  position: absolute;
  left: 28px;
  bottom: 18px;
  color: #6d7f9e;
  font-size: 12px;
}

#otp { margin-top: 8px; }

#otp .otp-box,
#otp input[type="text"] {
  width: 46px;
  height: 46px;
  margin: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

#otp button,
#otv {
  margin-top: 10px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, 18px); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 22px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

@media (max-width: 980px) {
  .pz-stage { padding: 18px 16px; align-items: start; }
  .pz-shell { grid-template-columns: 1fr; gap: 18px; }
  .pz-copy { text-align: left; padding-bottom: 0; }
  .pz-copy h1 { font-size: 32px; }
  .pz-float-card { position: relative; right: auto; top: auto; margin-top: 12px; }
  .pz-card { max-width: 100%; width: 100%; justify-self: stretch; order: -1; }
  .pz-foot { position: static; margin-top: 12px; }
}
@media (max-width: 640px) {
  .pz-copy p.lead { font-size: 14px; }
  .pz-features { flex-wrap: wrap; }
  .pz-float-card { display: none; }
  .pz-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
