/* Neurovexa Auth – Login, Registrierung, Passwort vergessen.
   Hintergrund ist das Bild der Website (Startseite). Links steht je Seite ein eigener Inhalt
   (Login: Vorschau des Kundencenters, Registrierung: Ablauf und Standortkarte, Passwort: Ablauf),
   rechts die Formularkarte mit den Sicherheits-Hinweisen im Fuß.
   Farben der Marke: Navy, Blau #4c8dff, Cyan #38c7e0, Petrol #1f8a9c. Kein Lila.
   Abstände im 4-px-Raster, Schrift IBM Plex (wie Website und Kundenbereich). */
.nvx-auth-page {
  --nvx-bg: #070b1a;
  --nvx-bg-2: #0a1024;
  --nvx-surface: #111a35;
  --nvx-raised: #182346;
  --nvx-line: rgba(160, 190, 255, 0.14);
  --nvx-line-strong: rgba(160, 190, 255, 0.26);
  --nvx-text: #f1f4fb;
  --nvx-text-2: #b4bed6;
  --nvx-muted: #8792ad;
  --nvx-accent: #4c8dff;
  --nvx-accent-hover: #6aa0ff;
  --nvx-on-accent: #061024;
  --nvx-link: #7fb0ff;
  --nvx-cyan: #38c7e0;
  --nvx-danger: #f0767a;
  --nvx-warning: #e2b34d;
  --nvx-ok: #4cc38a;
  --nvx-radius: 10px;
  --nvx-font: "IBM Plex Sans", Inter, "Segoe UI", system-ui, sans-serif;
  --nvx-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --nvx-ease: cubic-bezier(0.22, 1, 0.36, 1);

  margin: 0;
  min-height: calc(var(--nvx-vh, 1vh) * 100);
  color-scheme: dark;
  font-family: var(--nvx-font);
  color: var(--nvx-text);
  background: var(--nvx-bg);
}

.nvx-auth-page #preloader,
.nvx-auth-page .page-content,
.nvx-auth-page #page-topbar,
.nvx-auth-page .app-menu,
.nvx-auth-page .navbar-menu,
.nvx-auth-page .footer,
.nvx-auth-page .nvx-footer,
.nvx-auth-page .nvx-footer-section,
.nvx-auth-page #layout-wrapper,
.nvx-auth-page .main-content,
.nvx-auth-page .container-fluid {
  display: none !important;
}

/* —— Seite: Kopf, darunter Inhalt links und Formular rechts, Fuß —— */
.nvx-auth-page-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "head head"
    "aside main"
    "foot foot";
  column-gap: 64px;
  min-height: calc(var(--nvx-vh, 1vh) * 100);
  width: 100%;
  padding: 0 56px;
  font-family: var(--nvx-font);
}

.nvx-auth-page-wrap :focus-visible {
  outline: 2px solid var(--nvx-accent);
  outline-offset: 2px;
}

/* Hintergrundbild der Website, bleibt beim Scrollen stehen und treibt sehr langsam */
.nvx-auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0a1338;
}

.nvx-auth-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: nvx-auth-drift 40s ease-in-out infinite alternate;
}

/* dunkle Fläche über dem Bild, damit Text überall lesbar bleibt */
.nvx-auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 30, 0.38);
}

@keyframes nvx-auth-drift {
  from { transform: scale(1.04) translate3d(-1%, 0, 0); }
  to { transform: scale(1.12) translate3d(2%, -2%, 0); }
}

.nvx-auth-top {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0 12px;
}

.nvx-auth-brand-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 200px;
  object-fit: contain;
}

.nvx-auth-top-label {
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(241, 244, 251, 0.3);
  color: #d5dcee;
  font-size: 14px;
  line-height: 20px;
}

/* —— Formularkarte —— */
.nvx-auth-main {
  grid-area: main;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px 0;
}

.nvx-auth-card {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--nvx-line-strong);
  border-radius: 20px;
  background: var(--nvx-bg-2);
  box-shadow: 0 40px 80px -32px rgba(2, 5, 20, 0.85);
  overflow: hidden;
  animation: nvx-auth-settle 0.5s var(--nvx-ease) both;
}

.nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-card { max-width: 620px; }

