@layer components {
  .auth-layout {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
  }

  .auth-card {
    width: min(24rem, 95vw);
    max-height: 95vh;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--dialog-border-color, lightgray);
    border-radius: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
  }

  .auth-title {
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
  }

  .auth-form-actions {
    margin-top: 0.5rem;
  }

  .auth-form-links {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
  }

  .auth-link {
    color: var(--color-primary, hsl(162, 35%, 35%));
    font-weight: 500;
    text-decoration: none;
  }

  .auth-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
