<?php
function afAdminAuthStart(string $title, string $subtitle = ''): void
{
    $safeTitle = esc($title);
    $safeSubtitle = esc($subtitle);
    echo '<!doctype html><html lang="pt-BR"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">';
    echo '<meta name="theme-color" content="#090613"><meta name="robots" content="noindex,nofollow"><title>'.$safeTitle.' | Aura Admin</title>';
    echo '<link rel="stylesheet" href="'.esc(SITE_URL).'/assets/css/admin-auth.css?v=1.0"></head><body class="admin-auth-body">';
    echo '<div class="admin-auth-bg" aria-hidden="true"></div><main class="admin-auth-wrap"><section class="admin-auth-card">';
    echo '<a class="admin-auth-brand" href="'.esc(SITE_URL).'/admin/"><span>◈</span><div><b>AURA ADMIN</b><small>CONTROLE DA PLATAFORMA</small></div></a>';
    echo '<header><h1>'.$safeTitle.'</h1>'.($safeSubtitle !== '' ? '<p>'.$safeSubtitle.'</p>' : '').'</header>';
}

function afAdminAuthEnd(): void
{
    echo '<footer class="admin-auth-footer">Aura Farming • Área restrita</footer></section></main></body></html>';
}
