/* NB Auth — same cinematic shell as distro home */

body.nb-auth-page-body,
html.nb-auth-standalone,
body.nb-auth-standalone {
  margin: 0 !important;
  padding: 0 !important;
  background: #050505 !important;
  color: #f7f3ea !important;
}

body.nb-auth-page-body #nb-top-header,
body.nb-auth-page-body .nb-global-header,
body.nb-auth-page-body .site-header,
body.nb-auth-page-body .site-footer,
body.nb-auth-page-body header.wp-block-template-part,
body.nb-auth-page-body footer.wp-block-template-part,
body.nb-auth-page-body .ct-header,
body.nb-auth-page-body .ct-footer,
body.nb-auth-page-body #header,
body.nb-auth-page-body #footer,
body.nb-auth-page-body .entry-header,
body.nb-auth-page-body .page-title {
  display: none !important;
}
body.nb-auth-page-body .entry-content,
body.nb-auth-page-body .wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* не трогаем наш <main.nb-auth-screen> — иначе всё липнет к краям */
body.nb-auth-page-body main:not(.nb-auth-screen) {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.nb-distro--auth .nb-auth-screen {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  width: min(100% - 2.5rem, var(--max, 1180px));
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vh, 2.8rem) 0 clamp(2.2rem, 6vh, 3.5rem);
}

.nb-auth-screen__hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.nb-distro--auth .nb-auth-screen__copy .nb-distro-hero__brand {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: .18em;
  margin-bottom: .85rem;
}
.nb-distro--auth .nb-auth-screen__copy .nb-distro-hero__title {
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  margin-bottom: 1rem;
}
.nb-distro--auth .nb-auth-screen__copy .nb-distro-hero__desc {
  max-width: 38ch;
  margin-bottom: 1.25rem;
}

.nb-auth-screen__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.nb-auth-screen__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  color: rgba(255, 245, 220, .9);
}
.nb-auth-screen__points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .18), 0 0 14px rgba(255, 215, 0, .45);
}

.nb-auth-screen__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  transform: none !important; /* без tilt / слежки за мышкой */
  overflow: visible;
  z-index: 1;
}

/* Glow wash under the form — like artists vibe aura */
.nb-auth-screen__aura {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 175%;
  height: 140%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}
.nb-auth-screen__aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .48;
  mix-blend-mode: screen;
  animation: nbAuthAura 11s ease-in-out infinite;
}
.nb-auth-screen__aura .is-a {
  width: 58%;
  height: 72%;
  left: -6%;
  top: 8%;
  background: #E8A317;
}
.nb-auth-screen__aura .is-b {
  width: 62%;
  height: 78%;
  left: 22%;
  top: 0%;
  background: #FFD700;
  opacity: .4;
  animation-delay: -3.5s;
}
.nb-auth-screen__aura .is-c {
  width: 56%;
  height: 70%;
  right: -8%;
  left: auto;
  top: 18%;
  background: #ff8a3d;
  opacity: .36;
  animation-delay: -7s;
}
@keyframes nbAuthAura {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -5%, 0) scale(1.1); }
}

/* Card — glass panel like home */
.nb-auth__card {
  --nb-gold: #FFD700;
  --nb-gold-2: #E8A317;
  --nb-ink: #120e08;
  --nb-muted: rgba(245, 232, 205, .68);
  --nb-font-head: 'Clash Display', Syne, sans-serif;
  width: 100%;
  border-radius: 20px;
  padding: 1.05rem 1.1rem 1.15rem;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 120, .22);
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(255, 215, 0, .14), transparent 55%),
    linear-gradient(165deg, rgba(22, 18, 12, .82), rgba(8, 7, 5, .9));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 230, 170, .1);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.nb-auth__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 230, 150, .08) 50%,
    transparent 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: nbAuthSheen 9s ease-in-out infinite;
  z-index: 0;
}
.nb-auth__card::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -36%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: .34;
  filter: blur(22px);
  background: radial-gradient(circle at 40% 40%, #ffe36a 0%, #ffd700 38%, rgba(255, 140, 40, .55) 70%, transparent 78%);
  animation: nbAuthGlow 7.5s ease-in-out infinite;
}
.nb-auth__card > * { position: relative; z-index: 1; }

