import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Canvas } from '@storybook/addon-docs/blocks';
import * as LoginPageStories from './LoginPage.stories';

<Meta of={LoginPageStories} />

<Title />
<Subtitle>A complete, responsive login screen with hero image and SSO support.</Subtitle>

<Description />

<Primary />

---

## Features
- **Responsive Layout**: Side-by-side on desktop, stacked on mobile.
- **SSO Options**: Built-in support for Google, MT Login, and gov.br.
- **Form States**: Integrated loading and error handling.

<Canvas>
  <LoginPageStories.Default />
</Canvas>

---

## AI Best Practices

> [!IMPORTANT]
> - **Logic** — Provide the `onLogin` callback to handle actual authentication.
> - **Customization** — Customize hero images and SSO buttons as per project requirements.
> - **Routing** — The page uses `useNavigate()` for the forgot-password flow.
