/* Neurovexa Auth — Adminator-style shell, NVX tokens */
.nvx-auth-page {
  --nvx-navy: #060722;
  --nvx-navy-2: #0a1228;
  --nvx-sky: #4297f9;
  --nvx-cyan: #3de0f5;
  --nvx-border: rgba(66, 151, 249, 0.28);
  --nvx-text: #f4f7ff;
  --nvx-muted: rgba(220, 230, 255, 0.72);
  --nvx-danger: #f87171;
  --nvx-warning: #fbbf24;
  --nvx-ok: #34d399;
  --nvx-radius: 14px;
  --nvx-font: Inter, "Segoe UI", system-ui, sans-serif;
  --nvx-ease: cubic-bezier(0.22, 1, 0.36, 1);

  margin: 0;
  min-height: 100vh;
  color-scheme: dark;
  font-family: var(--nvx-font);
  color: var(--nvx-text);
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(61, 224, 245, 0.1), transparent 55%),
    radial-gradient(700px 420px at 100% 100%, rgba(66, 151, 249, 0.14), transparent 50%),
    var(--nvx-navy);
}

.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 {
  display: none !important;
}

.nvx-auth-page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.nvx-auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.nvx-auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2.25rem 2.5rem;
  background:
    linear-gradient(160deg, rgba(10, 18, 40, 0.96), rgba(6, 7, 34, 0.98)),
    radial-gradient(500px 320px at 20% 80%, rgba(61, 224, 245, 0.12), transparent 60%);
  border-right: 1px solid var(--nvx-border);
  overflow: hidden;
}

.nvx-auth-aside::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 151, 249, 0.22), transparent 65%);
  pointer-events: none;
}

.nvx-auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nvx-auth-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nvx-auth-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nvx-auth-aside-body {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  margin: 3rem 0;
}

.nvx-auth-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--nvx-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nvx-auth-aside-body h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.nvx-auth-aside-body p {
  margin: 0;
  color: var(--nvx-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.nvx-auth-main {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem 2rem;
  background: rgba(8, 12, 32, 0.35);
}

.nvx-auth-main-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--nvx-muted);
}

.nvx-auth-main-top a {
  color: var(--nvx-cyan);
  text-decoration: none;
  font-weight: 600;
}

.nvx-auth-main-top a:hover {
  text-decoration: underline;
}

.nvx-auth-card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--nvx-border);
  border-radius: var(--nvx-radius);
  background: rgba(12, 18, 48, 0.88);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  animation: nvx-auth-in 0.45s var(--nvx-ease) both;
}

.nvx-auth-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.nvx-auth-card .nvx-auth-sub {
  margin: 0 0 1.4rem;
  color: var(--nvx-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.nvx-auth-field {
  margin-bottom: 1rem;
}

.nvx-auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.nvx-auth-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--nvx-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

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

.nvx-auth-field-row a {
  color: var(--nvx-cyan);
  font-size: 0.8rem;
  text-decoration: none;
}

.nvx-auth-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(66, 151, 249, 0.28);
  border-radius: 10px;
  background: rgba(6, 10, 28, 0.75);
  background-color: rgba(6, 10, 28, 0.75);
  color: var(--nvx-text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s var(--nvx-ease), box-shadow 0.2s var(--nvx-ease);
}

.nvx-auth-page .nvx-auth-card input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(66, 151, 249, 0.28) !important;
  border-radius: 10px !important;
  background: rgba(6, 10, 28, 0.75) !important;
  background-color: rgba(6, 10, 28, 0.75) !important;
  color: var(--nvx-text) !important;
  box-shadow: none !important;
}

.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 rgba(6, 10, 28, 0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(6, 10, 28, 0.95) inset !important;
  -webkit-text-fill-color: var(--nvx-text) !important;
  caret-color: var(--nvx-text);
  border: 1px solid rgba(66, 151, 249, 0.28) !important;
  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;
}

.nvx-auth-input:focus {
  border-color: rgba(61, 224, 245, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 224, 245, 0.15);
}

.nvx-auth-input::placeholder {
  color: rgba(180, 195, 230, 0.45);
}

.nvx-auth-pass {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.nvx-auth-pass .nvx-auth-input {
  padding-right: 2.75rem;
}

.nvx-auth-pass-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: var(--nvx-muted);
  cursor: pointer;
  padding: 0;
  margin: 0;
  min-height: 0;
  box-shadow: none !important;
  line-height: 1;
  font-size: 0.95rem;
}

.nvx-auth-pass-toggle:hover,
.nvx-auth-pass-toggle:focus {
  color: var(--nvx-cyan);
  background: rgba(61, 224, 245, 0.08) !important;
}

.nvx-auth-pass-toggle .fa-solid {
  pointer-events: none;
}

.nvx-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 1.15rem;
  color: var(--nvx-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  cursor: pointer;
}

.nvx-auth-check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--nvx-cyan);
  background: transparent;
  border: 1px solid rgba(66, 151, 249, 0.45);
}

