<?= $this->extend('layout/main') ?>
<?= $this->section('title') ?>Login<?= $this->endSection() ?>

<?= $this->section('content') ?>
<div class="container" style="max-width: 400px; padding: 4rem 1.5rem;">
    <div class="card" style="box-shadow: 0 4px 6px rgba(0,0,0,0.05);">
        <h2 style="text-align: center; margin-bottom: 1.5rem; font-weight: 700;">Login</h2>
        
        <form action="<?= base_url('login/process') ?>" method="POST">
            <div class="form-group">
                <label class="form-label">Email Address</label>
                <input type="email" name="email" class="form-control" required autofocus>
            </div>
            
            <div class="form-group">
                <label class="form-label">Password</label>
                <input type="password" name="password" class="form-control" required>
            </div>
            
            <button type="submit" class="btn btn-primary" style="width: 100%; justify-content: center; padding: 0.75rem;">Login</button>
        </form>
        
        <div style="text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-muted);">
            Don't have an account? <a href="<?= base_url('register') ?>">Register now</a>
        </div>
    </div>
</div>
<?= $this->endSection() ?>
