import { Routes } from '@angular/router';

/**
 * Ed25519 admin auth routes. Registered at top level (outside the `:lang`
 * prefix, alongside `__diagnostics`) since login/error screens are
 * infrastructure, not localized storefront content. Not linked from any
 * live nav - reachable only by direct URL until the backend ships the
 * challenge/verify endpoints and a guard is pointed here (see docs/AUTH.md).
 */
export const authRoutes: Routes = [
  {
    path: 'admin-login',
    loadComponent: () => import('./pages/admin-login-page.component').then(m => m.AdminLoginPageComponent)
  },
  {
    path: 'admin-login/error/:code',
    loadComponent: () => import('./pages/auth-error-page.component').then(m => m.AuthErrorPageComponent)
  }
];
