.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  align-items: stretch;
  justify-items: stretch;
  min-height: 100dvh;
  padding: 0;
  background: #fafbf7;
}

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(30px, 4.8vw, 72px);
  color: #f5faf6;
  background: linear-gradient(158deg, #0c2824f2, #102d2670 55%, #0b2822f2),
    #13332d url("auth-architecture.webp") center / cover no-repeat;
}

.auth-story .brand {
  margin: 0;
  font-size: 21px;
}

.auth-caption {
  max-width: 12ch;
  margin: 0;
  padding-inline-start: 22px;
  border-inline-start: 2px solid #c1e8cd;
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.auth-form-area {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(28px, 5.4vw, 84px);
}

.auth-card {
  width: min(100%, 420px);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #19322b;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.auth-card h1 {
  margin: 0 0 10px;
  color: #102c25;
  font-size: clamp(29px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.auth-card > .muted {
  margin-bottom: 26px;
  color: #4d6158;
  line-height: 1.55;
}

.access-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: #4d6158;
  font-size: 13px;
}

.access-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.access-steps li::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #9daea3;
}

.access-steps li[aria-current="step"] {
  color: #163f33;
  font-weight: 700;
}

.access-steps li[aria-current="step"]::before {
  background: currentColor;
}

.auth-card .stack {
  gap: 17px;
}

.auth-card .stack label {
  color: #19322b;
  font-size: 14px;
}

.auth-card .stack input:not([type="checkbox"]):not([type="hidden"]) {
  min-height: 49px;
  margin-top: 5px;
  padding: 10px 13px;
  border-color: #859c8f;
  border-radius: 8px;
  background: #fff;
  color: #19322b;
  font-size: 16px;
}

.auth-card .stack input[aria-invalid="true"]:not([type="checkbox"]) {
  border-color: #ab455b;
}

.auth-card input[autocomplete="one-time-code"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .28em;
}

.auth-card :is(a, button, input, select):focus-visible {
  outline-color: #236554;
}

.auth-card .stack .button {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: normal;
}

.auth-card .auth-primary {
  justify-content: space-between;
  text-align: start;
}

.auth-primary .ui-icon {
  width: 18px;
  height: 18px;
}

.password-field {
  position: relative;
}

.auth-card .stack .password-field input:not([type="checkbox"]) {
  margin-top: 5px;
  padding-inline-end: 49px;
}

.password-toggle {
  position: absolute;
  inset-inline-end: 4px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4d6158;
}

.password-toggle:hover {
  background: #edf4ed;
  color: var(--teal);
}

.password-toggle .ui-icon {
  width: 18px;
  height: 18px;
}

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

.auth-actions .stack {
  flex-basis: 100%;
}

.auth-actions > a, .auth-actions .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  color: var(--teal);
}

.auth-card .notice, .auth-card .errorlist, .auth-help, .auth-card [data-passkey-status] {
  font-size: 13px;
}

.auth-help, .auth-card [data-passkey-status] {
  margin: 0;
  color: #4d6158;
}

@media (max-width: 740px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-story {
    gap: 17px;
    padding: 21px 24px;
    background-position: center, center 42%;
  }

  .auth-story .brand {
    font-size: 18px;
  }

  .auth-story .mark, .auth-story .office-logo {
    width: 34px;
    height: 34px;
  }

  .auth-caption {
    max-width: none;
    padding-inline-start: 13px;
    font-size: 15px;
    letter-spacing: -.01em;
    line-height: 1.35;
  }

  .auth-form-area {
    place-items: start center;
    padding: 27px 24px 38px;
  }
}
