<?php
/**
 * SalonPro X - Login View
 */
?>
<form method="POST" action="<?= url('login') ?>" class="needs-validation" novalidate>
    <?= csrf_field() ?>

    <div class="form-group mb-3">
        <label for="email" class="form-label">Email Address</label>
        <div class="input-group">
            <span class="input-group-text"><i class="fas fa-envelope"></i></span>
            <input type="email" name="email" id="email" class="form-control" 
                   placeholder="Enter your email" required autofocus
                   value="<?= e(old('email')) ?>">
        </div>
    </div>

    <div class="form-group mb-3">
        <label for="password" class="form-label">Password</label>
        <div class="input-group">
            <span class="input-group-text"><i class="fas fa-lock"></i></span>
            <input type="password" name="password" id="password" class="form-control" 
                   placeholder="Enter your password" required minlength="6">
            <button class="btn btn-outline-secondary toggle-password" type="button">
                <i class="fas fa-eye"></i>
            </button>
        </div>
    </div>

    <div class="form-group mb-4 d-flex justify-content-between align-items-center">
        <div class="form-check">
            <input type="checkbox" name="remember" id="remember" class="form-check-input">
            <label for="remember" class="form-check-label">Remember me</label>
        </div>
        <a href="<?= url('forgot-password') ?>" class="text-gold small">Forgot password?</a>
    </div>

    <button type="submit" class="btn btn-gold w-100 py-2">
        <i class="fas fa-sign-in-alt me-2"></i>Sign In
    </button>
</form>
