<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
             x:Class="GameAtlas.Views.PageConnexion"
             Title="ECRAN DE CONNEXION" 
             BackgroundColor="Beige">
             <!-- WidthRequest="390" HeightRequest="844" -->

    <VerticalStackLayout>

        <Image Source="logo.png" WidthRequest="130" HeightRequest="130" Margin="0,60,0,0"/>

        <Label
            Text="Se Connecter"
            Margin="0,0,0,60"
            HorizontalTextAlignment="Center"
            FontFamily="Roboto-Black"
            FontSize="24"
        />

        <Border StrokeShape="RoundRectangle 8" Margin="40,0,40,30" >
            <Entry x:Name="pseudo" Placeholder="Nom d'utilisateur" ClearButtonVisibility="WhileEditing" BackgroundColor="White" PlaceholderColor="#5E5E5E"/>
        </Border>

        <Border StrokeShape="RoundRectangle 8" Margin="40,0,40,30" >
            <Entry x:Name="mdp" Placeholder="Mot de passe" IsPassword="True" ClearButtonVisibility="WhileEditing" BackgroundColor="White" PlaceholderColor="#5E5E5E" />
        </Border>

        <Button Text="Connexion"
                VerticalOptions="Center"
                HorizontalOptions="Center"
                BackgroundColor="#FAD05D"
                TextColor="Black"
                FontFamily="Roboto-Bold"
                Margin="0,50,0,10"
                Padding="60,0,60,0"
                CornerRadius="15"
                Clicked="OnSignInClicked"
        />

        <HorizontalStackLayout Spacing="40" HorizontalOptions="Center">

            <Label
                Text="Mot de Passe oublié"
                TextColor="#7392FF"
                FontSize="13"
                FontFamily="PTSansNRegular">
                <Label.GestureRecognizers>
                    <TapGestureRecognizer Tapped="OnMotDePasseOublie_Tapped" />
                </Label.GestureRecognizers>
            </Label>

            <Label
                Text="S'inscrire >"
                TextColor="#7392FF"
                FontSize="13"
                FontFamily="PTSansNBold">
                <Label.GestureRecognizers>
                    <TapGestureRecognizer Tapped="OnInscrire_Tapped" />
                </Label.GestureRecognizers>
            </Label>

        </HorizontalStackLayout>

    </VerticalStackLayout>
</ContentPage>