/* =========================================================
   NEWEDGE AUTH PAGES
   Futuristic animated auth UI
   Theme-ready version
   ========================================================= */

.ned-auth-page,
.ned-auth-page * {
  box-sizing: border-box;
}

.ned-auth-page {
  --ned-auth-bg-1: #040814;
  --ned-auth-bg-2: #08101f;
  --ned-auth-bg-3: #0a1730;
  --ned-auth-text: #eaf4ff;
  --ned-auth-text-soft: rgba(234, 244, 255, 0.72);
  --ned-auth-text-faint: rgba(234, 244, 255, 0.52);
  --ned-auth-accent: #19d4ff;
  --ned-auth-accent-2: #3f8cff;
  --ned-auth-accent-3: #38f0bf;
  --ned-auth-danger: #ff6077;
  --ned-auth-success: #31f0b0;
  --ned-auth-border: rgba(106, 216, 255, 0.16);
  --ned-auth-border-strong: rgba(106, 216, 255, 0.28);
  --ned-auth-panel-top: rgba(255,255,255,0.10);
  --ned-auth-panel-bottom: rgba(255,255,255,0.045);
  --ned-auth-orb-a: rgba(25, 212, 255, 0.14);
  --ned-auth-orb-b: rgba(63, 140, 255, 0.12);
  --ned-auth-grid-line: rgba(255,255,255,0.035);
  --ned-auth-scan-line: rgba(25,212,255,0.08);
  --ned-auth-panel-glow: rgba(25,212,255,0.10);
  --ned-auth-button-text: #03101d;
  --ned-auth-feature-panel-bg: rgba(255,255,255,0.05);
  --ned-auth-feature-panel-border: rgba(106, 216, 255, 0.12);

  --ned-auth-shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.34);
  --ned-auth-shadow-md: 0 16px 40px rgba(0, 0, 0, 0.24);
  --ned-auth-radius-xxl: 30px;
  --ned-auth-radius-xl: 24px;
  --ned-auth-radius-lg: 20px;
  --ned-auth-radius-md: 16px;

  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  color: var(--ned-auth-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 28px 16px;
}

.ned-auth-page h1,
.ned-auth-page h2,
.ned-auth-page h3,
.ned-auth-page h4,
.ned-auth-page p,
.ned-auth-page span,
.ned-auth-page strong,
.ned-auth-page label,
.ned-auth-page input,
.ned-auth-page button,
.ned-auth-page a {
  margin: 0;
  font-family: inherit;
}

.ned-auth-page a {
  color: inherit;
  text-decoration: none;
}

.ned-auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--ned-auth-accent) 18%, transparent), transparent 26%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--ned-auth-accent-2) 16%, transparent), transparent 24%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--ned-auth-accent-3) 8%, transparent), transparent 22%),
    linear-gradient(180deg, var(--ned-auth-bg-1) 0%, var(--ned-auth-bg-2) 42%, var(--ned-auth-bg-3) 100%);
  z-index: 0;
}

.ned-auth-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.95;
}

.ned-auth-orb-a {
  width: 280px;
  height: 280px;
  top: -100px;
  right: -60px;
  background: var(--ned-auth-orb-a);
  animation: nedAuthFloatA 8s ease-in-out infinite alternate;
}

.ned-auth-orb-b {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: 60px;
  background: var(--ned-auth-orb-b);
  animation: nedAuthFloatB 9s ease-in-out infinite alternate;
}

.ned-auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ned-auth-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ned-auth-grid-line) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.65;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.88), rgba(0,0,0,0.22));
}

.ned-auth-scan {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 140%;
  height: 70px;
  background: linear-gradient(180deg, rgba(25,212,255,0), var(--ned-auth-scan-line), rgba(25,212,255,0));
  transform: rotate(-6deg);
  animation: nedAuthScan 7s linear infinite;
}

@keyframes nedAuthFloatA {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-10px, 18px, 0); }
}

@keyframes nedAuthFloatB {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(16px, -14px, 0); }
}

@keyframes nedAuthScan {
  0% { top: -20%; }
  100% { top: 120%; }
}

.ned-auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.ned-auth-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ned-auth-brand-mark,
.ned-auth-brand-image {
  width: 74px;
  height: 74px;
  border-radius: 22px;
}

.ned-auth-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ned-auth-accent), var(--ned-auth-accent-2));
  color: #04111e;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--ned-auth-accent) 22%, transparent);
}

.ned-auth-brand-image {
  object-fit: cover;
  display: block;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--ned-auth-accent) 18%, transparent);
  border: 1px solid var(--ned-auth-border);
  background: rgba(255,255,255,0.06);
}

