@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --footer-bg: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --brand-muted: #c7c7cc;
  --line: #86868b;
  --line-soft: #d2d2d7;
  --field-bg: #ffffff;
  --button-bg: #ffffff;
  --button-line: #b0b0b5;
  --button-muted: #8e8e93;
  --divider: #6e6e73;
  --primary: #6b7cff;
  --blue: #6b7cff;
  --blue-soft: #f0f2ff;
  --tile-bg: #f5f5f7;
  --tile-line: #e8e8ed;
  --tile-shadow: rgba(0, 0, 0, 0.06);
  --panel-bg: #ffffff;
  --word-nord: #9fb2ff;
  --word-hat: #ff4f68;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --footer-bg: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --brand-muted: #6e6e73;
    --line: #8e8e93;
    --line-soft: #38383a;
    --field-bg: #000000;
    --button-bg: #000000;
    --button-line: #6e6e73;
    --button-muted: #8e8e93;
    --divider: #636366;
    --primary: #8fa0ff;
    --blue: #8fa0ff;
    --blue-soft: rgba(143, 160, 255, 0.16);
    --tile-bg: #1c1c1e;
    --tile-line: #2c2c2e;
    --tile-shadow: rgba(0, 0, 0, 0.42);
    --panel-bg: #0f0f10;
    --word-nord: #9fb2ff;
    --word-hat: #ff4f68;
  }
}

* {
  box-sizing: border-box;
}

@keyframes nhAutofillStart {
  from {
    filter: none;
  }
  to {
    filter: none;
  }
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.nh-topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 25px 28px;
}

.nh-mark,
.nh-center-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--brand-muted);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.nh-mark {
  font-size: 2rem;
  letter-spacing: -0.09em;
}

.nh-mark-n,
.nh-wordmark-nord {
  color: var(--word-nord);
  font-weight: 300;
}

.nh-mark-h,
.nh-wordmark-hat {
  color: var(--word-hat);
  font-weight: 500;
}

.nh-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 20px 112px;
}

body[data-session="signed-in"] .nh-topbar {
  display: none;
}

body[data-session="signed-in"] .nh-login-shell {
  display: block;
  padding: 0 30px 112px;
}

.nh-login {
  width: min(100%, 470px);
  margin-top: 14vh;
  text-align: center;
}

.nh-center-wordmark {
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 5.7rem;
  letter-spacing: -0.085em;
}

h1 {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nh-mode-control {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--line-soft) 26%, transparent);
}

.nh-mode-button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.nh-mode-button.is-active {
  background: var(--field-bg);
  color: var(--text);
  box-shadow: 0 1px 6px color-mix(in srgb, #000000 12%, transparent);
}

.nh-mode-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nh-login-form {
  margin: 0;
  display: grid;
  gap: 10px;
}

.nh-account-form {
  margin: 0;
  display: grid;
  gap: 10px;
}

.nh-field {
  position: relative;
}

.nh-field[hidden] {
  display: none;
}

.nh-field input {
  width: 100%;
  height: 58px;
  padding: 0 58px 0 19px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 1.08rem;
  outline: none;
}

.nh-field input::placeholder {
  color: var(--muted);
}

.nh-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent);
}

.nh-field input:-webkit-autofill {
  animation: nhAutofillStart 1ms;
}

.nh-field button {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 2px solid var(--button-line);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-muted);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.nh-field button:hover,
.nh-field button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

.nh-login-form[data-step="password"] .nh-email-continue {
  display: none;
}

.nh-login-form[data-step="password"] .nh-email-field input {
  padding-right: 19px;
}

.nh-auth-actions {
  display: flex;
  justify-content: center;
  margin-top: 124px;
}

.nh-account-actions {
  margin-top: 28px;
}

.nh-link {
  display: inline-block;
  color: var(--primary);
  font-size: 0.98rem;
  text-decoration: none;
}

.nh-danger-link {
  color: color-mix(in srgb, var(--word-hat) 88%, var(--text));
}

.nh-link:hover,
.nh-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.nh-primary-action {
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
}

