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

<div class="login-container d-flex flex-column align-items-center justify-content-center min-vh-100">
    <img src="/samanta_crm/assets/images/svg/favicon.svg" alt="osBakery CRM" style="max-height:140px" class="mb-3">
    <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 fw-bold">
                osBakery CRM v1.2.3
            </small>
        </div>  
        <small class="text-muted text-center d-block mt-2">
                © 2025 NowAgency.pl. All rights reserved.
            </small>
    </div>
   
</div>

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