@model FamilyBudget.ViewModels.RegisterViewModel
@{
    Layout = "~/Views/Shared/_blankLayout.cshtml";
}

<style>
    body {
        margin: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f5f8fc;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        color: #333;
    }

    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 700px;
        max-width: 400px;
        background-color: white;
        padding: 40px;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    h2 {
        text-align: center;
        color: #4CAF50;
        margin-bottom: 30px;
        font-size: 1.8rem;
    }

    form {
        width: 100%;
    }

        form div {
            margin-bottom: 20px;
        }

    label {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 1rem;
        color: #555;
        display: block;
    }

    input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
        color: #333;
        background-color: #f9f9f9;
        transition: border-color 0.3s ease;
    }

        input:focus {
            border-color: #2d87f0;
            outline: none;
            background-color: #fff;
        }

    span {
        color: red;
        font-size: 0.9rem;
        margin-top: 5px;
        display: block;
    }

    button {
        width: 100%;
        padding: 12px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1.1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        button:hover {
            background-color: #1a6ac1;
        }

    .slogan {
        text-align: center;
        color: #555;
        font-size: 1rem;
        margin-top: 30px;
        font-style: italic;
    }

        .slogan span {
            color: #4CAF50;
            font-weight: bold;
        }
</style>

@*<link rel="stylesheet" href="~/css/Register.css" />*@
@if (!ViewData.ModelState.IsValid)
{
    <div class="alert alert-danger">
        @Html.ValidationSummary(false, "", new { @class = "text-danger" })
    </div>
}
<div class="container">
    <h2>Inscription</h2>
    <form asp-action="Register" method="post">
        <div>
            <label>👤 Nom</label>
            <input asp-for="Nom" type="text" />
            <span asp-validation-for="Nom"></span>
        </div>
        <div>
            <label>📧 Email</label>
            <input asp-for="Email" type="email" />
            <span asp-validation-for="Email"></span>
        </div>
        <div>
            <label>🔒 Mot de passe</label>
            <input asp-for="MotDePasse" type="password" />
            <span asp-validation-for="MotDePasse"></span>
        </div>
        <div>
            <label>🔒Confirmer le mot de passe</label>
            <input asp-for="ConfirmMotDePasse" type="password" />
            <span asp-validation-for="ConfirmMotDePasse"></span>
        </div>
        <button type="submit">📝 S'inscrire</button>
    </form>
    <a asp-controller="Compte" asp-action="Login" class="register">🔑 Se connecter</a>

    <div class="slogan">
        <p>Rejoignez-nous et <span>simplifiez</span> votre gestion financière !</p>
    </div>
</div>

