:root {
  --hs-auth-bg: #f8fafc;
  --hs-auth-panel: #ffffff;
  --hs-auth-border: #d9e0ea;
  --hs-auth-border-strong: #b8c4d4;
  --hs-auth-text: #111827;
  --hs-auth-muted: #667085;
  --hs-auth-blue: #2563eb;
  --hs-auth-blue-dark: #1d4ed8;
  --hs-auth-red: #dc2626;
  --hs-auth-green: #15803d;
}

body.hs-auth-locked {
  background: var(--hs-auth-bg);
}

body.hs-auth-locked .jh-shell,
body.hs-auth-locked .hs-shell {
  display: none !important;
}

.hs-auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
  background: var(--hs-auth-bg);
}

.hs-auth-panel {
  width: min(430px, 100%);
  border: 1px solid var(--hs-auth-border);
  border-radius: 14px;
  background: var(--hs-auth-panel);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 30px;
}

.hs-auth-kicker {
  margin: 0 0 10px;
  color: var(--hs-auth-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hs-auth-title {
  margin: 0;
  color: var(--hs-auth-text);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hs-auth-copy {
  margin: 12px 0 24px;
  color: var(--hs-auth-muted);
  font-size: 14px;
  line-height: 1.55;
}

.hs-auth-form {
  display: grid;
  gap: 14px;
}

.hs-auth-field {
  display: grid;
  gap: 7px;
}

.hs-auth-field span {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.hs-auth-field input {
  height: 44px;
  width: 100%;
  border: 1px solid var(--hs-auth-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--hs-auth-text);
  font: inherit;
  padding: 0 13px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.hs-auth-field input:focus {
  border-color: #8bb7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.hs-auth-message {
  display: none;
  margin: 2px 0 0;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.hs-auth-message.is-error,
.hs-auth-message.is-success {
  display: block;
}

.hs-auth-message.is-error {
  background: #fef2f2;
  color: var(--hs-auth-red);
}

.hs-auth-message.is-success {
  background: #f0fdf4;
  color: var(--hs-auth-green);
}

.hs-auth-submit,
.hs-auth-secondary {
  height: 44px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hs-auth-submit {
  border: 1px solid var(--hs-auth-blue);
  background: var(--hs-auth-blue);
  color: #ffffff;
  transition: background 140ms ease, border-color 140ms ease;
}

.hs-auth-submit:hover {
  border-color: var(--hs-auth-blue-dark);
  background: var(--hs-auth-blue-dark);
}

.hs-auth-secondary {
  border: 1px solid var(--hs-auth-border);
  background: #ffffff;
  color: var(--hs-auth-text);
}

.hs-auth-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.hs-auth-link {
  border: 0;
  background: transparent;
  color: var(--hs-auth-blue);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.hs-auth-switch {
  margin: 4px 0 0;
  color: var(--hs-auth-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.hs-auth-account {
  position: relative;
  margin-left: 12px;
}

.hs-auth-account-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

.hs-auth-caret {
  font-size: 10px;
  opacity: 0.75;
}

.hs-auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  min-width: 150px;
  border: 1px solid var(--hs-auth-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 6px;
}

.hs-auth-menu[hidden] {
  display: none;
}

.hs-auth-menu button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hs-auth-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 11px;
  text-align: left;
}

.hs-auth-menu button:hover {
  background: #f1f5f9;
}

.hs-main-nav-right .hs-auth-account-button {
  color: #ffffff;
}

.jh-nav .hs-auth-account-button {
  color: #ffffff;
}

@media (max-width: 640px) {
  .hs-auth-panel {
    padding: 24px;
  }

  .hs-auth-title {
    font-size: 24px;
  }

  .hs-auth-account {
    margin-left: 0;
  }
}
