@font-face {
  font-family: "HMP Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/hmp/ibm-plex-mono.otf") format("opentype");
}

@font-face {
  font-family: "HMP Valve";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/hmp/pp-valve-medium.otf") format("opentype");
}

:root {
  --hmp-login-accent: #ff5812;
  --hmp-login-text: #fff;
  --hmp-login-muted: rgb(255 255 255 / 78%);
  --hmp-login-focus: #ffd2bf;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

.hmp-login-page {
  background: #070707;
  color: var(--hmp-login-text);
  margin: 0;
  min-width: 20rem;
}

.hmp-login-main {
  min-height: 100vh;
  min-height: 100dvh;
}

.hmp-login-background {
  background: #070707;
  inset: 0;
  overflow: hidden;
  position: fixed;
  z-index: 0;
}

.hmp-login-background::after {
  background: rgb(0 0 0 / 48%);
  content: "";
  inset: 0;
  position: absolute;
}

.hmp-login-background img,
.hmp-login-background video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transition: opacity .3s ease-in-out;
  width: 100%;
}

.hmp-login-background video {
  opacity: 0;
}

.hmp-login-background.is-video-active video {
  opacity: 1;
}

.hmp-login-background.is-video-active img {
  opacity: 0;
}

.hmp-login-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.25rem, 3vw, 3.75rem) clamp(1.125rem, 4vw, 4.5rem) clamp(1rem, 2vw, 1.5rem);
  position: relative;
  z-index: 1;
}

.hmp-login-brand {
  margin: 0 auto;
  max-width: 71.25rem;
  width: 100%;
}

.hmp-login-brand img {
  display: block;
  height: auto;
  width: 100%;
}

.hmp-login-content {
  align-self: start;
  margin: clamp(2rem, 9vh, 5.5rem) auto clamp(2.5rem, 8vh, 6.5rem);
  max-width: 55rem;
  width: 100%;
}

.hmp-login-form {
  width: 100%;
}

.hmp-login-field {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 88%);
  display: grid;
  gap: 1.875rem;
  grid-template-columns: calc(25% - 1.875rem) 1fr;
  padding: 0 0 .625rem;
}

.hmp-login-field + .hmp-login-field {
  margin-top: .5rem;
}

.hmp-login-field label,
.hmp-login-field input {
  color: var(--hmp-login-text);
  font-family: "HMP Valve", sans-serif;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.2;
}

.hmp-login-field label {
  margin: 0;
}

.hmp-login-input {
  min-width: 0;
}

.hmp-login-field input {
  background: transparent;
  border: 0;
  display: block;
  min-height: 3rem;
  outline: 0;
  padding: .2rem 0;
  width: 100%;
}

.hmp-login-field:focus-within {
  border-bottom-color: var(--hmp-login-accent);
  box-shadow: 0 .125rem 0 var(--hmp-login-accent);
}

.hmp-login-submit:focus-visible {
  outline: .2rem solid var(--hmp-login-focus);
  outline-offset: .25rem;
}

.hmp-login-field-validation {
  color: #fff;
  display: block;
  font-family: "HMP Plex Mono", monospace;
  font-size: .75rem;
  letter-spacing: .04em;
  margin-top: .2rem;
}

.hmp-login-alert,
.hmp-login-validation {
  background: var(--hmp-login-accent);
  color: #fff;
  font-family: "HMP Plex Mono", monospace;
  font-size: .82rem;
  letter-spacing: .06em;
  margin: 0 auto 1.15rem;
  max-width: max-content;
  padding: .25rem .75rem;
  text-align: center;
}

.hmp-login-remember {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  gap: .9375rem;
  letter-spacing: .07em;
  line-height: 1.375rem;
  margin-top: 1rem;
  text-transform: uppercase;
}

.hmp-login-remember input {
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
  height: 1.375rem;
  margin: 0;
  width: 1.375rem;
}

