/* Nexgen login / registration — overrides leftover Nextwebcraft blue UI */

body.ngx-auth-layout {
  background: var(--ngx-cream);
}

body.ngx-auth-layout .ngx-page--auth {
  width: min(1040px, calc(100% - 24px));
  padding: 36px 0 64px;
}

body.ngx-franchise-models.ngx-auth-layout .ngx-page--auth,
body.ngx-franchise-models .ngx-page.ngx-container {
  width: min(1280px, calc(100% - 24px));
  padding: 24px 0 48px;
}

body.ngx-auth-layout .ngx-prose--wide {
  max-width: none;
}

body.ngx-plugin-front .nwci-reg-page {
  --nwc-primary: var(--ngx-green);
  --nwc-light: #2f6f5b;
  --nwc-navy: var(--ngx-green-dark);
  --nwc-white: #fff;
  --nwc-bg: var(--ngx-cream);
  --nwc-text: var(--ngx-ink);
  --nwc-muted: var(--ngx-muted);
  max-width: none;
  margin: 0 auto;
  padding: 0;
  font-family: var(--ngx-sans);
}

body.ngx-plugin-front .nwci-login-page {
  max-width: 520px;
}

body.ngx-plugin-front .nwci-reg-bg { display: none; }

body.ngx-plugin-front .nwci-reg-card,
body.ngx-plugin-front .nwci-reg-card--login {
  max-width: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--ngx-line);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(12, 40, 33, 0.08);
  overflow: hidden;
  animation: none;
}

body.ngx-plugin-front .nwci-reg-hero {
  background: var(--ngx-green-dark) !important;
  padding: 32px 32px 28px !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(169, 204, 57, 0.35);
}

body.ngx-plugin-front .nwci-reg-logo-shell {
  display: none;
}

body.ngx-plugin-front .nwci-reg-tagline {
  font-family: var(--ngx-serif) !important;
  font-size: 2rem !important;
  line-height: 1.15 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  text-transform: none !important;
  margin: 0 0 8px !important;
}

body.ngx-plugin-front .nwci-reg-sub {
  color: var(--ngx-gold-soft) !important;
  font-size: 0.92rem !important;
  margin: 0 !important;
}

body.ngx-plugin-front .nwci-reg-body,
body.ngx-plugin-front .nwci-login-page .nwci-reg-body {
  padding: 40px 36px 36px !important;
  background: #fff;
  box-sizing: border-box;
}
body.ngx-plugin-front .nwci-field {
  margin: 0 0 16px !important;
  padding: 0 !important;
}

body.ngx-plugin-front .nwci-field label,
body.ngx-plugin-front .nwci-check-label {
  color: var(--ngx-muted) !important;
  font-family: var(--ngx-sans) !important;
}

body.ngx-plugin-front .nwci-field input,
body.ngx-plugin-front .nwci-pass-wrap input {
  border: 1px solid var(--ngx-line) !important;
  border-radius: 12px !important;
  background: var(--ngx-paper) !important;
  padding: 12px 14px !important;
}

body.ngx-plugin-front .nwci-field input:focus,
body.ngx-plugin-front .nwci-pass-wrap input:focus {
  border-color: var(--ngx-green) !important;
  outline: 2px solid rgba(18, 56, 46, 0.18) !important;
}

body.ngx-plugin-front .nwci-reg-submit,
body.ngx-plugin-front .nwci-btn-primary {
  background: var(--ngx-gold) !important;
  color: #163000 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
}

body.ngx-plugin-front .nwci-reg-submit:hover,
body.ngx-plugin-front .nwci-btn-primary:hover {
  background: #c9a65a !important;
  transform: none !important;
}

body.ngx-plugin-front .nwci-reg-footnote,
body.ngx-plugin-front .nwci-login-meta a,
body.ngx-plugin-front .nwci-link {
  color: var(--ngx-muted) !important;
}

body.ngx-plugin-front .nwci-reg-footnote a,
body.ngx-plugin-front .nwci-link {
  color: var(--ngx-green) !important;
  font-weight: 600;
}

body.ngx-plugin-front .nwci-error-box {
  background: #fff5f2 !important;
  border-left: 3px solid #9b1c1c !important;
  color: #9b1c1c !important;
}

/* Franchise / leftover inline login cards */
body.ngx-plugin-front .inst-login-wrap {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(12, 40, 33, 0.08);
  border: 1px solid var(--ngx-line);
  font-family: var(--ngx-sans) !important;
}
body.ngx-plugin-front .inst-login-header {
  background: var(--ngx-green-dark) !important;
  padding: 32px !important;
  text-align: left !important;
}
body.ngx-plugin-front .inst-login-header img { display: none !important; }
body.ngx-plugin-front .inst-login-header h2 {
  font-family: var(--ngx-serif) !important;
  font-size: 2rem !important;
  font-weight: 600 !important;
}
body.ngx-plugin-front .inst-login-header p { color: var(--ngx-gold-soft) !important; }
body.ngx-plugin-front .inst-login-body { padding: 32px !important; }
body.ngx-plugin-front .il-field input:focus { border-color: var(--ngx-green) !important; }
body.ngx-plugin-front .il-btn {
  background: var(--ngx-gold) !important;
  color: #163000 !important;
  border-radius: 999px !important;
}
body.ngx-plugin-front .il-secondary {
  border-color: var(--ngx-green) !important;
  color: var(--ngx-green) !important;
}
body.ngx-plugin-front .il-secondary:hover {
  background: var(--ngx-green) !important;
  color: #fff !important;
}
body.ngx-plugin-front .il-footer a { color: var(--ngx-green) !important; }
body.ngx-plugin-front .il-err {
  border-left-color: #9b1c1c !important;
}

@media (max-width: 768px) {
  body.ngx-auth-layout .ngx-page--auth {
    width: calc(100% - 12px);
    padding: 12px 0 28px;
  }
  body.ngx-plugin-front .nwci-login-page {
    max-width: none;
  }
  body.ngx-plugin-front .nwci-reg-card,
  body.ngx-plugin-front .nwci-reg-card--login {
    border-radius: 16px;
  }
  body.ngx-plugin-front .nwci-reg-hero {
    padding: 18px 16px 14px !important;
  }
  body.ngx-plugin-front .nwci-reg-tagline {
    font-size: 1.45rem !important;
  }
  body.ngx-plugin-front .nwci-reg-body,
  body.ngx-plugin-front .nwci-login-page .nwci-reg-body {
    padding: 14px 12px 16px !important;
  }
  body.ngx-plugin-front .nwci-reg-panel {
    padding: 14px 10px 6px !important;
  }
  body.ngx-plugin-front .inst-login-wrap {
    max-width: none;
  }
  body.ngx-plugin-front .inst-login-header {
    padding: 18px 16px !important;
  }
  body.ngx-plugin-front .inst-login-body {
    padding: 14px 12px !important;
  }
}

.ngx-footer--compact {
  background: #00255a;
  color: rgba(255,255,255,0.72);
  padding: 16px 0;
  font-size: 0.86rem;
}
.ngx-footer--compact a { color: var(--ngx-gold-soft); text-decoration: none; }

body.ngx-panel-layout .ngx-page {
  width: min(1400px, calc(100% - 24px));
  padding: 20px 0 40px;
}
body.ngx-panel-layout .ngx-prose--wide { max-width: none; }

.ngx-page__head { margin-bottom: 28px; }
.ngx-page__head h1 { margin: 0; }
