{
  "id": "auth-card",
  "name": "AuthCard",
  "level": "organism",
  "status": "stable",
  "purpose": "Sign in and sign up: credentials, a one-time code, a forgotten password, and what follows each.",
  "description": "The card a person signs in or signs up with, walking them from their email and password or a magic link through a one-time code, a forgotten password and the final confirmation.",
  "role": "surface",
  "import": "@rrios-forge/ui/organisms/auth-card",
  "exports": [
    "AuthCard",
    "AUTH_CARD_DENSITIES",
    "AUTH_CARD_SIZES",
    "AUTH_CARD_STEPS",
    "authCardVariants"
  ],
  "source": "packages/ui/src/organisms/auth-card",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md",
        "lg"
      ],
      "default": "md",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    }
  ],
  "needs": [
    {
      "need": "Auth flow",
      "answer": "`AuthCard`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [
    {
      "id": "ADR-032",
      "title": "Themes compose by layers; brands are a checked layer"
    }
  ],
  "stories": [
    {
      "name": "Magic link (default)",
      "id": "components-organisms-authcard--magic-link",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-authcard--magic-link",
      "frame": "/iframe.html?id=components-organisms-authcard--magic-link&viewMode=story"
    },
    {
      "name": "Magic link only (no password toggle)",
      "id": "components-organisms-authcard--magic-link-only",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-authcard--magic-link-only",
      "frame": "/iframe.html?id=components-organisms-authcard--magic-link-only&viewMode=story"
    },
    {
      "name": "OTP step",
      "id": "components-organisms-authcard--one-time-code",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-authcard--one-time-code",
      "frame": "/iframe.html?id=components-organisms-authcard--one-time-code&viewMode=story"
    },
    {
      "name": "Forgot password",
      "id": "components-organisms-authcard--forgot",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-authcard--forgot",
      "frame": "/iframe.html?id=components-organisms-authcard--forgot&viewMode=story"
    },
    {
      "name": "With global error",
      "id": "components-organisms-authcard--error-state",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-authcard--error-state",
      "frame": "/iframe.html?id=components-organisms-authcard--error-state&viewMode=story"
    },
    {
      "name": "Success",
      "id": "components-organisms-authcard--success",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-authcard--success",
      "frame": "/iframe.html?id=components-organisms-authcard--success&viewMode=story"
    },
    {
      "name": "Sizes",
      "id": "components-organisms-authcard--sizes",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-authcard--sizes",
      "frame": "/iframe.html?id=components-organisms-authcard--sizes&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/organisms/auth-card.stories.tsx"
}