.nvx-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(61, 224, 245, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(66, 151, 249, 0.95), rgba(61, 224, 245, 0.85));
  color: #061018;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s var(--nvx-ease), transform 0.15s var(--nvx-ease);
}

.nvx-auth-btn:hover {
  filter: brightness(1.05);
}

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

.nvx-auth-btn--ghost {
  background: transparent;
  color: var(--nvx-cyan);
  border-color: rgba(66, 151, 249, 0.35);
}

.nvx-auth-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.nvx-auth-alert--error {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.nvx-auth-alert--warning {
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

.nvx-auth-alert--success {
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

.nvx-auth-alert h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.nvx-auth-help {
  margin: 1.15rem 0 0;
  color: var(--nvx-muted);
  font-size: 0.84rem;
  text-align: center;
}

.nvx-auth-help a {
  color: var(--nvx-cyan);
  font-weight: 600;
  text-decoration: none;
}

.nvx-auth-help a:hover {
  text-decoration: underline;
}

.nvx-auth-hints {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(6, 10, 28, 0.55);
  border: 1px solid rgba(66, 151, 249, 0.16);
  color: var(--nvx-muted);
  font-size: 0.8rem;
}

.nvx-auth-hints p {
  margin: 0.2rem 0;
}

.nvx-auth-captcha {
  margin: 0.75rem 0 1rem;
}

.nvx-auth-main-bottom {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--nvx-muted);
  font-size: 0.8rem;
}

.nvx-auth-main-bottom a {
  color: var(--nvx-cyan);
  text-decoration: none;
  font-weight: 600;
}

.nvx-auth-site-footer {
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid var(--nvx-border);
  background: rgba(6, 7, 34, 0.94);
}

.nvx-auth-site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--nvx-muted);
}

.nvx-auth-site-footer-left {
  justify-self: start;
  white-space: nowrap;
}

.nvx-auth-site-footer-center {
  justify-self: center;
  color: rgba(61, 224, 245, 0.88);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nvx-auth-site-footer-right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nvx-auth-site-footer-right a {
  color: var(--nvx-cyan);
  text-decoration: none;
  font-weight: 500;
}

.nvx-auth-site-footer-right a:hover,
.nvx-auth-site-footer-right a:focus-visible {
  text-decoration: underline;
}

.nvx-auth-site-footer-sep {
  color: rgba(220, 230, 255, 0.35);
  user-select: none;
}

@keyframes nvx-auth-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .nvx-auth-aside {
    min-height: auto;
    padding: 1.4rem 1.35rem 1.1rem;
    border-right: 0;
    border-bottom: 1px solid var(--nvx-border);
  }

  .nvx-auth-aside-body {
    margin: 1.1rem 0 0.75rem;
  }

  .nvx-auth-aside-body h1 {
    font-size: 1.35rem;
  }

  .nvx-auth-site-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 1rem 1.15rem 1.15rem;
  }

  .nvx-auth-site-footer-left,
  .nvx-auth-site-footer-center,
  .nvx-auth-site-footer-right {
    justify-self: center;
    justify-content: center;
  }

  .nvx-auth-main {
    padding: 1.25rem 1.15rem 2rem;
  }

  .nvx-auth-card {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nvx-auth-card {
    animation: none;
  }
}
