<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Connexion - Plateforme d'Inscription</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <!-- Google Fonts - Montserrat -->
    <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">
        <div class="logo">
            <div class="logo-icon">
                <i class="fas fa-graduation-cap"></i>
            </div>
            <h1>Plateforme d'Inscription</h1>
        </div>



        <form id="loginForm" method="POST" action="">

            <div class="mb-3">
                <label class="form-label">CIN<span class="text-danger">*</span></label>
                <div class="input-with-icon">
                    <i class="fas fa-id-card"></i>
                    <input type="text" class="form-control" id="cin" name="cin" placeholder="Entrez votre CIN" minlength="8" maxlength="8" required>
                </div>
                <div class="error-message" id="cin-error">Veuillez entrer votre CIN</div>
            </div>

            <div class="mb-3">
                <label class="form-label">Email<span class="text-danger">*</span></label>
                <div class="input-with-icon">
                    <i class="fas fa-envelope"></i>
                    <input type="text" class="form-control" id="email" name="email" placeholder="Entrez votre Email" required >
                </div>
                <div class="error-message" id="email-error">Veuillez entrer votre Email</div>
            </div>
            <div class="mb-3">
                <label class="form-label">Nom<span class="text-danger">*</span></label>
                <div class="input-with-icon">
                    <i class="fas fa-user"></i>
                    <input type="text" class="form-control" id="nom" name="nom" placeholder="Entrez votre Nom" required ">
                </div>
                <div class="error-message" id="nom-error">Veuillez entrer votre Nom</div>
            </div>
            <div class="mb-3">
                <label class="form-label">Prenom<span class="text-danger">*</span></label>
                <div class="input-with-icon">
                    <i class="fas fa-user-tag"></i>
                    <input type="text" class="form-control" id="prenom" name="prenom" placeholder="Entrez votre Prenom" required ">
                </div>
                <div class="error-message" id="prenom-error">Veuillez entrer votre Prenom</div>
            </div>

            <div class="mb-3">
                <label class="form-label">Mot de passe<span class="text-danger">*</span></label>
                <div class="input-with-icon">
                    <i class="fas fa-lock"></i>
                    <input type="password" class="form-control" id="password" placeholder="Entrer votre mot de passe" required>
                </div>
                <div class="error-message" id="password-error">Veuillez entrer votre mot de passe</div>
            </div>

           <div class="forgot-password">
                <a href="/est-concours/app/cnx/candidat/forgot-password" >Mot de passe oublié ?</a>
            </div>

            <button type="button" class="btn btn-custom-secondary d-flex align-items-center justify-content-center gap-2 mb-3" onclick="createCandidat()">
                <i class="fas fa-user-plus"></i> Créer un compte
            </button>


            <div class="separator">
                <span>Avez vous deja un compte ?</span>
            </div>

            <button type="button" class="btn btn-custom-primary d-flex align-items-center justify-content-center gap-2 mb-3"  onclick="redirectToLogin()">
                <i class="fas fa-sign-in-alt"></i> Se Connecter
            </button>

            <!-- <div class="admin-link">
                 <a href="admin-login.php">
                     <i class="fas fa-cog"></i> Accès Administration
                 </a>
             </div>-->
        </form>
    </div>
</div>

<script src="main.js"></script>

<!-- Bootstrap JS Bundle with Popper -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>


</body>
</html>