.nvx-auth-card-body {
  container-type: inline-size;
  padding: 40px;
}

/* Symbol der Karte: eine Fläche in der Akzentfarbe */
.nvx-auth-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--nvx-accent);
  color: var(--nvx-on-accent);
  font-size: 18px;
}

.nvx-auth-main-top {
  margin-bottom: 24px;
  color: var(--nvx-text-2);
  font-size: 14px;
}

.nvx-auth-card h2 {
  margin: 0 0 8px;
  color: var(--nvx-text);
  font-family: var(--nvx-font);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.nvx-auth-card .nvx-auth-sub {
  margin: 0;
  color: var(--nvx-text-2);
  font-size: 15px;
  line-height: 24px;
}

.nvx-auth-card form { margin-top: 32px; }

/* Sicherheits-Hinweise im Fuß der Karte */
.nvx-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 16px 40px;
  border-top: 1px solid var(--nvx-line);
  background: var(--nvx-surface);
  list-style: none;
}

.nvx-auth-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nvx-text-2);
  font-size: 13px;
  line-height: 20px;
}

.nvx-auth-trust i { width: 16px; color: var(--nvx-ok); font-size: 13px; text-align: center; }
.nvx-auth-trust li + li i { color: var(--nvx-cyan); }

/* —— Felder —— */
.nvx-auth-fields-grid,
.nvx-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 16px;
  margin-bottom: 20px;
}

@container (min-width: 500px) {
  .nvx-auth-fields-grid,
  .nvx-auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.nvx-auth-field { margin-bottom: 20px; min-width: 0; }

.nvx-auth-fields-grid .nvx-auth-field,
.nvx-auth-grid .nvx-auth-field { margin-bottom: 0; }

.nvx-auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.nvx-auth-label {
  display: block;
  margin-bottom: 8px;
  color: var(--nvx-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.nvx-auth-label small { color: var(--nvx-muted); font-size: 13px; font-weight: 400; }

.nvx-auth-field-row .nvx-auth-label { margin-bottom: 0; }

.nvx-auth-page-wrap a { transition: color 0.15s var(--nvx-ease); }

.nvx-auth-field-row a,
.nvx-auth-check a,
.nvx-auth-help a,
.nvx-auth-alert a {
  color: var(--nvx-link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(127, 176, 255, 0.4);
  text-underline-offset: 3px;
}

.nvx-auth-field-row a { font-size: 14px; line-height: 20px; }

.nvx-auth-field-row a:hover,
.nvx-auth-check a:hover,
.nvx-auth-help a:hover,
.nvx-auth-alert a:hover { color: #fff; text-decoration-color: currentColor; }

.nvx-auth-input-wrap { position: relative; }

.nvx-auth-page .nvx-auth-card .nvx-auth-input,
.nvx-auth-page .nvx-auth-card input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
.nvx-auth-page .nvx-auth-card select,
.nvx-auth-page .nvx-auth-card textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--nvx-line-strong) !important;
  border-radius: var(--nvx-radius) !important;
  background-color: var(--nvx-surface) !important;
  color: var(--nvx-text) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  outline: none;
  transition: border-color 0.15s var(--nvx-ease), background-color 0.15s var(--nvx-ease);
}

.nvx-auth-page .nvx-auth-card .nvx-auth-input:hover,
.nvx-auth-page .nvx-auth-card input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]):hover,
.nvx-auth-page .nvx-auth-card select:hover {
  border-color: rgba(238, 240, 245, 0.32) !important;
}

.nvx-auth-page .nvx-auth-card .nvx-auth-input:focus,
.nvx-auth-page .nvx-auth-card input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]):focus,
.nvx-auth-page .nvx-auth-card select:focus,
.nvx-auth-page .nvx-auth-card textarea:focus {
  border-color: var(--nvx-accent) !important;
  outline: 2px solid var(--nvx-accent);
  outline-offset: 1px;
}

.nvx-auth-page .nvx-auth-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a9b0c2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  text-overflow: ellipsis;
}

.nvx-auth-page[dir="rtl"] .nvx-auth-card select,
[dir="rtl"] .nvx-auth-page .nvx-auth-card select { background-position: left 12px center !important; }

