:root {
  color-scheme: light;
  --hs-ink: #10243e;
  --hs-muted: #627189;
  --hs-subtle: #66758a;
  --hs-line: #dfe6ef;
  --hs-surface: #ffffff;
  --hs-surface-soft: #f5f8fc;
  --hs-navy: #06213a;
  --hs-navy-deep: #031424;
  --hs-blue: #087eb7;
  --hs-blue-strong: #046794;
  --hs-cyan: #31b9e7;
  --hs-amber: #f6a53b;
  --hs-danger: #b42318;
  --hs-danger-soft: #fff1f0;
  --hs-warning: #93510a;
  --hs-warning-soft: #fff8e7;
  --hs-info: #075985;
  --hs-info-soft: #ecf8ff;
  --hs-success: #166534;
  --hs-success-soft: #edfdf2;
  --hs-shadow: 0 30px 80px rgba(6, 33, 58, 0.16);
  --hs-focus: 0 0 0 4px rgba(8, 126, 183, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--hs-navy-deep);
}

body.hs-auth-body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--hs-ink);
  background: var(--hs-surface-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hs-auth-body button,
body.hs-auth-body input {
  font: inherit;
}

body.hs-auth-body a {
  color: var(--hs-blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.hs-auth-body a:hover {
  color: var(--hs-navy);
}

body.hs-auth-body :focus-visible {
  outline: 2px solid var(--hs-cyan);
  outline-offset: 3px;
}

.hs-skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff !important;
  background: var(--hs-navy-deep);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.hs-skip-link:focus {
  transform: translateY(0);
}

.hs-auth-layout {
  display: grid;
  grid-template-columns: minmax(370px, 0.92fr) minmax(520px, 1.08fr);
  min-height: 100vh;
  min-height: 100svh;
}

.hs-auth-brand {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 12% 16%, rgba(49, 185, 231, 0.25), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(246, 165, 59, 0.17), transparent 24%),
    linear-gradient(145deg, #07395d 0%, var(--hs-navy) 48%, var(--hs-navy-deep) 100%);
  isolation: isolate;
}

.hs-auth-brand::before,
.hs-auth-brand::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hs-auth-brand::before {
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom right, #000, transparent 76%);
}

.hs-auth-brand::after {
  width: 340px;
  height: 340px;
  right: -170px;
  bottom: -155px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(255, 255, 255, 0.025),
    0 0 0 92px rgba(255, 255, 255, 0.02);
}

.hs-brand-lockup {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: #fff !important;
  text-decoration: none;
}

.hs-brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 16px;
  background: rgba(2, 19, 34, 0.38);
  box-shadow: 0 12px 30px rgba(1, 11, 20, 0.24);
}

.hs-brand-mark img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.hs-brand-name {
  display: block;
  font-size: 1.16rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.hs-brand-byline {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  letter-spacing: 0.035em;
}

.hs-brand-story {
  max-width: 590px;
  margin: clamp(70px, 12vh, 145px) 0 54px;
}

.hs-eyebrow {
  margin: 0 0 14px;
  color: var(--hs-blue-strong);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hs-auth-brand .hs-eyebrow {
  color: #83daf7;
}

.hs-brand-headline {
  max-width: 570px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 4.5vw, 4.85rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hs-brand-description {
  max-width: 525px;
  margin: 25px 0 0;
  color: rgba(235, 248, 255, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
}

.hs-brand-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hs-brand-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 620;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(3, 20, 36, 0.27);
  backdrop-filter: blur(8px);
}

.hs-brand-proof svg {
  width: 15px;
  height: 15px;
  color: #78d5f4;
}

.hs-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
}

.hs-brand-footer a {
  color: rgba(255, 255, 255, 0.76) !important;
}

.hs-auth-main {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(circle at 100% 0, rgba(49, 185, 231, 0.09), transparent 25%),
    var(--hs-surface-soft);
}

.hs-auth-panel {
  width: min(100%, 560px);
}

.hs-auth-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(205, 216, 228, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--hs-shadow);
}

.hs-auth-card-header {
  margin-bottom: 26px;
}

.hs-auth-card h1,
.hs-auth-card h2 {
  margin: 0;
  color: var(--hs-ink);
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hs-auth-subtitle {
  margin: 11px 0 0;
  color: var(--hs-muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.hs-alert {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  margin: 0 0 22px;
  padding: 14px 15px;
  color: var(--hs-info);
  border: 1px solid #b9e5f8;
  border-radius: 14px;
  background: var(--hs-info-soft);
  font-size: 0.87rem;
  line-height: 1.5;
}

.hs-alert[data-tone="danger"] {
  color: var(--hs-danger);
  border-color: #fecaca;
  background: var(--hs-danger-soft);
}

.hs-alert[data-tone="warning"] {
  color: var(--hs-warning);
  border-color: #f9d98c;
  background: var(--hs-warning-soft);
}

.hs-alert[data-tone="success"] {
  color: var(--hs-success);
  border-color: #b8e8c5;
  background: var(--hs-success-soft);
}

.hs-alert svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.hs-alert-title {
  display: block;
  margin-bottom: 2px;
  font-weight: 740;
}

.hs-alert p {
  margin: 0;
}

.hs-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hs-provider-button,
.hs-passkey-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 12px;
  color: var(--hs-ink) !important;
  font-size: 0.84rem;
  font-weight: 690;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--hs-line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.hs-provider-button:hover,
.hs-passkey-button:hover:not(:disabled) {
  color: var(--hs-ink) !important;
  border-color: #aebdce;
  background: #f9fbfd;
  box-shadow: 0 8px 18px rgba(16, 36, 62, 0.08);
  transform: translateY(-1px);
}

.hs-provider-button svg,
.hs-passkey-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hs-passkey-button {
  width: 100%;
  margin-top: 10px;
}

.hs-passkey-button:disabled {
  color: var(--hs-subtle) !important;
  cursor: not-allowed;
  background: #f3f5f8;
}

.hs-support-note {
  margin: 9px 2px 0;
  color: var(--hs-subtle);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

.hs-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--hs-subtle);
  font-size: 0.71rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hs-divider::before,
.hs-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--hs-line);
}

.hs-field {
  margin-bottom: 17px;
}

.hs-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 7px;
}

.hs-field label,
.hs-label {
  color: #243952;
  font-size: 0.82rem;
  font-weight: 700;
}

.hs-label-row a {
  font-size: 0.78rem;
  font-weight: 650;
}

.hs-input-wrap {
  position: relative;
}

.hs-input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--hs-ink);
  border: 1px solid #cbd6e2;
  border-radius: 13px;
  outline: 0;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.hs-input::placeholder {
  color: #68778b;
}

.hs-input:hover {
  border-color: #afbdcd;
}

.hs-input:focus {
  border-color: var(--hs-blue);
  box-shadow: var(--hs-focus);
}

.hs-input[aria-invalid="true"] {
  border-color: #dc6b62;
}

.hs-input-wrap .hs-input {
  padding-right: 73px;
}

.hs-reveal-button {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 56px;
  padding: 7px 8px;
  color: var(--hs-blue-strong);
  font-size: 0.74rem;
  font-weight: 720;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.hs-reveal-button:hover {
  background: #edf6fb;
}

.hs-field-help {
  display: block;
  margin: 7px 2px 0;
  color: var(--hs-subtle);
  font-size: 0.76rem;
  line-height: 1.45;
}

.hs-code-input {
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.hs-action-spacing {
  margin-top: 10px;
}

.hs-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 3px 0 19px;
}

.hs-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hs-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.hs-checkbox input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--hs-blue);
}

.hs-primary-button,
.hs-secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 740;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.hs-primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--hs-blue) 0%, var(--hs-blue-strong) 58%, #064f75 100%);
  box-shadow: 0 12px 25px rgba(4, 103, 148, 0.22);
}

