<?= $this->extend('install/layout') ?>
<?= $this->section('content') ?>
<h2 style="margin-top:0;">Step 2: Database Configuration</h2>
<p style="margin-bottom: 2rem; color: #6b7280;">Please create an empty database before continuing if you are not using the root user.</p>

<form action="<?= base_url('install/process2') ?>" method="POST">
    <div class="form-group">
        <label>Database Host</label>
        <input type="text" name="db_host" value="localhost" required>
    </div>
    <div class="form-group">
        <label>Database Port</label>
        <input type="text" name="db_port" value="3308" required>
    </div>
    <div class="form-group">
        <label>Database Name</label>
        <input type="text" name="db_name" value="subdomain_manager" required>
    </div>
    <div class="form-group">
        <label>Database Username</label>
        <input type="text" name="db_user" value="root" required>
    </div>
    <div class="form-group">
        <label>Database Password</label>
        <input type="password" name="db_pass">
    </div>
    <button type="submit" class="btn">Connect and Continue -></button>
</form>
<?= $this->endSection() ?>
