@using Microsoft.AspNetCore.Identity
@using SportsDivision.Infrastructure.Identity
@inject SignInManager<ApplicationUser> SignInManager
@{
    ViewData["Title"] = "Home";

    if (SignInManager.IsSignedIn(User))
    {
        Context.Response.Redirect(Url.Action("Index", "Dashboard")!);
        return;
    }
}

<div class="d-flex align-items-center justify-content-center" style="min-height: 60vh;">
    <div class="text-center">
        <h1 class="fw-bold mb-3" style="color: var(--sd-primary);">Dominica Sports Division</h1>
        <p class="lead text-muted mb-4">School Athletics Tournament Management System</p>
        <a asp-controller="Account" asp-action="Login" class="btn btn-primary btn-lg">
            <i class="bi bi-box-arrow-in-right me-2"></i>Sign In
        </a>
    </div>
</div>