.hmp-login-remember input:checked {
  background: radial-gradient(circle, var(--hmp-login-accent) 0 .4375rem, #fff .5rem);
}

.hmp-login-remember input:focus-visible {
  outline: .2rem solid var(--hmp-login-focus);
  outline-offset: .2rem;
}

.hmp-login-recovery-link {
  color: #fff;
  display: inline-block;
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  letter-spacing: .07em;
  line-height: 1.375rem;
  margin-top: .9rem;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.hmp-login-status {
  background: rgb(0 0 0 / 66%);
  border: 1px solid rgb(255 255 255 / 45%);
  color: #fff;
  font-family: "HMP Plex Mono", monospace;
  font-size: .82rem;
  line-height: 1.6;
  margin: 0 auto 1.15rem;
  padding: .55rem .8rem;
  text-align: center;
}

.hmp-login-alert[hidden],
.hmp-login-submit [hidden] {
  display: none;
}

.hmp-login-validation:empty {
  display: none;
}

.hmp-login-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.hmp-login-submit {
  background: var(--hmp-login-accent);
  border: 0;
  border-radius: 1rem;
  color: #fff;
  cursor: pointer;
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  letter-spacing: .07em;
  line-height: 1.375rem;
  padding: .3125rem 1rem;
  text-transform: uppercase;
}

.hmp-login-submit:hover {
  background: #ff733b;
}

.hmp-login-submit:disabled {
  cursor: wait;
  opacity: .72;
}

.hmp-two-factor-content {
  max-width: 55rem;
}

.hmp-two-factor-header {
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  line-height: 1.375rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.hmp-two-factor-header h1 {
  font-family: "HMP Valve", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.hmp-two-factor-header p,
.hmp-two-factor-support {
  line-height: 1.375rem;
  margin: 0;
}

.hmp-two-factor-header a,
.hmp-two-factor-support a,
.hmp-two-factor-back {
  color: #fff;
  text-underline-offset: .2em;
}

.hmp-two-factor-defer {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.hmp-two-factor-setup-steps p {
  margin: 0 0 .75em;
}

.hmp-two-factor-setup-barcode {
  margin: 1em 0;
  text-align: center;
}

.hmp-two-factor-setup-barcode img {
  background: #fff;
  height: auto;
  max-width: 100%;
  width: 11.25rem;
}

.hmp-recovery-content {
  max-width: 48rem;
}

.hmp-recovery-form {
  background: rgb(0 0 0 / 50%);
  border: 1px solid rgb(255 255 255 / 28%);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.hmp-recovery-field {
  grid-template-columns: 14rem 1fr;
}

.hmp-recovery-link-button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: "HMP Plex Mono", monospace;
  font-size: .75rem;
  padding: .4rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.hmp-recovery-primary-link {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.hmp-recovery-link-button:focus-visible,
.hmp-login-recovery-link:focus-visible {
  outline: .2rem solid var(--hmp-login-focus);
  outline-offset: .25rem;
}

.hmp-two-factor-field {
  grid-template-columns: 1fr;
}

.hmp-two-factor-field input {
  text-align: center;
}

.hmp-two-factor-support {
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  margin: 1.25rem 0;
  text-align: center;
}

.hmp-two-factor-actions {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  row-gap: 4dvh;
}

.hmp-two-factor-actions .hmp-login-submit {
  min-width: 50%;
}

.hmp-two-factor-back {
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  letter-spacing: .07em;
  line-height: 1.375rem;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.hmp-terms-content {
  max-width: 48rem;
}

.hmp-terms-form {
  background: rgb(0 0 0 / 74%);
  border: 1px solid rgb(255 255 255 / 35%);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.hmp-terms-header {
  font-family: "HMP Plex Mono", monospace;
}

.hmp-terms-header h1 {
  font-family: "HMP Valve", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
}

.hmp-terms-header p {
  line-height: 1.65;
  margin: 0;
}

.hmp-terms-option {
  align-items: flex-start;
  display: grid;
  font-family: "HMP Plex Mono", monospace;
  gap: .8rem;
  grid-template-columns: 1.25rem 1fr;
  line-height: 1.65;
  margin-top: 1.75rem;
}

.hmp-terms-option input {
  accent-color: var(--hmp-login-accent);
  height: 1.15rem;
  margin-top: .25rem;
  width: 1.15rem;
}

.hmp-terms-option input.is-invalid {
  outline: .18rem solid var(--hmp-login-accent);
  outline-offset: .2rem;
}

.hmp-terms-option a,
.hmp-terms-cancel {
  color: #fff;
  text-underline-offset: .2em;
}

.hmp-terms-warning {
  color: #fff;
  font-family: "HMP Plex Mono", monospace;
  font-size: .78rem;
  margin: 1rem 0 0 2.05rem;
}

.hmp-terms-warning[hidden] {
  display: none;
}

.hmp-terms-actions {
  align-items: center;
  gap: 1rem;
}

.hmp-terms-cancel {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "HMP Plex Mono", monospace;
  font-size: .75rem;
  padding: .45rem;
  text-decoration: underline;
}

.hmp-terms-cancel:focus-visible,
.hmp-terms-option input:focus-visible {
  outline: .2rem solid var(--hmp-login-focus);
  outline-offset: .25rem;
}

.hmp-login-footer {
  align-items: baseline;
  color: #fff;
  column-gap: 8rem;
  display: flex;
  font-family: "HMP Plex Mono", monospace;
  font-size: .625rem;
  line-height: 1.25rem;
  margin: 0 auto;
  max-width: 55rem;
  text-transform: uppercase;
  width: 100%;
}

.hmp-login-footer p {
  margin: 0;
}

.hmp-login-footer-left {
  align-items: baseline;
  column-gap: 7rem;
  display: flex;
  flex: 1;
}

.hmp-login-footer-policies {
  white-space: nowrap;
}

.hmp-login-footer a,
.hmp-login-link {
  color: #fff;
  text-underline-offset: 5px;
}

.hmp-login-footer-policies a {
  text-decoration: none;
}

.hmp-login-footer-policies a:hover,
.hmp-login-footer-policies a:focus {
  text-decoration: underline;
}

.hmp-login-footer-links {
  align-items: baseline;
  column-gap: 2.1875rem;
  display: flex;
}

.hmp-login-footer-main-site {
  display: none;
}

.hmp-login-footer-copyright {
  white-space: nowrap;
}

.hmp-login-footer a:focus-visible,
.hmp-login-link:focus-visible,
.hmp-login-button-secondary:focus-visible {
  outline: .2rem solid var(--hmp-login-focus);
  outline-offset: .25rem;
}

.hmp-login-form .hmp-login-actions {
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.hmp-login-actions-left,
.hmp-login-actions-right {
  align-items: center;
  column-gap: 2rem;
  display: flex;
}

.hmp-login-actions-left .hmp-login-remember,
.hmp-login-actions-right .hmp-login-recovery-link {
  margin-top: 0;
}

.hmp-login-link {
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  letter-spacing: .07em;
  line-height: 1.375rem;
  text-transform: uppercase;
}

.hmp-login-buttons {
  align-items: center;
  column-gap: 2rem;
  display: flex;
}

.hmp-login-button-secondary {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 1rem;
  color: #231f20;
  cursor: pointer;
  display: inline-flex;
  font-family: "HMP Plex Mono", monospace;
  font-size: .875rem;
  letter-spacing: .07em;
  line-height: 1.375rem;
  padding: .3125rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.hmp-login-button-secondary:hover {
  background: #e6e6e6;
  color: #231f20;
}

.hmp-recovery-dialog {
  background: linear-gradient(180deg, #f7f6ee 0%, #a6b2ef 50%, #5d777a 100%);
  border: 0;
  border-radius: 6px;
  color: #000;
  height: fit-content;
  inset: 0;
  margin: auto;
  max-width: calc(100vw - 1.25rem);
  padding: 0;
  position: fixed;
  width: 41.6875rem;
}

.hmp-recovery-dialog::backdrop {
  background: rgb(0 0 0 / 50%);
}

.hmp-recovery-dialog-form {
  font-family: "HMP Valve", sans-serif;
  padding: 2.375rem 2rem 1.75rem;
  position: relative;
}

.hmp-recovery-dialog-header {
  margin-bottom: .4375rem;
}

.hmp-recovery-dialog-header h2 {
  color: #3a3030;
  font-family: "HMP Valve", sans-serif;
  font-size: 2.1875rem;
  font-weight: 500;
  line-height: 2.25rem;
  margin: 0;
  padding-right: 2.5rem;
  text-transform: uppercase;
}

.hmp-recovery-dialog-close {
  background: transparent;
  border: 0;
  color: transparent;
  cursor: pointer;
  font-size: 0;
  height: 1.5rem;
  padding: 0;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 1.5rem;
}

.hmp-recovery-dialog-close::before,
.hmp-recovery-dialog-close::after {
  background: #231f20;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: 50%;
  width: 100%;
}

.hmp-recovery-dialog-close::before {
  transform: translateY(-50%) rotate(45deg);
}

.hmp-recovery-dialog-close::after {
  transform: translateY(-50%) rotate(-45deg);
}

.hmp-recovery-dialog-message {
  color: #000;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: .625rem 0 2.5rem;
  padding-right: 10%;
}

.hmp-recovery-dialog-choice {
  align-items: center;
  column-gap: 0;
  display: grid;
  grid-template-columns: 3.125rem 1fr;
  row-gap: .375rem;
}

.hmp-recovery-dialog-choice label {
  color: #000;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.hmp-recovery-dialog-choice input[type="radio"] {
  appearance: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  height: 1.3125rem;
  margin: 0;
  width: 1.3125rem;
}

.hmp-recovery-dialog-choice input[type="radio"]:checked {
  background: radial-gradient(circle, var(--hmp-login-accent) 0 .40625rem, #fff .46875rem);
}

.hmp-recovery-dialog-choice input:not([type="radio"]) {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #231f20;
  color: #000;
  font-family: "HMP Valve", sans-serif;
  font-size: 1.375rem;
  grid-column: 2;
  line-height: 1.5rem;
  outline: 0;
  padding: 0;
}

.hmp-recovery-dialog-choice input:disabled {
  opacity: .55;
}

.hmp-recovery-dialog-or {
  color: #000;
  font-size: 1.5rem;
  line-height: 2.25rem;
  margin: .8125rem 0 1.875rem 3.125rem;
}

.hmp-recovery-dialog-actions {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.hmp-recovery-dialog .hmp-login-alert {
  margin-bottom: 1rem;
}

.hmp-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: .0625rem;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: .0625rem;
}

.hmp-handoff-shell {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hmp-handoff-brand {
  display: block;
  height: auto;
  max-width: 44rem;
  width: min(78vw, 44rem);
}

.hmp-handoff-progress {
  margin-top: clamp(2rem, 8vh, 5rem);
}

.hmp-handoff-spinner {
  animation: hmp-handoff-spin .8s linear infinite;
  border: .2rem solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  border-top-color: var(--hmp-login-accent);
  display: block;
  height: 2.4rem;
  width: 2.4rem;
}

.hmp-handoff-form {
  margin-top: 2rem;
}

@keyframes hmp-handoff-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 767.98px) {
  .hmp-login-shell {
    padding: 1.25rem 1.125rem 1rem;
  }

  .hmp-login-brand {
    margin-top: clamp(1rem, 5vh, 3rem);
  }

  .hmp-login-content {
    margin-block: clamp(2.5rem, 9vh, 5rem);
  }

  .hmp-login-field {
    gap: .1rem;
    grid-template-columns: 1fr;
    padding-bottom: .45rem;
  }

  .hmp-two-factor-field {
    grid-template-columns: 1fr;
  }

  .hmp-recovery-field {
    grid-template-columns: 1fr;
  }

  .hmp-login-field + .hmp-login-field {
    margin-top: 1.3rem;
  }

  .hmp-login-field label,
  .hmp-login-field input {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .hmp-login-field input {
    min-height: 2.8rem;
  }

  .hmp-login-submit {
    min-height: 2.75rem;
    min-width: 7.5rem;
    padding-block: .6rem;
  }

  .hmp-login-remember,
  .hmp-login-recovery-link,
  .hmp-login-link {
    align-items: center;
    display: inline-flex;
    min-height: 2.75rem;
  }

  .hmp-login-form .hmp-login-actions,
  .hmp-login-actions-left,
  .hmp-login-actions-right {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hmp-login-actions-left .hmp-login-remember,
  .hmp-login-actions-right .hmp-login-recovery-link {
    display: flex;
  }

  .hmp-login-buttons {
    justify-content: flex-end;
  }

  .hmp-login-button-secondary {
    justify-content: center;
    min-height: 2.75rem;
    min-width: 7.5rem;
  }

  .hmp-login-footer,
  .hmp-login-footer-left {
    align-items: flex-start;
    flex-direction: column;
    row-gap: 1rem;
  }

  .hmp-login-footer-left {
    flex-direction: column-reverse;
  }

  .hmp-login-footer-links {
    justify-content: space-between;
    width: 100%;
  }

  .hmp-login-footer-links a {
    font-size: .875rem;
  }

  .hmp-login-footer-main-site {
    display: inline;
  }

  .hmp-login-actions-left .hmp-login-link {
    display: none;
  }

  .hmp-login-footer-policies {
    white-space: normal;
  }

  .hmp-recovery-dialog-header h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 48rem) and (max-width: 55.625rem) {
  .hmp-login-form .hmp-login-actions,
  .hmp-login-actions-right {
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .hmp-login-footer {
    column-gap: 2rem;
  }

  .hmp-login-footer-left {
    column-gap: 2rem;
  }
}

@media (max-height: 44rem) and (min-width: 48rem) {
  .hmp-login-brand {
    max-width: 52rem;
  }

  .hmp-login-content {
    margin-block: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .hmp-handoff-spinner {
    animation: none;
    border-color: var(--hmp-login-accent);
  }

  .hmp-login-background img,
  .hmp-login-background video {
    transition: none;
  }
}

/* Match the Legacy login: the invisible challenge remains active without its badge. */
.grecaptcha-badge {
  visibility: hidden !important;
}