.hs-primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #078bc8 0%, #045e89 100%);
  box-shadow: 0 15px 30px rgba(4, 103, 148, 0.27);
  transform: translateY(-1px);
}

.hs-primary-button:disabled,
.hs-secondary-button:disabled {
  opacity: 0.64;
  cursor: wait;
}

.hs-secondary-button {
  width: 100%;
  min-height: 43px;
  color: var(--hs-blue-strong);
  border-color: #c7d9e5;
  background: #f4f9fc;
}

.hs-secondary-button:hover:not(:disabled) {
  background: #eaf5fb;
}

.hs-verification {
  margin: 2px 0 17px;
  border: 1px solid var(--hs-line);
  border-radius: 13px;
  background: #fbfcfe;
}

.hs-verification summary {
  padding: 12px 14px;
  color: var(--hs-blue-strong);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.hs-verification[open] summary {
  border-bottom: 1px solid var(--hs-line);
}

.hs-verification-body {
  padding: 14px;
}

.hs-verification-body p {
  margin: 0 0 12px;
  color: var(--hs-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hs-verification-body .hs-field {
  margin-bottom: 11px;
}

.hs-auth-help {
  margin: 19px 0 0;
  color: var(--hs-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.hs-auth-help strong {
  color: var(--hs-ink);
}

.hs-auth-card-footer {
  margin: 22px 0 0;
  padding-top: 19px;
  color: var(--hs-muted);
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid var(--hs-line);
}

.hs-auth-card-footer a {
  font-weight: 690;
}

.hs-status {
  min-height: 22px;
  margin: 14px 1px 0;
  color: var(--hs-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hs-status[data-tone="danger"] {
  color: var(--hs-danger);
}

.hs-status[data-tone="success"] {
  color: var(--hs-success);
}

.hs-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 10px 0 19px;
  padding: 0;
  color: var(--hs-muted);
  font-size: 0.75rem;
  list-style: none;
}

.hs-password-rules li {
  position: relative;
  padding-left: 17px;
}

.hs-password-rules li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid #95a4b6;
  border-radius: 50%;
}

.hs-password-rules li[data-met="true"] {
  color: var(--hs-success);
}

.hs-password-rules li[data-met="true"]::before {
  border-color: var(--hs-success);
  background: var(--hs-success);
}

.hs-noscript {
  margin: 0 0 18px;
  padding: 13px 14px;
  color: var(--hs-warning);
  border: 1px solid #f9d98c;
  border-radius: 13px;
  background: var(--hs-warning-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.hs-toast-region {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(390px, calc(100vw - 40px));
  gap: 10px;
  pointer-events: none;
}

.hs-toast {
  padding: 13px 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #10243e;
  box-shadow: 0 14px 35px rgba(3, 20, 36, 0.28);
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hs-toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.hs-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hs-spin 700ms linear infinite;
}

@keyframes hs-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1040px) {
  .hs-auth-layout {
    grid-template-columns: minmax(330px, 0.78fr) minmax(500px, 1.22fr);
  }

  .hs-auth-brand {
    padding: 38px;
  }

  .hs-brand-headline {
    font-size: clamp(2.3rem, 5vw, 3.65rem);
  }

  .hs-auth-main {
    padding: 36px;
  }
}

@media (max-width: 840px) {
  .hs-auth-layout {
    display: block;
    background: var(--hs-surface-soft);
  }

  .hs-auth-brand {
    min-height: 0;
    padding: 24px clamp(20px, 6vw, 44px) 58px;
  }

  .hs-auth-brand::after,
  .hs-brand-proof,
  .hs-brand-footer {
    display: none;
  }

  .hs-brand-story {
    max-width: 650px;
    margin: 50px 0 0;
  }

  .hs-brand-headline {
    max-width: 580px;
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }

  .hs-brand-description {
    margin-top: 17px;
  }

  .hs-auth-main {
    position: relative;
    z-index: 2;
    margin-top: -30px;
    padding: 0 clamp(16px, 5vw, 36px) 40px;
    background: transparent;
  }

  .hs-auth-panel {
    width: min(100%, 600px);
  }
}

@media (max-width: 560px) {
  .hs-auth-brand {
    padding: 20px 20px 50px;
  }

  .hs-brand-story {
    margin-top: 36px;
  }

  .hs-brand-headline {
    font-size: clamp(2.05rem, 11vw, 2.9rem);
  }

  .hs-brand-description {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .hs-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .hs-brand-mark img {
    width: 41px;
    height: 41px;
  }

  .hs-auth-main {
    padding-right: 10px;
    padding-bottom: 24px;
    padding-left: 10px;
  }

  .hs-auth-card {
    padding: 27px 20px;
    border-radius: 22px;
  }

  .hs-provider-grid {
    grid-template-columns: 1fr;
  }

  .hs-provider-button {
    justify-content: flex-start;
    padding-left: calc(50% - 61px);
  }

  .hs-password-rules {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .hs-auth-card,
  .hs-alert,
  .hs-provider-button,
  .hs-passkey-button,
  .hs-input,
  .hs-verification {
    border: 1px solid CanvasText;
  }
}
