<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mot de passe oublié - Plateforme d'Inscription</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link href="../auth-style.css" rel="stylesheet">
</head>
<body>
<div class="container-custom">
    <div class="card main-card">

        <!-- Logo -->
        <div class="logo">
            <div class="logo-icon">
                <i class="fas fa-key"></i>
            </div>
            <h1>Mot de passe oublié</h1>
        </div>

        <!-- Zone message (succès ou erreur) -->
        <div id="messageContainer"></div>

<form id="forgotPasswordForm">
    <div class="mb-3">
        <label for="email" class="form-label">Email</label>
        <input type="text" class="form-control" id="email" placeholder="Entrez votre email " required>
    </div>
    <!-- Bdelha l-btn-success (khdra) -->
<button type="button" class="btn w-100" 
        style="background-color: #8cc63f; border-color: #8cc63f; color: white; padding: 10px; font-weight: bold;" 
        onclick="sendResetEmail()">
    <i class="fas fa-paper-plane"></i> Envoyer le nouveau mot de passe
</button>
    <div class="mt-3 text-center">
        <a href="../login/">← Retour à la connexion</a>
    </div>
</form>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
<script src="main.js"></script>

</body>
</html>
