<div class="auth-heading"><p class="eyebrow">First-time setup</p><h1>Create Super Admin</h1><p>Create the first technical administrator. This setup becomes unavailable after the first Super Admin is created.</p></div>
<?php if (!empty($error)): ?><div class="alert alert-warning" role="alert"><?= htmlspecialchars($error, ENT_QUOTES, 'UTF-8') ?></div><?php endif; ?>
<form method="post" action="/crm/public/setup" class="form-stack">
    <input type="hidden" name="_csrf" value="<?= htmlspecialchars($csrf, ENT_QUOTES, 'UTF-8') ?>">
    <label class="form-field"><span>Full name</span><input type="text" name="full_name" maxlength="150" required autofocus></label>
    <label class="form-field"><span>Email</span><input type="email" name="email" autocomplete="email" required></label>
    <label class="form-field"><span>Password</span><input type="password" name="password" autocomplete="new-password" minlength="12" required><small>Use at least 12 characters.</small></label>
    <label class="form-field"><span>Confirm password</span><input type="password" name="password_confirmation" autocomplete="new-password" minlength="12" required></label>
    <button class="btn btn-primary btn-block" type="submit">Create Super Admin</button>
</form>
<p class="auth-link"><a href="/crm/public/login">Back to login</a></p>
