Admin console
{t('auth.welcome')}
{t('auth.subtitle')}
{formError ? (
) : null}
{!googleClientId ? (
{t('auth.googleMockHint')}
) : null}
{botUsername ? t('auth.telegramWidgetHint', { bot: botUsername }) : t('auth.telegramMockHint')}
{t('auth.orContinueWith')}
{(
[
{ id: 'email' as const, icon: Mail, label: t('auth.email') },
{ id: 'phone' as const, icon: Phone, label: t('auth.phone') },
] as const
).map(({ id, icon: Icon, label }) => (
))}
{credentialMode === 'email' ? (
) : (
{phoneStep === 'enter' ? (
<>
{
setPhone(e.target.value)
if (fieldErrors.phone) setFieldErrors((prev) => ({ ...prev, phone: undefined }))
}}
className={fieldErrors.phone ? 'border-red-400 focus-visible:ring-red-400' : undefined}
/>
{fieldErrors.phone ? (
{fieldErrors.phone}
) : (
{t('auth.phoneHint')}
)}
>
) : (
)}
)}
{t('auth.demoAccounts')}
Demo only
{t('auth.demoPickHint')} {t('auth.demoHint')}
{accountsByRole.map((group) => (
{group.label}
{group.accounts.map((account) => (
onPickDemoAccount(account)}
>
{account.name}
{account.branchName ?? 'All branches'} · {account.email}
))}
))}
{t('app.poweredBy')} · © {new Date().getFullYear()}