# KptAuth (kpt-auth) An authentication screen: sign in, sign up and password recovery in one component, with a promo panel and a list of external providers (OAuth/SSO). Signal Forms. The component is **presentational** - it does not call an API and does not navigate; the app does that in the handlers. Import: `import { KptAuth, KptAuthProviderDef } from '@konce-pt/angular';` ## Selector `kpt-auth` ## Inputs - `mode`: model<'signIn' | 'signUp' | 'forgot'> = 'signIn' - two-way (the app can force a mode) - `layout`: 'slider' | 'split' = 'slider' - the promo panel slides to the other side / stays put - `providers`: KptAuthProvider[] = [] - `{ id, label, icon?, iconUrl?, description? }` - `providerLayout`: 'list' | 'grid' = 'list' - a full-width list / a grid of icons with captions - `showName`, `requireTerms`, `showRemember`: boolean = true - whether the fields are present - `busy`: boolean - the submit button goes into a loading state (submitting is blocked), the providers are blocked; the fields stay editable - `error` / `notice`: string | null - a server message (a `danger` / `success` kpt-alert) - `promoTitle` / `promoText`: string | null - `null` = mode-dependent text from i18n, `''` = hide it (making room for the `[kptAuthPromo]` slot) - `animated`: boolean = true; `animationDuration`: number = 320 (ms) ## Outputs - `signIn`: { email, password, remember } - `signUp`: { name, email, password, terms } - `resetPassword`: { email } - `providerSelect`: KptAuthProvider - the chosen provider (the whole object, not just the `id`) - `modeChange` - from the `mode` model ## Content projection - `[kptAuthBrand]` - a logo/name above the heading - `[kptAuthPromo]` - the promo panel's content (below the title/text, above the CTA) - `[kptAuthSso]` - an enterprise sign-in button **above** the provider separator - `[kptAuthFields]` - extra fields inside the `