.nvx-auth-page .nvx-auth-card input::placeholder { color: var(--nvx-muted); opacity: 1; }

.nvx-auth-page .nvx-auth-card input:-webkit-autofill,
.nvx-auth-page .nvx-auth-card input:-webkit-autofill:hover,
.nvx-auth-page .nvx-auth-card input:-webkit-autofill:focus,
.nvx-auth-page .nvx-auth-card input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #101830 inset !important;
  box-shadow: 0 0 0 1000px #101830 inset !important;
  -webkit-text-fill-color: var(--nvx-text) !important;
  caret-color: var(--nvx-text);
  transition: background-color 99999s ease-out 0s;
}

.nvx-auth-page .nvx-auth-card input[type="password"]::-ms-reveal,
.nvx-auth-page .nvx-auth-card input[type="password"]::-ms-clear { display: none; }

/* Passwortfeld: Platz für den Anzeigen-Knopf, damit er keinen Text überdeckt */
.nvx-auth-pass { position: relative; }

.nvx-auth-page .nvx-auth-card .nvx-auth-pass input { padding-inline-end: 48px !important; }

.nvx-auth-pass-toggle {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nvx-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s var(--nvx-ease), background-color 0.15s var(--nvx-ease);
}

.nvx-auth-pass-toggle:hover { background: var(--nvx-raised) !important; color: var(--nvx-text); }

/* —— Checkbox —— */
.nvx-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--nvx-text-2);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.nvx-auth-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(238, 240, 245, 0.32);
  border-radius: 4px;
  background-color: var(--nvx-surface);
  cursor: pointer;
  transition: border-color 0.15s var(--nvx-ease), background-color 0.15s var(--nvx-ease);
}

.nvx-auth-check input[type="checkbox"]:hover { border-color: var(--nvx-text-2); }

.nvx-auth-check input[type="checkbox"]:checked {
  border-color: var(--nvx-accent);
  background-color: var(--nvx-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23061024' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 5.2 4.2 8.4 11 1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* —— Knopf: eine Fläche in der Akzentfarbe, dunkle Schrift (Kontrast 6,6 : 1) —— */
.nvx-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--nvx-radius);
  background: var(--nvx-accent);
  color: var(--nvx-on-accent);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.15s var(--nvx-ease), transform 0.15s var(--nvx-ease);
}

.nvx-auth-btn:hover { background: var(--nvx-accent-hover); }
.nvx-auth-btn:active { transform: scale(0.985); }

/* —— Meldungen —— */
.nvx-auth-alert {
  margin: 24px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--nvx-line-strong);
  border-inline-start-width: 3px;
  border-radius: var(--nvx-radius);
  background: var(--nvx-surface);
  color: var(--nvx-text-2);
  font-size: 14px;
  line-height: 22px;
}

.nvx-auth-card form .nvx-auth-alert { margin: 0 0 24px; }

.nvx-auth-alert h4 {
  margin: 0 0 4px;
  color: var(--nvx-text);
  font-family: var(--nvx-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.nvx-auth-alert p { margin: 0 0 8px; }
.nvx-auth-alert strong { color: var(--nvx-text); font-weight: 500; }
.nvx-auth-alert--error { border-inline-start-color: var(--nvx-danger); }
.nvx-auth-alert--warning { border-inline-start-color: var(--nvx-warning); }
.nvx-auth-alert--info { border-inline-start-color: var(--nvx-accent); }

/* —— Zeile unter dem Formular —— */
.nvx-auth-help {
  margin: 24px 0 0;
  color: var(--nvx-text-2);
  font-size: 14px;
  line-height: 20px;
}

/* —— Passwortregeln: Stärke-Leiste aus drei Segmenten, darunter die Regeln zum Abhaken —— */
.nvx-auth-hints { margin: 0 0 24px; }
.nvx-auth-fields-grid + .nvx-auth-hints { margin-top: -8px; }

.nvx-auth-hints::before {
  --nvx-seg-off: rgba(238, 240, 245, 0.14);
  --nvx-seg-1: var(--nvx-seg-off);
  --nvx-seg-2: var(--nvx-seg-off);
  --nvx-seg-3: var(--nvx-seg-off);
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 2px;
  background:
    linear-gradient(var(--nvx-seg-1), var(--nvx-seg-1)) left / calc((100% - 8px) / 3) 100% no-repeat,
    linear-gradient(var(--nvx-seg-2), var(--nvx-seg-2)) center / calc((100% - 8px) / 3) 100% no-repeat,
    linear-gradient(var(--nvx-seg-3), var(--nvx-seg-3)) right / calc((100% - 8px) / 3) 100% no-repeat;
}

.nvx-auth-hints[data-score="1"]::before { --nvx-seg-1: var(--nvx-danger); }
.nvx-auth-hints[data-score="2"]::before { --nvx-seg-1: var(--nvx-warning); --nvx-seg-2: var(--nvx-warning); }
.nvx-auth-hints[data-score="3"]::before { --nvx-seg-1: var(--nvx-ok); --nvx-seg-2: var(--nvx-ok); --nvx-seg-3: var(--nvx-ok); }

.nvx-auth-hints ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nvx-auth-hints li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nvx-muted);
  font-size: 13px;
  line-height: 20px;
  transition: color 0.15s var(--nvx-ease);
}

