@layer components {
  .auth {
    display: grid;
    grid-template-columns: min(28rem, 100%);
    justify-content: center;
    align-content: start;
    min-height: calc(100dvh - var(--header-height));
    padding: var(--space-2xl) var(--space-md);
    background: var(--sheet-head);
  }

  .auth__card {
    padding: var(--space-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }

  .auth__title {
    font-size: var(--text-figure);
    font-weight: var(--weight-display);
    line-height: 1.1;
    letter-spacing: var(--tracking-display);
    color: var(--navy);
  }

  .auth__lede {
    margin-top: var(--space-sm);
    line-height: 1.5;
    color: var(--ink-muted);

    & strong {
      font-weight: var(--weight-emphasis);
      color: var(--ink);
    }
  }

  .auth__form {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }

  .auth__submit {
    justify-content: center;
    width: 100%;
  }

  .auth__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-xs) var(--space-sm);
    margin-top: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--ink-muted);

    & form {
      display: contents;
    }
  }

  .auth__link {
    padding: 0;
    font: inherit;
    font-weight: var(--weight-emphasis);
    color: var(--blue);
    background: none;
    border: 0;
    cursor: pointer;

    &:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }

  @media (max-width: 720px) {
    .auth {
      padding-block: var(--space-lg);
    }

    .auth__card {
      padding: var(--space-lg);
    }
  }
}
