/**
 * CodingPlanet auth pages — matrix energy background (shared with homepage hero).
 */
html.cpn-auth-energy,
html.cpn-auth-energy body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

html.cpn-auth-energy body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  color: #e5e7eb;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(24, 180, 255, 0.12), transparent 62%),
    radial-gradient(700px 420px at 85% 15%, rgba(0, 255, 136, 0.08), transparent 60%),
    #0b1020;
}

html.cpn-auth-energy #cpn-auth-matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  filter: blur(0.3px) contrast(1.05);
  pointer-events: none;
}

html.cpn-auth-energy .cpn-auth-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(transparent 23px, rgba(255, 255, 255, 0.04) 24px),
    linear-gradient(90deg, transparent 23px, rgba(255, 255, 255, 0.04) 24px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

html.cpn-auth-energy .cpn-auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

html.cpn-auth-energy .cpn-auth-brand {
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #f8fafc;
}

html.cpn-auth-energy .cpn-auth-brand span {
  color: #22d3ee;
}

html.cpn-auth-energy .login-box,
html.cpn-auth-energy .auth-wrapper {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 255, 136, 0.06) inset;
}

@media (max-width: 768px) {
  html.cpn-auth-energy #cpn-auth-matrix {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.cpn-auth-energy #cpn-auth-matrix {
    display: none !important;
  }
}