.ned-auth-brand-kicker,
.ned-auth-mini {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--ned-auth-accent) 60%, white);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ned-auth-brand-copy h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  color: #ffffff;
  margin-bottom: 8px;
}

.ned-auth-brand-copy p {
  color: var(--ned-auth-text-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 760px;
}

.ned-auth-panel-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.ned-auth-panel,
.ned-auth-sidecard {
  position: relative;
  overflow: hidden;
  border-radius: var(--ned-auth-radius-xxl);
  background: linear-gradient(180deg, var(--ned-auth-panel-top), var(--ned-auth-panel-bottom));
  border: 1px solid var(--ned-auth-border);
  box-shadow: var(--ned-auth-shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ned-auth-panel {
  padding: 26px;
}

.ned-auth-panel::before,
.ned-auth-sidecard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 35%, transparent 60%, rgba(255,255,255,0.03));
  pointer-events: none;
}

.ned-auth-panel-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: var(--ned-auth-panel-glow);
  filter: blur(38px);
  pointer-events: none;
}

.ned-auth-card-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.ned-auth-card-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
  color: #ffffff;
  margin-bottom: 10px;
}

.ned-auth-card-head p {
  color: var(--ned-auth-text-soft);
  line-height: 1.6;
}

.ned-auth-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.ned-auth-form label {
  color: rgba(234, 244, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.ned-auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ned-auth-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ned-auth-form input:focus {
  border-color: var(--ned-auth-border-strong);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ned-auth-accent) 8%, transparent);
  transform: translateY(-1px);
}

.ned-auth-password-wrap {
  position: relative;
}

.ned-auth-password-wrap input {
  padding-right: 78px;
}

.ned-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 56px;
  height: 34px;
  border: 1px solid var(--ned-auth-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--ned-auth-text);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ned-auth-password-toggle:hover {
  background: rgba(255,255,255,0.10);
}

.ned-auth-password-toggle:active {
  transform: translateY(-50%) scale(0.97);
}

.ned-auth-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.ned-auth-inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--ned-auth-accent);
}

.ned-auth-inline-check span {
  color: var(--ned-auth-text-soft);
  font-size: 14px;
}

.ned-auth-submit {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 15px;
  color: var(--ned-auth-button-text);
  background: linear-gradient(135deg, var(--ned-auth-accent), var(--ned-auth-accent-2));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--ned-auth-accent) 24%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ned-auth-submit:hover {
  transform: translateY(-1px);
}

.ned-auth-submit:active {
  transform: scale(0.985);
}

.ned-auth-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.ned-auth-links a {
  color: color-mix(in srgb, var(--ned-auth-accent) 60%, white);
  font-weight: 700;
}

.ned-auth-links a:hover {
  color: #ffffff;
}

.ned-auth-alert {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--ned-auth-border);
  background: rgba(255,255,255,0.06);
}

.ned-auth-alert-error {
  border-color: color-mix(in srgb, var(--ned-auth-danger) 40%, transparent);
  color: #ffdbe2;
}

.ned-auth-alert-success {
  border-color: color-mix(in srgb, var(--ned-auth-success) 38%, transparent);
  color: #d6fff0;
}

.ned-auth-alert-line + .ned-auth-alert-line {
  margin-top: 6px;
}

.ned-auth-sidecard {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ned-auth-sidecard-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--ned-auth-accent) 60%, white);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ned-auth-sidecard h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 12px;
}

.ned-auth-sidecard p {
  color: var(--ned-auth-text-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}

.ned-auth-feature-list {
  display: grid;
  gap: 10px;
}

.ned-auth-feature-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ned-auth-feature-panel-bg);
  border: 1px solid var(--ned-auth-feature-panel-border);
  color: #ffffff;
  font-weight: 700;
}

.ned-auth-empty-state p {
  color: var(--ned-auth-text-soft);
  line-height: 1.7;
}