.nvx-auth-hints li i { width: 12px; font-size: 11px; opacity: 0.45; }
.nvx-auth-hints li.is-ok { color: var(--nvx-text); }
.nvx-auth-hints li.is-ok i { color: var(--nvx-ok); opacity: 1; }

.nvx-auth-captcha { margin: 0 0 24px; }

/* —— Sign-In Integrations (App\Services\Security\SocialAuth::buttons) —— */
.nvx-auth-social { margin: 24px 0 0; }

.nvx-auth-social-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--nvx-muted);
  font-size: 13px;
  line-height: 20px;
}

.nvx-auth-social-or::before,
.nvx-auth-social-or::after { content: ""; flex: 1; height: 1px; background: var(--nvx-line); }

.nvx-auth-social-list { display: grid; gap: 8px; }

.nvx-auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--nvx-line-strong);
  border-radius: var(--nvx-radius);
  background: var(--nvx-surface);
  color: var(--nvx-text) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color 0.15s var(--nvx-ease), border-color 0.15s var(--nvx-ease);
}

.nvx-auth-social-btn:hover { border-color: rgba(238, 240, 245, 0.32); background: var(--nvx-raised); }
.nvx-auth-social-btn i { width: 18px; font-size: 16px; text-align: center; }

/* Regel offen: leerer Ring, erfüllt: grüner Haken */
.nvx-auth-hints li i {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  opacity: 1;
}

.nvx-auth-hints li:not(.is-ok) i::before { content: ""; }
.nvx-auth-hints li.is-ok i { border-color: var(--nvx-ok); }

.nvx-auth-page .nvx-auth-card input::placeholder { text-overflow: ellipsis; }
.nvx-auth-page .nvx-auth-card input:placeholder-shown { text-overflow: ellipsis; }

.nvx-auth-btn:hover { transform: translateY(-1px); }
.nvx-auth-btn:active { transform: scale(0.985); }

/* —— Linke Seite: je Seite eigener Inhalt, direkt auf dem Hintergrundbild —— */
.nvx-auth-aside {
  grid-area: aside;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 24px 0;
}