.nh-primary-action:hover,
.nh-primary-action:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.nh-notice {
  min-height: 20px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nh-global-notice {
  position: fixed;
  right: 30px;
  bottom: 76px;
  z-index: 3;
  max-width: min(420px, calc(100vw - 40px));
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-bg);
  color: var(--muted);
  box-shadow: 0 12px 28px color-mix(in srgb, #000000 12%, transparent);
  font-size: 0.9rem;
  line-height: 1.35;
}

.nh-global-notice[hidden] {
  display: none;
}

.nh-flow-copy {
  max-width: 420px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.4;
}

.nh-flow-actions {
  display: grid;
  gap: 10px;
}

.nh-secondary-action {
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
}

.nh-secondary-action:hover,
.nh-secondary-action:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

.nh-mfa-options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.nh-mfa-option {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1.5px solid var(--line-soft);
  border-radius: 13px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nh-mfa-option.is-active,
.nh-mfa-option:hover,
.nh-mfa-option:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.nh-mfa-option span {
  color: var(--muted);
  font-size: 0.9rem;
}

.nh-totp-setup {
  display: grid;
  gap: 12px;
}

.nh-totp-setup[hidden] {
  display: none;
}

.nh-secret-key {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: color-mix(in srgb, var(--line-soft) 22%, transparent);
  color: var(--text);
  font-size: 0.92rem;
  text-align: left;
}

.nh-setup-link {
  margin-bottom: 2px;
}

.nh-portal {
  width: 100%;
  margin: 0 auto;
  padding: 26px 0 72px;
}

.nh-portal-header {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nh-portal-header h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.34em;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nh-portal-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 1.36em;
  font-weight: 400;
  letter-spacing: -0.085em;
}

.nh-portal-product {
  color: color-mix(in srgb, var(--text) 50%, transparent);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0;
}

.nh-portal-user {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: right;
}

.nh-user-menu {
  position: relative;
}

.nh-user-button {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  align-items: start;
  column-gap: 7px;
  max-width: min(360px, 46vw);
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.12;
  text-align: right;
  cursor: pointer;
}

.nh-user-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  overflow: hidden;
}

.nh-user-name,
.nh-user-email,
.nh-user-org {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-user-email,
.nh-user-org {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.nh-user-chevron {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
}

.nh-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 5;
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 132px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nh-account-menu[hidden] {
  display: none;
}

.nh-account-menu[data-open="true"] {
  display: grid;
}

.nh-account-menu button {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: right;
  cursor: pointer;
}

.nh-account-menu button:hover,
.nh-account-menu button:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.nh-header-divider {
  width: 1px;
  height: 26px;
  background: var(--line-soft);
}

.nh-help-button {
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.nh-portal-home {
  min-height: calc(100vh - 220px);
}

.nh-portal-home[hidden] {
  display: none;
}

.nh-account-panel {
  width: min(100%, 360px);
  margin: clamp(48px, 10vh, 92px) auto 72px;
  padding: 0;
  text-align: left;
}

.nh-account-panel[hidden] {
  display: none;
}

.nh-account-panel h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: 0;
}

.nh-account-panel .nh-panel-copy {
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.nh-account-panel .nh-account-form {
  gap: 8px;
}

.nh-account-panel .nh-field input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.nh-account-panel .nh-primary-action {
  width: auto;
  justify-self: start;
  min-height: 38px;
  margin-top: 4px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.nh-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: clamp(42px, 6vw, 96px);
  align-items: start;
  margin: clamp(82px, 15vh, 150px) auto 58px;
  max-width: 760px;
}

.nh-portal-tile {
  display: grid;
  justify-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.08;
  text-align: center;
  cursor: pointer;
}

.nh-portal-tile.is-active {
  color: var(--text);
}

.nh-portal-tile:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 8px;
  border-radius: 18px;
}

.nh-tile-icon {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--tile-line);
  border-radius: 28px;
  box-shadow: 0 12px 26px var(--tile-shadow);
}

.nh-tile-icon--blue {
  background: linear-gradient(180deg, #7fd5ff 0%, #6b7cff 56%, #4f63f0 100%);
  color: #ffffff;
}

.nh-tile-icon--soft {
  background: linear-gradient(180deg, #fbfbfd 0%, #e8edf0 100%);
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .nh-tile-icon--soft {
    background: linear-gradient(180deg, #2a2a2c 0%, #1a1a1c 100%);
  }
}

.nh-tile-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.6;
}

.nh-portal-panel {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.nh-portal-panel[hidden] {
  display: none;
}

.nh-portal-panel h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
}

.nh-panel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.nh-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.82rem;
}

.nh-footer-mark {
  display: inline-flex;
  align-items: baseline;
  color: var(--brand-muted);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 1.38rem;
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 1;
  text-decoration: none;
}

.nh-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nh-footer nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nh-footer nav::before {
  content: "";
  width: 1px;
  height: 18px;
  margin-right: 20px;
  background: var(--divider);
}

.nh-footer a {
  color: var(--muted);
  text-decoration: none;
}

.nh-footer a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  margin: 0 20px;
  vertical-align: middle;
  background: var(--divider);
}

.nh-footer a:hover,
.nh-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.nh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nh-topbar {
    padding: 20px;
  }

  .nh-login {
    margin-top: 7vh;
  }

  .nh-center-wordmark {
    font-size: 4.2rem;
  }

  .nh-auth-actions {
    margin-top: 80px;
    gap: 18px;
    flex-wrap: wrap;
  }

  body[data-session="signed-in"] .nh-login-shell {
    padding: 0 20px 64px;
  }

  .nh-portal {
    padding-top: 20px;
  }

  .nh-portal-header {
    align-items: flex-start;
    gap: 16px;
  }

  .nh-portal-header h1 {
    font-size: 1.08rem;
  }

  .nh-portal-user {
    gap: 10px;
  }

  .nh-user-button {
    max-width: 170px;
    font-size: 0.82rem;
  }

  .nh-account-menu {
    min-width: 118px;
  }

  .nh-account-panel {
    width: min(100%, 340px);
    margin-top: 48px;
  }

  .nh-portal-grid {
    grid-template-columns: repeat(2, minmax(118px, 1fr));
    gap: 34px 28px;
    margin: 48px auto 44px;
  }

  .nh-tile-icon {
    width: 96px;
    border-radius: 24px;
  }

  .nh-footer {
    position: static;
    align-items: flex-end;
    gap: 16px;
    padding: 18px 20px;
  }

  .nh-footer-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
  }

  .nh-footer nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .nh-footer nav::before,
  .nh-footer a + a::before {
    display: none;
  }
}

@media (max-width: 380px) {
  .nh-center-wordmark {
    font-size: 3.8rem;
  }
}
