<?php 
$title = 'Login';
ob_start(); 
?>

<div class="login-container">
    <div class="login-form">
        <div class="text-center mb-4">
            <h1 class="h3 mb-3 fw-normal">
                <i class="fas fa-users"></i> <?= APP_NAME ?>
            </h1>
            <p class="text-muted">Sign in to your account</p>
        </div>

        <form method="POST" action="/samanta_crm/login">
            <div class="form-floating mb-3">
                <input type="email" class="form-control" id="email" name="email" placeholder="name@example.com" required>
                <label for="email">Email address</label>
            </div>
            
            <div class="form-floating mb-3">
                <input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
                <label for="password">Password</label>
            </div>

            <button class="w-100 btn btn-lg btn-primary" type="submit">
                <i class="fas fa-sign-in-alt"></i> Sign in
            </button>
        </form>

        <div class="mt-4 text-center">
            <small class="text-muted">
                Default admin: admin@example.com / password
            </small>
        </div>
    </div>
</div>

<?php 
$content = ob_get_clean();
include '../app/Views/layout.php'; 
?>
