.nm-auth-page {
  padding-bottom: 56px;
  background: #fff;
}

.nm-auth-page *,
.nm-auth-page *::before,
.nm-auth-page *::after {
  box-sizing: border-box;
}

.nm-auth-breadcrumb {
  margin: 0;
  padding: 16px 0 12px;
  background: transparent;
  border-radius: 0;
  font-size: 11px;
}

.nm-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 34px 70px -56px rgba(20, 28, 22, .65);
}

.nm-auth-story {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(42px, 6vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(32, 39, 34, .96), rgba(17, 21, 18, .99)),
    radial-gradient(circle at 15% 20%, rgba(117, 146, 126, .42), transparent 42%);
  color: #fff;
}

.nm-auth-story::after {
  position: absolute;
  z-index: -1;
  right: -180px;
  bottom: -210px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018);
  content: "";
}

.nm-auth-story__number {
  position: absolute;
  z-index: -1;
  top: -16px;
  right: 24px;
  color: rgba(255, 255, 255, .045);
  font-size: clamp(180px, 25vw, 340px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: 1;
}

.nm-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nm-auth-eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nm-auth-story .nm-auth-eyebrow {
  color: #a6b9ab;
}

.nm-auth-story h1 {
  max-width: 650px;
  margin: 20px 0;
  color: #fff;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.01;
}

.nm-auth-story__content > p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: 15px;
  line-height: 1.75;
}

.nm-auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.nm-auth-benefits > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.nm-auth-benefit__icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #a6b9ab;
}

.nm-auth-benefit__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nm-auth-benefits strong,
.nm-auth-benefits small {
  display: block;
}

.nm-auth-benefits strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}

.nm-auth-benefits small {
  color: rgba(255, 255, 255, .5);
  font-size: 9px;
  line-height: 1.4;
}

.nm-auth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 68px);
}

.nm-auth-panel__head {
  margin-bottom: 30px;
}

.nm-auth-panel__head h2 {
  margin: 12px 0 7px;
  color: var(--anthracite);
  font-size: clamp(31px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -.04em;
}

.nm-auth-panel__head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.nm-auth-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.nm-auth-validation {
  padding: 12px 14px;
  border: 1px solid #ead4d4;
  border-radius: var(--radius);
  background: #f9efef;
  color: #8b3434;
  font-size: 12px;
}

.nm-auth-validation:empty {
  display: none;
}

.nm-auth-validation ul {
  margin: 0;
  padding-left: 18px;
}

.nm-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.nm-auth-field > span:first-child {
  color: var(--anthracite);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nm-auth-input {
  position: relative;
  display: flex;
  align-items: center;
}

.nm-auth-input > svg {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gray-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  pointer-events: none;
}

.nm-auth-input input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--gray-50);
  color: var(--anthracite);
  font: inherit;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nm-auth-input input::placeholder {
  color: var(--gray-400);
}

.nm-auth-input input:focus {
  border-color: var(--cta);
  background: #fff;
  box-shadow: 0 0 0 3px var(--cta-tint);
}

.nm-auth-password {
  position: absolute;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
}

.nm-auth-password:hover,
.nm-auth-password[aria-pressed="true"] {
  color: var(--cta);
}

.nm-auth-password svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.nm-auth-error {
  color: #9a3636;
  font-size: 11px;
}

.nm-auth-error:empty {
  display: none;
}

.nm-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nm-auth-options > a {
  color: var(--cta);
  font-size: 11px;
  font-weight: 700;
}

.nm-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gray-600);
  font-size: 11px;
  cursor: pointer;
}

.nm-auth-remember input {
  position: absolute;
  opacity: 0;
}

.nm-auth-remember > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  color: transparent;
}

.nm-auth-remember svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.nm-auth-remember input:checked + span {
  border-color: var(--cta);
  background: var(--cta);
  color: #fff;
}

.nm-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--cta);
  border-radius: var(--radius);
  background: var(--cta);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.nm-auth-submit:hover {
  transform: translateY(-1px);
  background: #3f5045;
}

.nm-auth-submit svg,
.nm-auth-register a svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nm-auth-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.nm-auth-register > span {
  color: var(--muted);
  font-size: 11px;
}

.nm-auth-register a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--anthracite);
  font-size: 11px;
  font-weight: 750;
}

.nm-auth-panel__head a,
.nm-auth-consents a,
.nm-auth-message a { color: var(--cta); font-weight: 750; }
.nm-auth-shell--register { grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr); }
.nm-auth-shell--register .nm-auth-panel { padding: clamp(32px, 4vw, 54px); }
.nm-auth-shell--compact { grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr); min-height: 540px; }
.nm-auth-form-grid { display: grid; gap: 17px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nm-auth-field--full { grid-column: 1 / -1; }
.nm-auth-hint { color: var(--muted); font-size: 10px; line-height: 1.5; margin: -6px 0 0; }
.nm-auth-consents { border-top: 1px solid var(--line); display: grid; gap: 12px; padding-top: 17px; }
.nm-auth-consents .nm-auth-remember { align-items: flex-start; line-height: 1.55; }
.nm-auth-consents .nm-auth-remember > span:first-of-type { flex: 0 0 18px; }
.nm-auth-message {
  border-left: 2px solid var(--cta);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
  padding: 16px 18px;
}
.nm-auth-message--danger { border-left-color: #984343; background: #f9eeee; color: #7f3737; }
.nm-auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nm-auth-secondary {
  align-items: center; border: 1px solid var(--line); color: var(--anthracite); display: inline-flex;
  font-size: 10px; font-weight: 800; justify-content: center; letter-spacing: .06em; min-height: 48px;
  padding: 0 22px; text-transform: uppercase;
}
.nm-auth-secondary:hover { border-color: var(--cta); color: var(--cta); }
.nm-auth-actions .nm-auth-submit { width: auto; }

@media (max-width: 960px) {
  .nm-auth-shell,
  .nm-auth-shell--register,
  .nm-auth-shell--compact {
    grid-template-columns: 1fr;
  }

  .nm-auth-story {
    min-height: 410px;
  }
}

@media (max-width: 620px) {
  .nm-auth-page {
    padding-bottom: 34px;
  }

  .nm-auth-story,
  .nm-auth-panel {
    padding: 30px 22px;
  }

  .nm-auth-story {
    min-height: 390px;
  }

  .nm-auth-story h1 {
    font-size: 39px;
  }

  .nm-auth-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  .nm-auth-benefits small {
    font-size: 10px;
  }

  .nm-auth-register {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nm-auth-form-grid { grid-template-columns: 1fr; }
  .nm-auth-field--full { grid-column: auto; }
  .nm-auth-actions { align-items: stretch; flex-direction: column; }
  .nm-auth-actions .nm-auth-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nm-auth-submit,
  .nm-auth-input input {
    transition: none;
  }
}
