@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
}

:root {
  --uh-forest-950: #08271d;
  --uh-forest-900: #0e3b2a;
  --uh-forest-800: #14543b;
  --uh-forest-700: #1c6e4c;
  --uh-gold-600: #d17a22;
  --uh-gold-300: #f1b97b;
  --uh-ivory: #f6f4ef;
  --uh-ink: #171a1d;
  --uh-muted: #566159;
  --uh-line: #bdc8c1;
}

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

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body,
.login-pf body {
  color: var(--uh-ink);
  background: var(--uh-ivory);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.uh-login-shell,
.pf-v5-c-login.uh-login-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  align-items: stretch;
  background: var(--uh-ivory);
}

.uh-login-story {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 74% 21%, rgb(241 185 123 / 24%), transparent 27%),
    linear-gradient(
      145deg,
      var(--uh-forest-800) 0%,
      var(--uh-forest-900) 58%,
      var(--uh-forest-950) 100%
    );
}

.uh-login-story::after {
  content: none;
}

.uh-login-story__grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  pointer-events: none;
}

.uh-login-story__orbit {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
  pointer-events: none;
}

.uh-login-story__orbit--one {
  top: -24%;
  right: -21%;
  width: min(48vw, 690px);
}

.uh-login-story__orbit--two {
  top: -10%;
  right: -13%;
  width: min(35vw, 510px);
}

