.password-row input,
.code-row input {
  min-width: 0;
  flex: 1;
  width: auto;
}

html,
body,
.auth-page,
.auth-shell,
.auth-card {
  background-color: #faf9f6;
}

.auth-card input,
.auth-card .password-toggle,
.auth-card .code-row button {
  background-color: #fffefa;
}

@media (min-width: 861px) {
  .auth-shell {
    grid-template-columns: minmax(380px, 42fr) minmax(500px, 58fr);
    grid-template-areas: "story form";
  }

  .auth-story {
    min-height: 100vh;
    margin: 0;
    padding: 44px clamp(40px, 4vw, 68px);
    border-radius: 0 24px 24px 0;
    color: #fff;
    background:
      linear-gradient(150deg, rgba(19, 27, 43, .22), rgba(8, 12, 20, .72)),
      linear-gradient(145deg, #182235 0%, #111823 52%, #0b1018 100%);
  }

  .auth-story::before {
    width: 520px;
    height: 520px;
    right: -280px;
    top: -210px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: radial-gradient(circle, rgba(105, 144, 198, .22), transparent 66%);
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .015);
  }

  .auth-story::after {
    content: "";
    width: clamp(220px, 25vw, 360px);
    height: clamp(82px, 10vw, 136px);
    left: auto;
    right: -24px;
    bottom: 24px;
    border-radius: 0;
    background: url("../assets/logo-exact.svg") right center / contain no-repeat;
    box-shadow: none;
    opacity: .065;
    filter: brightness(0) invert(1);
  }

  .auth-story__content {
    max-width: 440px;
  }

  .auth-story h2 {
    max-width: 430px;
    margin: 24px 0 16px;
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1.03;
    letter-spacing: -.045em;
    color: #fff;
  }

  .auth-story__content > p {
    max-width: 370px;
    font-size: 14px;
    line-height: 1.78;
    color: #aeb8c7;
  }

  .auth-benefits {
    max-width: 420px;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 34px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
  }

  .auth-benefits div {
    display: grid;
    grid-template-columns: 34px 1fr;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .auth-benefits div:last-child {
    border-bottom: 0;
  }

  .auth-benefits span {
    grid-row: 1 / 3;
    padding-top: 2px;
    color: #d83249;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
  }

  .auth-benefits strong {
    margin-top: 0;
    color: #f4f6f9;
    font-size: 12px;
    letter-spacing: .01em;
  }

  .auth-benefits small {
    margin-top: 4px;
    color: #929dad;
    font-size: 10px;
    line-height: 1.5;
  }

  .auth-brand img {
    filter: brightness(0) invert(1);
  }

  .auth-eyebrow {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .075);
    background: rgba(255, 255, 255, .045);
    color: #a5b0c0;
    letter-spacing: .2em;
  }

  .auth-story__foot {
    color: #6f7b8d;
  }

  .auth-card {
    width: min(464px, calc(100% - 72px));
    padding: 40px 36px;
  }

  .auth-card h1 {
    margin-top: 36px;
  }

  .forgot {
    display: block;
    width: max-content;
    margin: 16px 0 0 auto;
    color: #d83249;
    font-size: 13px;
    font-weight: 700;
  }

  .forgot:hover {
    color: #b91f35;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