@media (min-width: 980px) {
  .ned-auth-panel-wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .ned-auth-page {
    padding: 18px 12px;
  }

  .ned-auth-shell {
    gap: 20px;
    min-height: calc(100vh - 36px);
  }

  .ned-auth-brand {
    align-items: flex-start;
  }

  .ned-auth-brand-mark,
  .ned-auth-brand-image {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .ned-auth-brand-mark {
    font-size: 26px;
  }

  .ned-auth-panel,
  .ned-auth-sidecard {
    border-radius: 22px;
  }

  .ned-auth-panel {
    padding: 20px;
  }

  .ned-auth-sidecard {
    padding: 20px;
  }

  .ned-auth-card-head h2 {
    font-size: 1.9rem;
  }

  .ned-auth-submit {
    min-height: 52px;
  }
}

/* =========================================================
   NEWEDGE AUTH — THEME WRAPPER FIX
   Keep auth layout centered, remove theme chrome/overflow
   ========================================================= */

body:has(.ned-auth-page),
html:has(.ned-auth-page) {
  background: #040814 !important;
  overflow-x: hidden !important;
}

body:has(.ned-auth-page) .entry-header,
body:has(.ned-auth-page) .entry-title,
body:has(.ned-auth-page) .page-title,
body:has(.ned-auth-page) .ast-single-entry-banner,
body:has(.ned-auth-page) .site-header,
body:has(.ned-auth-page) .ast-site-header-wrap,
body:has(.ned-auth-page) .main-header-bar,
body:has(.ned-auth-page) .site-footer,
body:has(.ned-auth-page) .site-primary-footer-wrap,
body:has(.ned-auth-page) .site-below-footer-wrap {
  display: none !important;
}

body:has(.ned-auth-page),
body:has(.ned-auth-page) .site,
body:has(.ned-auth-page) #page,
body:has(.ned-auth-page) .site-content,
body:has(.ned-auth-page) .content-area,
body:has(.ned-auth-page) .site-main,
body:has(.ned-auth-page) .entry-content,
body:has(.ned-auth-page) article,
body:has(.ned-auth-page) .post,
body:has(.ned-auth-page) .page,
body:has(.ned-auth-page) .ast-container,
body:has(.ned-auth-page) .ast-plain-container,
body:has(.ned-auth-page) .ast-separate-container,
body:has(.ned-auth-page) .ast-page-builder-template {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body:has(.ned-auth-page) .site-content,
body:has(.ned-auth-page) .content-area,
body:has(.ned-auth-page) .site-main,
body:has(.ned-auth-page) .entry-content,
body:has(.ned-auth-page) article,
body:has(.ned-auth-page) .post,
body:has(.ned-auth-page) .page,
body:has(.ned-auth-page) .ast-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.ned-auth-page) .ned-auth-page {
  position: relative;
  z-index: 5;
}

/* =========================================================
   CLIENT POLISH v1.4.2 — Larger Auth Page Fonts
   Makes login/register/reset wording easier to read without changing logic.
   ========================================================= */
.ned-auth-page {
  font-size: 17px;
}

.ned-auth-brand-kicker,
.ned-auth-mini,
.ned-auth-sidecard-kicker {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.ned-auth-brand-copy h1 {
  font-size: clamp(2.65rem, 5vw, 4.85rem) !important;
}

.ned-auth-brand-copy p,
.ned-auth-card-head p,
.ned-auth-sidecard p,
.ned-auth-empty-state p,
.ned-auth-alert,
.ned-auth-alert-line {
  font-size: 17px !important;
  line-height: 1.75 !important;
}

.ned-auth-card-head h2 {
  font-size: clamp(2.15rem, 3.6vw, 3.05rem) !important;
  line-height: 1.05 !important;
}

.ned-auth-sidecard h3 {
  font-size: clamp(1.9rem, 2.7vw, 2.7rem) !important;
  line-height: 1.12 !important;
}

.ned-auth-form {
  gap: 16px !important;
}

.ned-auth-form label {
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
}

.ned-auth-form input {
  min-height: 60px !important;
  font-size: 17px !important;
  padding: 16px 18px !important;
}

.ned-auth-password-wrap input {
  padding-right: 96px !important;
}

.ned-auth-password-toggle {
  min-width: 68px !important;
  height: 38px !important;
  font-size: 13px !important;
}

.ned-auth-inline-check span,
.ned-auth-links a,
.ned-auth-feature-item {
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.ned-auth-submit {
  min-height: 62px !important;
  font-size: 17px !important;
}

@media (max-width: 767px) {
  .ned-auth-page {
    font-size: 16px;
  }

  .ned-auth-brand-copy h1 {
    font-size: 2.7rem !important;
  }

  .ned-auth-card-head h2 {
    font-size: 2.25rem !important;
  }

  .ned-auth-sidecard h3 {
    font-size: 2rem !important;
  }

  .ned-auth-brand-copy p,
  .ned-auth-card-head p,
  .ned-auth-sidecard p,
  .ned-auth-empty-state p,
  .ned-auth-alert,
  .ned-auth-alert-line {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .ned-auth-form label {
    font-size: 15px !important;
  }

  .ned-auth-form input {
    min-height: 58px !important;
    font-size: 16px !important;
  }

  .ned-auth-submit {
    min-height: 60px !important;
    font-size: 16px !important;
  }
}
