<template>
  <LoginView
    app-title="ROA2WEB"
    app-subtitle="Sistem Unificat - Rapoarte & Introduceri Date"
    app-icon="pi-chart-bar"
    redirect-path="/reports/dashboard"
    :auth-store="authStore"
  />
</template>

<script setup>
import LoginView from '@shared/components/LoginView.vue'
import { createAuthStore } from '@shared/stores/auth.js'
import axios from 'axios'

// API service for auth and shared endpoints (unified backend)
const authApi = axios.create({
  baseURL: import.meta.env.BASE_URL + 'api',
  headers: { 'Content-Type': 'application/json' }
})

// Create and instantiate auth store
const useAuthStore = createAuthStore(authApi)
const authStore = useAuthStore()
</script>