.nvx-auth-aside-body {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.nvx-auth-aside-body > * { animation: nvx-auth-rise 0.5s var(--nvx-ease) both; }
.nvx-auth-aside-body > :nth-child(2) { animation-delay: 0.06s; }
.nvx-auth-aside-body > :nth-child(3) { animation-delay: 0.12s; }
.nvx-auth-aside-body > :nth-child(4) { animation-delay: 0.18s; }
.nvx-auth-aside-body > :nth-child(5) { animation-delay: 0.24s; }

.nvx-auth-aside-body h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--nvx-font);
  font-size: clamp(36px, 3.4vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.nvx-auth-aside-text {
  margin: 0;
  max-width: 520px;
  color: #d5dcee;
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

/* —— Ablauf (Registrierung, Passwort vergessen) —— */
.nvx-auth-steps {
  display: grid;
  margin: 32px 0 0;
  padding: 8px 24px;
  border: 1px solid var(--nvx-line-strong);
  border-radius: 16px;
  background: var(--nvx-bg-2);
  box-shadow: 0 24px 48px -24px rgba(2, 5, 20, 0.8);
  list-style: none;
}

.nvx-auth-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.nvx-auth-step + .nvx-auth-step { border-top: 1px solid var(--nvx-line); }

/* Verbindung zwischen den Nummern */
.nvx-auth-step + .nvx-auth-step::before {
  content: "";
  position: absolute;
  top: -14px;
  inset-inline-start: 17px;
  width: 2px;
  height: 28px;
  border-radius: 1px;
  background: var(--nvx-line-strong);
}

.nvx-auth-step.is-done + .nvx-auth-step::before { background: var(--nvx-ok); }

.nvx-auth-step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--nvx-line-strong);
  border-radius: 50%;
  background: var(--nvx-surface);
  color: var(--nvx-text-2);
  font-family: var(--nvx-mono);
  font-size: 14px;
  font-weight: 500;
}

.nvx-auth-step.is-active .nvx-auth-step-no {
  border-color: var(--nvx-accent);
  background: var(--nvx-accent);
  color: var(--nvx-on-accent);
}

.nvx-auth-step.is-done .nvx-auth-step-no {
  border-color: var(--nvx-ok);
  background: rgba(76, 195, 138, 0.14);
  color: var(--nvx-ok);
  font-size: 13px;
}

.nvx-auth-step-copy { display: grid; gap: 2px; min-width: 0; }

.nvx-auth-step-copy strong {
  color: var(--nvx-text-2);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.nvx-auth-step.is-active .nvx-auth-step-copy strong,
.nvx-auth-step.is-done .nvx-auth-step-copy strong { color: var(--nvx-text); }

.nvx-auth-step-copy span { color: var(--nvx-muted); font-size: 14px; line-height: 20px; }
.nvx-auth-step.is-active .nvx-auth-step-copy span { color: var(--nvx-text-2); }

/* —— Vorschau des Kundencenters (Login): oben der Server mit Auslastung, darunter die weiteren Produkte —— */
.nvx-auth-preview {
  margin: 32px 0 0;
  border: 1px solid var(--nvx-line-strong);
  border-radius: 16px;
  background: var(--nvx-bg-2);
  box-shadow: 0 24px 48px -24px rgba(2, 5, 20, 0.8);
  overflow: hidden;
}

.nvx-auth-lead { padding: 4px 0 0; }

.nvx-auth-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.nvx-auth-rows { margin: 0; padding: 0; list-style: none; }

.nvx-auth-rows .nvx-auth-row {
  border-top: 1px solid var(--nvx-line);
  transition: background-color 0.15s var(--nvx-ease);
}

.nvx-auth-rows .nvx-auth-row:hover { background: var(--nvx-surface); }

.nvx-auth-row-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(76, 141, 255, 0.16);
  color: var(--nvx-link);
  font-size: 15px;
}

/* jede Produktzeile in einer Markenfarbe */
.nvx-auth-rows .nvx-auth-row:nth-child(1) .nvx-auth-row-icon { background: rgba(56, 199, 224, 0.14); color: var(--nvx-cyan); }
.nvx-auth-rows .nvx-auth-row:nth-child(2) .nvx-auth-row-icon { background: rgba(44, 197, 177, 0.14); color: #2cc5b1; }
.nvx-auth-rows .nvx-auth-row:nth-child(3) .nvx-auth-row-icon { background: rgba(76, 195, 138, 0.14); color: var(--nvx-ok); }

.nvx-auth-row-copy { display: grid; gap: 2px; min-width: 0; }

.nvx-auth-row-copy strong {
  color: var(--nvx-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.nvx-auth-row-copy span { color: var(--nvx-text-2); font-size: 14px; line-height: 20px; }

.nvx-auth-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(76, 195, 138, 0.14);
  color: #8fe0b8;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

.nvx-auth-status::before,
.nvx-auth-status::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nvx-ok);
}

/* Statuspunkt: ruhiger Puls, der Server „lebt“ */
.nvx-auth-status::after {
  position: absolute;
  top: 8px;
  inset-inline-start: 12px;
  animation: nvx-auth-ping 2.4s var(--nvx-ease) infinite;
}

/* Auslastung: drei Ringe, jede Farbe steht für einen Wert (Blau CPU, Cyan RAM, Petrol SSD) */
.nvx-auth-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 24px 24px;
  border: 1px solid var(--nvx-line);
  border-radius: 12px;
  background: var(--nvx-surface);
}