.nb-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  padding: .25rem;
  border-radius: 999px;
  height: 40px;
  margin-bottom: .85rem;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 215, 0, .12);
}
.nb-auth__tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  font: 800 .8rem/1 Manrope, sans-serif;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nb-auth__tab:hover { color: #fff; }
.nb-auth__tab.is-active {
  color: var(--nb-ink);
  background: linear-gradient(110deg, #ffe36a, #E8A317 55%, #c49212);
  box-shadow: 0 8px 22px rgba(255, 180, 40, .28);
}

.nb-auth__banner {
  margin: 0 0 .75rem;
  padding: .7rem .85rem;
  border-radius: 14px;
  background: rgba(255, 80, 80, .12);
  border: 1px solid rgba(255, 80, 80, .28);
  font-size: .82rem;
  font-weight: 700;
  color: #ffb4b0;
}
.nb-auth__ref-banner {
  margin: 0 0 .75rem;
  padding: .65rem .85rem;
  border-radius: 14px;
  background: rgba(255, 215, 0, .1);
  border: 1px solid rgba(255, 215, 0, .28);
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 236, 190, .92);
}
.nb-auth__ref-banner strong { color: #FFE566; }

.nb-auth__panel { display: none; }
.nb-auth__panel.is-active {
  display: block;
  animation: nbAuthRise .32s ease both;
}

.nb-auth__head { margin: 0 0 .75rem; }
.nb-auth__head h1 {
  margin: 0 0 .28rem;
  font-family: var(--nb-font-head);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  letter-spacing: -.02em;
  font-weight: 700;
}
.nb-auth__head p {
  margin: 0;
  font-size: .8rem;
  color: var(--nb-muted);
  line-height: 1.4;
  font-weight: 500;
}

.nb-auth__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.nb-auth__field {
  display: grid;
  gap: .22rem;
  margin-bottom: .55rem;
}
.nb-auth__field > span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nb-muted);
}
.nb-auth__field input,
.nb-auth__field select {
  min-height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 215, 0, .22);
  background: rgba(8, 6, 3, .55);
  color: #fff;
  padding: .65rem .9rem;
  font: 600 .88rem/1.2 Manrope, sans-serif;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
  box-sizing: border-box;
}
.nb-auth__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,215,0,.75) 50%),
    linear-gradient(135deg, rgba(255,215,0,.75) 50%, transparent 50%),
    linear-gradient(165deg, rgba(8, 6, 3, .55), rgba(8, 6, 3, .55));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 2rem;
  cursor: pointer;
}
.nb-auth__field select option {
  color: #120e08;
  background: #fff8e8;
}
.nb-auth__field input::placeholder { color: rgba(255, 255, 255, .28); }
.nb-auth__field input:hover,
.nb-auth__field select:hover {
  border-color: rgba(255, 215, 0, .4);
  background-color: rgba(10, 8, 4, .62);
}
.nb-auth__field input:focus,
.nb-auth__field select:focus {
  border-color: rgba(255, 215, 0, .7);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, .12);
  background-color: rgba(12, 9, 4, .7);
}
.nb-auth__field.is-heard-other[hidden] { display: none !important; }
.nb-auth__field input:-webkit-autofill,
.nb-auth__field input:-webkit-autofill:hover,
.nb-auth__field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #1a140a inset !important;
  border-color: rgba(255, 215, 0, .4) !important;
}

.nb-auth__check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--nb-muted);
  cursor: pointer;
}
.nb-auth__check input {
  width: 16px;
  height: 16px;
  margin-top: .1rem;
  accent-color: var(--nb-gold);
  cursor: pointer;
}

/* выше .nb-distro button { background:none; color:inherit } */
.nb-distro button.nb-auth__btn,
.nb-auth__btn {
  width: 100%;
  min-height: 44px;
  border: 0 !important;
  border-radius: 999px;
  cursor: pointer;
  font: 800 .88rem/1 Manrope, sans-serif !important;
  color: #120e08 !important;
  background: linear-gradient(110deg, #ffe36a, #E8A317 55%, #c49212) !important;
  box-shadow: 0 12px 30px rgba(255, 180, 40, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.nb-distro button.nb-auth__btn:hover,
.nb-auth__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 180, 40, .4);
  filter: brightness(1.03);
}
.nb-distro button.nb-auth__btn:active,
.nb-auth__btn:active { transform: translateY(0); }
.nb-distro button.nb-auth__btn:disabled,
.nb-auth__btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
  filter: none;
}

