/* Auth pages — login & register (pixel-match new design). */

:root {
  --nh-auth-blue: #2b36b1;
  --nh-auth-purple: #9c27b0;
  --nh-auth-pink: #ff4b6b;
  --nh-auth-pink-soft: #ff3f81;
  --nh-auth-navy: #120b35;
  --nh-auth-navy-2: #241b5e;
  --nh-auth-muted: #6a7187;
  --nh-auth-line: #e3e7f0;
}

body:has(.nh-auth) {
  background: #fff;
}

body:has(.nh-auth) .scrollToTop,
body:has(.nh-auth) footer,
body:has(.nh-auth) .cookie,
body:has(.nh-auth) .preloader {
  display: none !important;
}

.nh-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: "Inter", "Segoe UI", sans-serif !important;
  color: #171c2f;
}

.nh-auth h1,
.nh-auth h2,
.nh-auth h3,
.nh-auth h4,
.nh-auth p,
.nh-auth a,
.nh-auth span,
.nh-auth label,
.nh-auth input,
.nh-auth button {
  font-family: "Inter", "Segoe UI", sans-serif !important;
}

/* Register: showcase left, form right */
.nh-auth-register .nh-auth-showcase { order: 1; }
.nh-auth-register .nh-auth-form-wrap { order: 2; }

/* Login: form left, showcase right */
.nh-auth-login .nh-auth-form-wrap { order: 1; }
.nh-auth-login .nh-auth-showcase { order: 2; }

/* ─── Showcase panel ─── */
.nh-auth-showcase {
  position: relative;
  background: linear-gradient(180deg, #0d0b2e 0%, #1a1250 45%, #241b5e 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.nh-auth-showcase--login {
  background-color: #120b35;
}

.nh-auth-showcase__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nh-auth-showcase--register .nh-auth-showcase__overlay {
  background: linear-gradient(180deg, rgba(13, 11, 46, .72) 0%, rgba(36, 27, 94, .55) 100%);
}

.nh-auth-showcase--login .nh-auth-showcase__overlay {
  background: linear-gradient(135deg, rgba(18, 11, 53, .9) 0%, rgba(43, 54, 177, .75) 48%, rgba(36, 27, 94, .82) 100%);
}

.nh-auth-showcase__inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
}

/* ─── Register showcase ─── */
.nh-auth-showcase__inner--register {
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-bottom: 56px;
}

.nh-auth-showcase__hub {
  position: relative;
  width: min(100%, 420px);
  min-height: 340px;
  display: grid;
  place-items: center;
}

.nh-auth-showcase__orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.nh-auth-showcase__orbit-node {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}

.nh-auth-showcase__orbit-node span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
}

.nh-auth-showcase__orbit-node--1 { top: -6%; left: 50%; transform: translateX(-50%); }
.nh-auth-showcase__orbit-node--2 { top: 8%; right: 2%; }
.nh-auth-showcase__orbit-node--3 { top: 38%; right: -8%; }
.nh-auth-showcase__orbit-node--4 { bottom: 8%; right: 2%; }
.nh-auth-showcase__orbit-node--5 { bottom: -6%; left: 50%; transform: translateX(-50%); }
.nh-auth-showcase__orbit-node--6 { bottom: 8%; left: 2%; }
.nh-auth-showcase__orbit-node--7 { top: 38%; left: -8%; }
.nh-auth-showcase__orbit-node--8 { top: 8%; left: 2%; }

.nh-auth-showcase__core {
  position: relative;
  z-index: 2;
  max-width: 320px;
  text-align: center;
  color: #fff;
}

.nh-auth-showcase__tag {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .92);
}

.nh-auth-showcase__core h1 {
  font-size: clamp(1.55rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.nh-auth-showcase__core .nh-auth-showcase__line {
  display: block;
  color: rgba(255, 255, 255, .95);
}

.nh-auth-showcase__accent {
  color: var(--nh-auth-pink-soft);
}

.nh-auth-showcase__sub {
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.nh-auth-showcase__stats {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.nh-auth-showcase__stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  min-width: 0;
}

.nh-auth-showcase__stat-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 1rem;
}

.nh-auth-showcase__stat strong {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.15;
}

.nh-auth-showcase__stat span {
  display: block;
  font-size: .62rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, .82);
}

/* ─── Login showcase (right panel) ─── */
.nh-auth-showcase__inner--login {
  padding: 56px 48px;
}

.nh-auth-showcase__login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 112px);
}

