:root {
  --bg: #050505;
  --panel: rgba(13, 13, 13, 0.78);
  --panel-strong: rgba(18, 18, 18, 0.92);
  --text: #ffffff;
  --muted: #a3a3a3;
  --soft: #525252;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #d8ad4c;
  --gold-soft: rgba(216, 173, 76, 0.18);
  --danger: #ff7a7a;
  --success: #8ef0b3;
}

* {
  box-sizing: border-box;
}

body.pmw-auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(216, 173, 76, 0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(120, 147, 255, 0.1), transparent 26%),
    linear-gradient(180deg, #050505 0%, #090909 52%, #030303 100%);
  overflow-x: hidden;
}

body.pmw-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.42) 1px, transparent 1.5px),
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 34%);
  background-size: 140px 140px, 100% 100%;
  background-position: 0 0, center;
}

a {
  color: inherit;
  text-decoration: none;
}

.pmw-auth-nav {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.66);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.pmw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.pmw-brand-wordmark {
  width: 74px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(216, 173, 76, 0.18));
}

.pmw-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, var(--gold));
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.pmw-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pmw-nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pmw-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pmw-auth-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 58px auto 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.84fr);
  gap: 24px;
  align-items: stretch;
}

.pmw-hero-card,
.pmw-form-card,
.pmw-account-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.pmw-hero-card {
  min-height: 530px;
  padding: 46px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pmw-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(216, 173, 76, 0.16), transparent 38%),
    radial-gradient(circle at 76% 22%, rgba(255,255,255,0.1), transparent 26%);
  pointer-events: none;
}

.pmw-hero-card > *,
.pmw-form-card > *,
.pmw-account-card > * {
  position: relative;
}

.pmw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 900;
}

.pmw-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.pmw-hero-card h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.pmw-hero-card p,
.pmw-sub {
  color: var(--muted);
  line-height: 1.7;
}

.pmw-hero-card p {
  max-width: 650px;
  margin: 0;
  font-size: 1rem;
}

.pmw-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.pmw-stat,
.pmw-mini-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.pmw-stat {
  padding: 16px;
}

.pmw-stat strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.pmw-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pmw-form-card,
.pmw-account-card {
  padding: 34px;
  align-self: center;
  background: var(--panel-strong);
}

.pmw-form-card h2,
.pmw-account-card h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.pmw-sub {
  margin: 0 0 26px;
}

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

.pmw-field label {
  display: block;
  margin-bottom: 8px;
  color: #e8e8e8;
  font-size: 0.86rem;
  font-weight: 800;
}

.pmw-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pmw-field input:focus {
  border-color: rgba(216, 173, 76, 0.7);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.pmw-btn {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 18px;
  color: #111;
  background: #fff;
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pmw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(255, 255, 255, 0.16);
}

.pmw-btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  box-shadow: none;
}

.pmw-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pmw-btn-row .pmw-btn {
  width: auto;
  flex: 1;
  min-width: 160px;
  text-align: center;
}

.pmw-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pmw-message.error {
  color: var(--danger);
}

.pmw-message.success {
  color: var(--success);
}

.pmw-btn:disabled,
.pmw-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
}

.pmw-switch {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: center;
}

.pmw-switch a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(216, 173, 76, 0.55);
  text-underline-offset: 4px;
}

.pmw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 173, 76, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.pmw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.pmw-mini-card {
  padding: 18px;
}

.pmw-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pmw-mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pmw-premium-empty {
  margin: 22px 0;
  padding: 28px;
  border: 1px solid rgba(216, 173, 76, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 173, 76, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.035);
  text-align: center;
}

.pmw-premium-lock-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 173, 76, 0.38);
  border-radius: 16px;
  color: var(--gold);
  background: rgba(216, 173, 76, 0.12);
  font-weight: 900;
  box-shadow: 0 0 28px rgba(216, 173, 76, 0.12);
}

.pmw-premium-empty h3 {
  margin: 0 0 8px;
  color: #fff;
}

.pmw-premium-empty p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pmw-auth-shell {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .pmw-hero-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .pmw-auth-nav {
    width: calc(100% - 24px);
    border-radius: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .pmw-nav-links {
    width: 100%;
    gap: 4px;
  }

  .pmw-nav-links a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .pmw-auth-shell {
    width: calc(100% - 24px);
    margin-bottom: 52px;
  }

  .pmw-hero-card,
  .pmw-form-card,
  .pmw-account-card {
    border-radius: 22px;
    padding: 24px;
  }

  .pmw-hero-card h1 {
    font-size: 2.45rem;
  }

  .pmw-stats,
  .pmw-grid {
    grid-template-columns: 1fr;
  }
}