.nb-distro button.nb-auth__tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .68);
}
.nb-distro button.nb-auth__tab.is-active {
  color: #120e08 !important;
  background: linear-gradient(110deg, #ffe36a, #E8A317 55%, #c49212) !important;
  box-shadow: 0 8px 22px rgba(255, 180, 40, .28);
}

.nb-auth__msg {
  margin: .6rem 0 0;
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
}
.nb-auth__msg.is-error { color: #ff8f8f; }
.nb-auth__msg.is-ok { color: #b8f0c0; }

.nb-oauth { margin: 0; }
.nb-oauth__btns { display: grid; grid-template-columns: 1fr; }
.nb-oauth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 119, 255, .4);
  background: linear-gradient(180deg, rgba(0, 119, 255, .22), rgba(0, 80, 200, .14));
  color: #c9e0ff !important;
  font-weight: 800;
  font-size: .9rem;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.nb-oauth__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 180, 255, .55);
  box-shadow: 0 10px 24px rgba(0, 100, 255, .18);
}
.nb-oauth__btn svg { width: 18px; height: 18px; }
.nb-oauth__legal {
  margin: .45rem 0 0;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255, 236, 190, .65);
}
.nb-oauth__sep {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .85rem 0 .75rem;
  color: rgba(255, 236, 190, .55);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.nb-oauth__sep::before,
.nb-oauth__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}
.nb-auth__panel[data-panel="register"] .nb-oauth__legal { display: none; }

@keyframes nbAuthRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes nbAuthSheen {
  0% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
  100% { background-position: 120% 0; }
}
@keyframes nbAuthGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  25% { transform: translate3d(-18px, -14px, 0) scale(1.1); }
  55% { transform: translate3d(12px, -22px, 0) scale(1.04); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .nb-auth__card::before,
  .nb-auth__card::after,
  .nb-auth-screen__aura span { animation: none !important; }
}

@media (max-width: 960px) {
  .nb-distro--auth .nb-auth-screen {
    width: min(100% - 1.5rem, 1180px);
    align-items: flex-start;
    min-height: auto;
    padding-top: 1rem;
  }
  .nb-auth-screen__hero {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .nb-auth-screen__panel {
    justify-self: center;
    order: -1;
    max-width: 360px;
  }
  .nb-auth-screen__aura {
    width: 155%;
    height: 125%;
  }
  .nb-distro--auth .nb-auth-screen__copy .nb-distro-hero__title {
    font-size: clamp(1.65rem, 6.5vw, 2.3rem);
  }
  .nb-auth-screen__points { display: none; }
}

@media (max-width: 420px) {
  .nb-auth__grid2 { grid-template-columns: 1fr; }
  .nb-auth__card { padding: 1.1rem; border-radius: 20px; }
}

/* Auth flash modals (login / application) */
.nb-auth-flash {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: none;
  place-items: center;
  padding: 16px;
}
.nb-auth-flash.is-open { display: grid; }
.nb-auth-flash__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(2, 0, 5, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nb-auth-flash__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 1.75rem 1.45rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, .28);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 190, 60, .16), transparent 55%),
    rgba(14, 12, 10, .96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
  color: #f7f3ea;
  animation: nbAuthRise .35s cubic-bezier(.22, 1, .36, 1) both;
}
.nb-auth-flash__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.nb-auth-flash__mark {
  width: 54px;
  height: 54px;
  margin: 0 auto .85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 800;
  color: #120e08;
  background: linear-gradient(135deg, #FFD700, #E8A317);
  box-shadow: 0 10px 28px rgba(255, 180, 40, .35);
}
.nb-auth-flash__brand {
  margin: 0 0 .55rem;
  font-family: "Clash Display", Manrope, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #FFD700;
}
.nb-auth-flash__brand span { color: #ffe08a; }
.nb-auth-flash__dialog h2 {
  margin: 0 0 .75rem;
  font-family: "Clash Display", Manrope, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #f7f3ea;
}
.nb-auth-flash__text {
  margin: 0 0 .65rem;
  font-size: .95rem;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(245, 232, 205, .78);
}
.nb-auth-flash__text strong { color: #FFD700; font-weight: 800; }
.nb-auth-flash__hint {
  margin: 0 0 1.25rem;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(245, 232, 205, .48);
}
.nb-auth-flash__btn { margin-top: .15rem; }
html.nb-auth-flash-open,
html.nb-auth-flash-open body { overflow: hidden; }

/* Dashboard modal embed (legacy) */
.nb-auth--embed { min-height: 0; background: transparent; }
.nb-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 16px;
}
.nb-auth-modal.is-open { display: grid; }
.nb-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(2, 0, 5, .78);
  backdrop-filter: blur(10px);
}
.nb-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 26px;
}
.nb-auth-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
html.nb-auth-modal-open,
html.nb-auth-modal-open body { overflow: hidden; }