.nh-auth-showcase__welcome {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  padding-bottom: 10px;
  margin-bottom: 22px;
  border-bottom: 2px solid rgba(255, 255, 255, .35);
}

.nh-auth-showcase__login-copy h1 {
  margin-bottom: 18px;
}

.nh-auth-showcase__login-copy .nh-auth-showcase__line {
  display: block;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.nh-auth-showcase__login-copy .nh-auth-showcase__line--accent {
  color: var(--nh-auth-pink);
}

.nh-auth-showcase__desc {
  max-width: 34ch;
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}

.nh-auth-showcase__login-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nh-auth-showcase__ring {
  position: relative;
  width: 260px;
  height: 260px;
}

.nh-auth-showcase__ring-core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow:
    0 0 24px rgba(120, 180, 255, .35),
    0 0 48px rgba(91, 53, 232, .25);
}

.nh-auth-showcase__spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 42%;
  transform-origin: top center;
  background: linear-gradient(180deg, rgba(120, 200, 255, .9) 0%, rgba(120, 200, 255, 0) 100%);
}

.nh-auth-showcase__spoke::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #5ecbff;
  box-shadow: 0 0 12px #5ecbff;
}

.nh-auth-showcase__spoke--1 { transform: translate(-50%, 0) rotate(-72deg); }
.nh-auth-showcase__spoke--2 { transform: translate(-50%, 0) rotate(-36deg); }
.nh-auth-showcase__spoke--3 { transform: translate(-50%, 0) rotate(0deg); }
.nh-auth-showcase__spoke--4 { transform: translate(-50%, 0) rotate(36deg); }
.nh-auth-showcase__spoke--5 { transform: translate(-50%, 0) rotate(72deg); }

.nh-auth-showcase__node {
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.15rem;
  backdrop-filter: blur(4px);
}

.nh-auth-showcase__node--l1 { top: 4%; right: 18%; }
.nh-auth-showcase__node--l2 { top: 28%; right: -2%; }
.nh-auth-showcase__node--l3 { bottom: 28%; right: 0; }
.nh-auth-showcase__node--l4 { bottom: 8%; left: 22%; }
.nh-auth-showcase__node--l5 { top: 22%; left: -2%; }

/* ─── Form panel ─── */
.nh-auth-form-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #fff;
  overflow: hidden;
}

.nh-auth-form-wrap__blob {
  position: absolute;
  top: -40px;
  left: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 160, .45) 0%, rgba(255, 180, 160, 0) 70%);
  pointer-events: none;
}

.nh-auth-form-wrap--disabled {
  overflow: hidden;
}

.nh-auth-form-wrap--disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(2px);
  z-index: 20;
}

.nh-auth-disabled-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  font-size: 4rem;
  color: var(--nh-auth-blue);
}

.nh-auth-form-panel {
  position: relative;
  width: min(100%, 480px);
  z-index: 1;
}

