<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
    <meta name="csrf-token-name" content="<?= esc(csrf_token()) ?>">
    <meta name="csrf-token" content="<?= esc(csrf_hash()) ?>">
    <title><?= esc($title ?? 'TIEASY') ?> · TIEASY</title>
    <link rel="stylesheet" href="<?= base_url('assets/css/app.css') ?>">
</head>
<body class="guest-body">
<div class="app-shell guest-shell">
    <main class="app-main guest-main">
        <?php if (session()->getFlashdata('error')): ?>
            <div class="flash flash-error" role="alert"><?= esc(session()->getFlashdata('error')) ?></div>
        <?php endif; ?>
        <?php if (session()->getFlashdata('success')): ?>
            <div class="flash flash-success" role="status"><?= esc(session()->getFlashdata('success')) ?></div>
        <?php endif; ?>
        <?= $this->renderSection('content') ?>
    </main>
</div>
<script src="<?= base_url('assets/js/app.js') ?>" defer></script>
</body>
</html>