.nvx-auth-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.nvx-auth-meter + .nvx-auth-meter { border-inline-start: 1px solid var(--nvx-line); }
.nvx-auth-meter svg { flex-shrink: 0; }
.nvx-auth-meter-track { stroke: rgba(160, 190, 255, 0.16); }
.nvx-auth-meter--cpu .nvx-auth-meter-value { stroke: #4c8dff; }
.nvx-auth-meter--ram .nvx-auth-meter-value { stroke: #38c7e0; }
.nvx-auth-meter--ssd .nvx-auth-meter-value { stroke: #2cc5b1; }

/* Ringe: laufen beim Laden von 0 hoch (Skript), danach folgen sie neuen Werten weich */
.nvx-auth-meter.is-live .nvx-auth-meter-value { transition: stroke-dasharray 0.9s var(--nvx-ease); }

.nvx-auth-meter-copy { display: grid; min-width: 0; }

.nvx-auth-meter-copy span {
  color: var(--nvx-muted);
  font-family: var(--nvx-mono);
  font-size: 12px;
  line-height: 16px;
}

.nvx-auth-meter-copy strong {
  color: var(--nvx-text);
  font-family: var(--nvx-mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* —— Standortkarte (Registrierung): Karte, Positionen und Verbindungen wie auf der Startseite —— */
.nvx-auth-map {
  margin: 16px 0 0;
  border: 1px solid var(--nvx-line-strong);
  border-radius: 16px;
  background: var(--nvx-bg-2);
  box-shadow: 0 24px 48px -24px rgba(2, 5, 20, 0.8);
  overflow: hidden;
}

.nvx-auth-map svg { display: block; width: 100%; height: auto; }

/* die Karte der Website läuft rechts ins Violette: hier einfarbig in Blau */
.nvx-auth-map-img { opacity: 0.55; filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(3) brightness(1.1); }

.nvx-auth-arc,
.nvx-auth-arc-flow { fill: none; vector-effect: non-scaling-stroke; }

.nvx-auth-arc { stroke: rgba(76, 141, 255, 0.5); stroke-width: 1; }

.nvx-auth-arc-flow {
  stroke: var(--nvx-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 100;
  animation: nvx-auth-flow 4.5s linear infinite;
}

.nvx-auth-arc-flow:nth-of-type(4n) { animation-delay: -1.1s; }
.nvx-auth-arc-flow:nth-of-type(4n + 2) { animation-delay: -2.3s; }
.nvx-auth-arc-flow:nth-of-type(6n) { animation-delay: -3.4s; animation-duration: 6s; }

@keyframes nvx-auth-flow {
  to { stroke-dashoffset: 0; }
}

.nvx-auth-pin { fill: var(--nvx-cyan); stroke: var(--nvx-bg-2); stroke-width: 2; }

.nvx-auth-pin-ping {
  fill: var(--nvx-cyan);
  transform-box: fill-box;
  transform-origin: center;
  animation: nvx-auth-ping 2.8s var(--nvx-ease) infinite;
}

.nvx-auth-pin-ping:nth-of-type(3n) { animation-delay: -0.9s; }
.nvx-auth-pin-ping:nth-of-type(3n + 1) { animation-delay: -1.8s; }

.nvx-auth-map figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--nvx-line);
}

.nvx-auth-map-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nvx-auth-map-fact strong { color: var(--nvx-text); font-size: 16px; font-weight: 500; line-height: 24px; }
.nvx-auth-map-fact span { color: var(--nvx-text-2); font-size: 14px; line-height: 20px; }

.nvx-auth-map-codes {
  color: var(--nvx-link);
  font-family: var(--nvx-mono);
  font-size: 12px;
  line-height: 20px;
}

/* —— Fuß —— */
.nvx-auth-legal {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  padding: 12px 0 28px;
}

.nvx-auth-aside-copy { margin: 0; color: #a9b6d6; font-size: 13px; line-height: 20px; }

.nvx-auth-legal nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.nvx-auth-legal a {
  color: #d5dcee;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
}

.nvx-auth-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* —— Bewegung —— */
/* Einblenden nur über die Position: der Inhalt ist auch dann sichtbar, wenn der Browser Animationen anhält */
@keyframes nvx-auth-rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}

/* Die Formularkarte rückt nur ein Stück nach oben und bleibt dabei sichtbar: sie hängt nie an einer Animation */
@keyframes nvx-auth-settle {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@keyframes nvx-auth-ping {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

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

/* —— Tablet und Handy: Formular zuerst, darunter der Inhalt der Seite —— */
@media (max-width: 991.98px) {
  .nvx-auth-page-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "head"
      "main"
      "aside"
      "foot";
    padding: 0 24px;
  }

  .nvx-auth-top { padding: 24px 0 8px; }
  .nvx-auth-main { padding: 16px 0 24px; }
  .nvx-auth-aside { padding: 24px 0; }
  .nvx-auth-aside-body { max-width: 620px; }
  .nvx-auth-aside-body h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; }
  .nvx-auth-aside-text { font-size: 16px; line-height: 24px; }
  .nvx-auth-steps,
  .nvx-auth-preview { margin-top: 24px; }
}

@media (max-width: 575.98px) {
  .nvx-auth-page-wrap { padding: 0 16px; }
  .nvx-auth-brand-img { height: 36px; max-width: 160px; }
  .nvx-auth-card { border-radius: 16px; }
  .nvx-auth-card-body { padding: 24px 20px; }
  .nvx-auth-card h2 { font-size: 28px; line-height: 36px; }
  .nvx-auth-trust { padding: 16px 20px; }
  .nvx-auth-steps { padding: 4px 16px; }
  .nvx-auth-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; }
  .nvx-auth-row-icon { width: 36px; height: 36px; }
  .nvx-auth-meters { margin: 4px 16px 16px; }
  .nvx-auth-meter { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .nvx-auth-map figcaption { padding: 12px 16px; }
}

/* —— Registrierung auf dem Desktop: etwas dichter, damit die Karte auf 1080-px-Bildschirme passt —— */
@media (min-width: 992px) {
  .nvx-auth-main:has(.nvx-auth-fields-grid) { padding: 12px 0; }
  .nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-card-body { padding: 32px 40px; }
  .nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-card-icon { margin-bottom: 20px; }
  .nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-card form { margin-top: 24px; }
  .nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-fields-grid,
  .nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-grid { gap: 16px; margin-bottom: 16px; }
  .nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-hints,
  .nvx-auth-main:has(.nvx-auth-fields-grid) .nvx-auth-check { margin-bottom: 20px; }
  .nvx-auth-main:has(.nvx-auth-fields-grid) ~ .nvx-auth-legal { padding: 8px 0 20px; }
}

/* —— Sprachumschalter im Kopf (site/includes/nvx-lang-switch.php): Knopf im Stil der Auth-Seiten, ohne Lila und Leuchten —— */
.nvx-auth-lang { position: relative; z-index: 5; margin-inline-start: auto; }

.nvx-auth-lang .nvx-lang { font-family: var(--nvx-font); }

.nvx-auth-lang .nvx-lang-btn {
  height: 44px;
  border: 1px solid var(--nvx-line-strong);
  border-radius: var(--nvx-radius);
  background: var(--nvx-bg-2);
  box-shadow: none;
  font-weight: 500;
  transition: border-color 0.15s var(--nvx-ease), background-color 0.15s var(--nvx-ease);
}

.nvx-auth-lang .nvx-lang-btn:hover,
.nvx-auth-lang .nvx-lang[open] .nvx-lang-btn {
  border-color: rgba(160, 190, 255, 0.5);
  background: var(--nvx-surface);
  box-shadow: none;
}

.nvx-auth-lang .nvx-lang-btn:focus-visible {
  border-color: var(--nvx-accent);
  box-shadow: none;
  outline: 2px solid var(--nvx-accent);
  outline-offset: 2px;
}
