<?php
$code = $code ?? 401;
$message = $message ?? 'Unauthorized';
?>

<div class="error-page">
    <div class="error-card">
        <div class="error-code"><?= $code ?></div>
        <div class="error-message"><?= htmlspecialchars($message) ?></div>
        <p class="error-description">
            Please log in to access this page.
        </p>
        <div class="error-actions">
            <a href="/login" class="btn btn-primary">Log In</a>
            <button class="btn btn-secondary" onclick="history.back()">Go Back</button>
        </div>
    </div>
</div>
