<?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"
             x:Class="MaUI.AuthLogin"
             Title="Login">

    <ScrollView>
        <StackLayout Padding="10" Spacing="10">


            <!-- LOGIN -->
            <Grid ColumnDefinitions="150, *" Padding="0,5">
                <Label Text="Login* :" FontAttributes="Bold" VerticalOptions="Center" Grid.Row="0" Grid.Column="0"/>
                <Entry Text="{Binding SelectedItem.Username, Mode=TwoWay}" Placeholder="Saisissez votre login" Grid.Row="0" Grid.Column="1"/>
            </Grid>

            <!-- PASSWORD -->
            <Grid ColumnDefinitions="150, *" Padding="0,5">
                <Label Text="Password* :" FontAttributes="Bold" VerticalOptions="Center" Grid.Row="1" Grid.Column="0"/>
                <Entry x:Name="PasswordEntry" Text="{Binding SelectedItem.Password, Mode=TwoWay}" IsPassword="True" Placeholder="Saisissez votre mot de passe" Grid.Row="1" Grid.Column="1"/>
            </Grid>

            <Grid ColumnDefinitions="200, 200" Padding="0,5">
                <Button Text="Annuler"
                        Command="{Binding AnnulerCommand}"
                        BackgroundColor="Gray"
                        TextColor="White"
                        CornerRadius="10"
                        HeightRequest="50"
                        WidthRequest="120"
                        Grid.Row="6" Grid.Column="0"
                        Margin="0,0,0,0"/>

                <Button Text="Valider"
                        Command="{Binding ValiderCommand}"
                        BackgroundColor="Green"
                        TextColor="White"
                        CornerRadius="10"
                        HeightRequest="50"
                        WidthRequest="120"
                        Grid.Row="6" Grid.Column="1"
                        Margin="0,0,0,0"/>
            </Grid>
        </StackLayout>
    </ScrollView>
</ContentPage> 