.uh-login-story__logo {
  width: clamp(190px, 19vw, 280px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.uh-login-story__content {
  max-width: 720px;
  margin: auto 0;
  padding: clamp(3rem, 9vh, 7.5rem) 0;
}

.uh-eyebrow {
  margin: 0 0 1rem;
  color: var(--uh-forest-700);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.uh-eyebrow--light {
  color: var(--uh-gold-300);
}

.uh-login-story__title {
  max-width: 760px;
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.4rem, 7.2vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.uh-login-story__description {
  max-width: 590px;
  margin: 2rem 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.uh-login-story__footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgb(255 255 255 / 66%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.uh-login-story__pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--uh-gold-300);
  box-shadow: 0 0 0 6px rgb(241 185 123 / 13%);
}

.uh-login-access {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 4.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgb(14 59 42 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(14 59 42 / 4%) 1px, transparent 1px), var(--uh-ivory);
  background-size: 42px 42px;
}

.uh-login-access__topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #577065;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.uh-login-container,
.pf-v5-c-login__container.uh-login-container {
  width: min(100%, 510px);
  max-width: none;
  min-height: 0;
  margin: clamp(3rem, 8vh, 7rem) auto;
  padding: 0;
  display: block;
  grid-template-areas: none;
  grid-template-columns: none;
}

.uh-login-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
  display: grid;
  place-items: center;
  color: var(--uh-ivory);
  background: var(--uh-forest-900);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgb(14 59 42 / 20%);
}

.uh-login-card__icon svg {
  width: 22px;
  height: 22px;
}

#kc-header {
  display: none;
}

.uh-login-card,
.pf-v5-c-login__main.uh-login-card,
.pf-c-login__main.uh-login-card,
.card-pf.uh-login-card {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
  color: var(--uh-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.uh-login-card .pf-v5-c-login__main-header,
.uh-login-card .pf-c-login__main-header {
  margin: 0;
  padding: 0;
  display: block;
}

#kc-page-title,
.uh-login-card .pf-v5-c-title,
.uh-login-card .pf-c-title {
  margin: 0;
  color: var(--uh-ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

.kc-wizard-step,
.kc-wizard-title {
  display: block;
}

.kc-wizard-step {
  margin-bottom: 0.75rem;
  color: var(--uh-gold-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kc-wizard-title {
  max-width: 500px;
  color: var(--uh-ink);
  font-size: clamp(2.65rem, 4.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.uh-login-card__intro {
  max-width: 440px;
  margin: 1.5rem 0 2rem;
  color: var(--uh-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.uh-login-card .pf-v5-c-login__main-body,
.uh-login-card .pf-c-login__main-body {
  padding: 0;
}

#kc-form,
#kc-form-wrapper,
#kc-form-login {
  width: 100%;
}

#kc-form-login {
  display: grid;
  gap: 1.15rem;
}

#kc-form-login > .pf-v5-c-form__group,
#kc-form-login > .pf-c-form__group {
  margin: 0;
}

label,
.pf-v5-c-form__label-text,
.pf-c-form__label-text {
  color: #415249;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.pf-v5-c-form-control,
.pf-c-form-control {
  min-height: 54px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--uh-ink);
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: 3px;
  box-shadow: 0 7px 22px rgb(14 59 42 / 5%);
}

.pf-v5-c-form-control::before,
.pf-v5-c-form-control::after,
.pf-c-form-control::before,
.pf-c-form-control::after {
  display: none;
}

.pf-v5-c-form-control > input,
.pf-c-form-control > input,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0.85rem 1rem;
  color: var(--uh-ink);
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
}

.pf-v5-c-form-control:focus-within,
.pf-c-form-control:focus-within {
  border-color: var(--uh-gold-600);
  box-shadow: 0 0 0 3px rgb(209 122 34 / 18%);
}

.pf-v5-c-form-control > input:focus,
.pf-c-form-control > input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: 0;
}

.pf-v5-c-form-control__utilities,
.pf-c-form-control__utilities {
  padding-right: 0.4rem;
}

.pf-v5-c-input-group,
.pf-c-input-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pf-v5-c-input-group:has([data-password-toggle]) .pf-v5-c-form-control > input,
.pf-c-input-group:has([data-password-toggle]) .pf-c-form-control > input {
  padding-right: 56px;
}

.uh-login-identity {
  min-width: 0;
  min-height: 64px;
  padding: 0.6rem 0.7rem 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #edf2ef;
  border: 1px solid #d5dfd9;
  border-radius: 3px;
}

.uh-login-identity__summary {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.uh-login-identity__label {
  color: #607067;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.uh-login-identity__value {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--uh-ink);
  font-size: 0.95rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uh-login-identity__change {
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--uh-forest-700);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.pf-v5-c-button.pf-m-control[data-password-toggle],
.pf-c-button.pf-m-control[data-password-toggle] {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 6px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--uh-forest-700);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transform: translateY(-50%);
}

.pf-v5-c-button.pf-m-control[data-password-toggle]:hover,
.pf-c-button.pf-m-control[data-password-toggle]:hover {
  color: var(--uh-forest-900);
  background: #edf4f0;
}

.pf-v5-c-button.pf-m-control[data-password-toggle] i,
.pf-c-button.pf-m-control[data-password-toggle] i {
  font-size: 0.9rem;
}

.pf-v5-c-button.pf-m-control[data-password-toggle]::after,
.pf-c-button.pf-m-control[data-password-toggle]::after {
  display: none;
}

.uh-login-identity__change:hover {
  color: var(--uh-forest-900);
  background: #dfe9e3;
}

.uh-reset-login__label {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

#reset-login:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(209 122 34 / 32%);
  outline-offset: 3px;
}

.pf-v5-c-check,
.pf-c-check {
  color: #536259;
}

.pf-v5-c-check__input,
.pf-c-check__input {
  accent-color: var(--uh-forest-900);
}

#kc-login,
.pf-v5-c-button.pf-m-primary,
.pf-c-button.pf-m-primary {
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  background: var(--uh-forest-900);
  border: 1px solid var(--uh-forest-900);
  border-radius: 3px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 16px 35px rgb(14 59 42 / 16%);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.uh-login-button__label {
  min-width: 0;
  text-align: left;
}

.uh-login-button__arrow {
  display: inline-grid;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

#kc-login:hover,
.pf-v5-c-button.pf-m-primary:hover,
.pf-c-button.pf-m-primary:hover {
  color: #fff;
  background: var(--uh-forest-800);
  border-color: var(--uh-forest-800);
  box-shadow: 0 20px 42px rgb(14 59 42 / 22%);
  transform: translateY(-2px);
}

#kc-login:disabled,
.pf-v5-c-button.pf-m-primary:disabled,
.pf-c-button.pf-m-primary:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

a {
  color: var(--uh-forest-700);
  font-weight: 700;
}

.pf-v5-c-alert.pf-m-danger,
.pf-c-alert.pf-m-danger,
.alert-error {
  color: #732222;
  background: #fff0ed;
  border-color: #d98b80;
}

.kc-feedback-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.uh-login-card__assurance {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  color: #647168;
}

.uh-login-card__assurance svg {
  width: 18px;
  height: 18px;
  margin-top: 0.08rem;
}

.uh-login-card__assurance p,
.uh-login-access__help {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.uh-login-access__help {
  color: #69746c;
}

@media (max-width: 900px) {
  .uh-login-shell,
  .pf-v5-c-login.uh-login-shell {
    display: block;
  }

  .uh-login-story,
  .uh-login-access {
    min-height: auto;
  }

  .uh-login-story {
    min-height: 43vh;
    padding: 2rem clamp(1.35rem, 6vw, 3rem) 2.5rem;
  }

  .uh-login-story__logo {
    width: 190px;
  }

  .uh-login-story__content {
    padding: 4.5rem 0 3.5rem;
  }

  .uh-login-story__title {
    max-width: 620px;
    font-size: clamp(3rem, 12vw, 5.7rem);
  }

  .uh-login-story__description {
    max-width: 620px;
  }

  .uh-login-access {
    padding: 2rem clamp(1.35rem, 6vw, 3rem);
  }

  .uh-login-container,
  .pf-v5-c-login__container.uh-login-container {
    margin: 4rem auto;
  }

  .kc-wizard-title {
    font-size: clamp(2.65rem, 8vw, 4.4rem);
  }
}

@media (max-width: 520px) {
  .uh-login-story {
    min-height: 390px;
  }

  .uh-login-story__content {
    padding: 3.5rem 0 2.75rem;
  }

  .uh-login-story__title {
    font-size: clamp(2.9rem, 13vw, 4.2rem);
  }

  .uh-login-story__description {
    margin-top: 1.5rem;
    font-size: 0.98rem;
  }

  .uh-login-story__footer {
    font-size: 0.68rem;
  }

  .uh-login-access__topline {
    font-size: 0.62rem;
  }

  .uh-login-container,
  .pf-v5-c-login__container.uh-login-container {
    margin: 3.5rem auto;
  }

  .uh-login-card__icon {
    margin-bottom: 1.65rem;
  }

  .kc-wizard-title {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .uh-login-card__intro {
    margin-top: 1.25rem;
    font-size: 0.98rem;
  }
}

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