<div class="auth-container">
    <div class="auth-card">
        <div class="auth-brand"><i class="fas fa-orbit" style="font-size:2rem;color:var(--secondary)"></i><h2>CIX <span style="color:var(--secondary)">Orbit</span></h2><p>Sign in to your account</p></div>
        <?php if (!empty($error)): ?><div class="alert-cix alert-cix-error"><i class="fas fa-exclamation-circle"></i> <?= $error ?></div><?php endif; ?>
        <form method="POST" action="<?= base_url('login') ?>">
            <?= csrf_field() ?>
            <div class="form-group-cix"><label class="form-label-cix">Email</label><input type="email" name="email" class="form-control-cix" required autofocus></div>
            <div class="form-group-cix"><label class="form-label-cix">Password</label><input type="password" name="password" class="form-control-cix" required></div>
            <button type="submit" class="btn-cix btn-cix-primary w-100 mb-3"><i class="fas fa-sign-in-alt me-1"></i> Sign In</button>
        </form>
        <div class="text-center"><a href="<?= base_url('forgot-password') ?>" class="text-secondary small">Forgot password?</a></div>
        <div class="text-center mt-3"><span class="text-secondary small">Don't have an account? <a href="<?= base_url('apply') ?>" class="text-orange">Apply Now</a></span></div>
    </div>
</div>
