<?php
/**
 * SalonPro X - Reset Password View
 * @var string $token Password reset token
 */
?>
<form method="POST" action="<?= url('reset-password') ?>" class="needs-validation" novalidate>
    <?= csrf_field() ?>
    <input type="hidden" name="token" value="<?= e($token) ?>">

    <p class="text-muted small mb-4">Enter your new password below.</p>

    <div class="form-group mb-3">
        <label for="password" class="form-label">New 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 new password" required minlength="8">
            <button class="btn btn-outline-secondary toggle-password" type="button">
                <i class="fas fa-eye"></i>
            </button>
        </div>
        <div class="form-text text-muted">Minimum 8 characters.</div>
    </div>

    <div class="form-group mb-4">
        <label for="password_confirm" class="form-label">Confirm Password</label>
        <div class="input-group">
            <span class="input-group-text"><i class="fas fa-check-circle"></i></span>
            <input type="password" name="password_confirm" id="password_confirm" class="form-control" 
                   placeholder="Confirm new password" required minlength="8">
        </div>
    </div>

    <button type="submit" class="btn btn-gold w-100 py-2">
        <i class="fas fa-save me-2"></i>Reset Password
    </button>
</form>