.nh-auth-form-panel__dots {
  position: absolute;
  width: 68px;
  height: 88px;
  background-image: radial-gradient(#c5cad6 1.3px, transparent 1.4px);
  background-size: 12px 12px;
  pointer-events: none;
  opacity: .85;
}

.nh-auth-form-panel__dots--tr { top: 0; right: 0; }
.nh-auth-form-panel__dots--bl { bottom: 100px; left: -12px; width: 52px; height: 64px; }

.nh-auth-form-panel__waves {
  position: absolute;
  top: 8px;
  right: 72px;
  width: 80px;
  height: 32px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 32'%3E%3Cpath d='M0 24 Q10 8 20 24 T40 24 T60 24 T80 24' fill='none' stroke='%23ffb347' stroke-width='2'/%3E%3Cpath d='M0 18 Q10 4 20 18 T40 18 T60 18 T80 18' fill='none' stroke='%2300c2ff' stroke-width='2'/%3E%3Cpath d='M0 26 Q10 14 20 26 T40 26 T60 26 T80 26' fill='none' stroke='%23ff4b6b' stroke-width='2'/%3E%3Cpath d='M0 22 Q10 10 20 22 T40 22 T60 22 T80 22' fill='none' stroke='%235b35e8' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.nh-auth-logo {
  display: inline-block;
  margin-bottom: 28px;
}

.nh-auth-logo--center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nh-auth-logo img {
  height: 90px;
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

.nh-auth-lead {
  margin: 0 0 24px;
  text-align: center;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--nh-muted, #6a7187);
}

.nh-auth-verify {
  margin-bottom: 8px;
}

.nh-auth-verify .form-label,
.nh-auth-verify label {
  display: block;
  margin-bottom: 10px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1f33;
}

.nh-auth-verify .verification-code {
  margin-inline: auto;
}

.nh-auth-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.nh-auth-form__grid--single {
  grid-template-columns: 1fr;
  gap: 20px;
}

.nh-auth-field label {
  display: block;
  margin-bottom: 10px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1f33;
}

.nh-auth-field label span {
  color: var(--nh-auth-pink);
}

.nh-auth-field--full {
  grid-column: 1 / -1;
}

.nh-auth-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--nh-auth-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.nh-auth-input:focus-within {
  border-color: #8b9cf7;
  box-shadow: 0 0 0 3px rgba(43, 54, 177, .1);
}

.nh-auth-input > i:first-child {
  color: var(--nh-auth-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nh-auth-input input,
.nh-auth-input select {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: #171c2f;
}

.nh-auth-input input::placeholder {
  color: #a8afc0;
}

.nh-auth-input__toggle {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #8b93a7;
  font-size: 1.15rem;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.nh-auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 8px;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--nh-auth-muted);
}

.nh-auth-agree input {
  margin-top: 4px;
}

.nh-auth-agree a {
  color: #FBBF24;
  font-weight: 600;
  text-decoration: none;
}

.nh-auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.nh-auth-remember label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1a1f33;
  margin: 0;
  cursor: pointer;
}

.nh-auth-actions {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.nh-auth-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 22px 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.nh-auth-btn--primary {
  background: linear-gradient(90deg, var(--nh-auth-blue) 0%, var(--nh-auth-purple) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(43, 54, 177, .28);
}

.nh-auth-btn--outline {
  background: #fff;
  color: var(--nh-auth-pink);
  border-color: var(--nh-auth-pink);
}

.nh-auth-btn--outline i {
  color: var(--nh-auth-pink);
}

.nh-auth-btn:hover {
  transform: translateY(-1px);
}

.nh-auth-btn--primary:hover {
  color: #fff;
}

.nh-auth-btn--outline:hover {
  color: var(--nh-auth-pink);
}

.nh-auth-forgot {
  margin-top: 20px;
  font-size: .88rem;
  color: var(--nh-auth-muted);
  text-align: center;
}

.nh-auth-forgot a {
  color: var(--nh-auth-pink);
  font-weight: 700;
  text-decoration: none;
}

.nh-auth-security {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #eef3ff;
  border: 1px solid #dbe6ff;
}

.nh-auth-security__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--nh-auth-blue);
  font-size: 1.2rem;
}

.nh-auth-security h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--nh-auth-blue);
  margin-bottom: 4px;
}

.nh-auth-security p {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--nh-auth-muted);
}

@media (max-width: 1100px) {
  .nh-auth-showcase__stats {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 20px;
  }

  .nh-auth-showcase__login-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nh-auth-showcase__desc {
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .nh-auth {
    grid-template-columns: 1fr;
  }

  .nh-auth-register .nh-auth-showcase,
  .nh-auth-login .nh-auth-showcase {
    order: 1 !important;
  }

  .nh-auth-register .nh-auth-form-wrap,
  .nh-auth-login .nh-auth-form-wrap {
    order: 2 !important;
  }

  .nh-auth-showcase__inner {
    min-height: auto;
    padding: 36px 24px;
  }

  .nh-auth-showcase__inner--register {
    gap: 28px;
  }

  .nh-auth-showcase__hub {
    min-height: 280px;
  }

  .nh-auth-showcase__login-grid {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .nh-auth-form__grid {
    grid-template-columns: 1fr;
  }

  .nh-auth-form-wrap {
    padding: 32px 20px;
  }

  .nh-auth-showcase__stats {
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
  }
}
