<Page x:Class="SASDesktop.Views.Auth"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:SASDesktop.Views" xmlns:viewmodels="clr-namespace:SASDesktop.ViewModels" d:DataContext="{d:DesignInstance Type=viewmodels:Auth}"
      mc:Ignorable="d" 
      d:DesignHeight="600" d:DesignWidth="800"
      Title="Auth">
    <!--Страница авторизации-->
    <StackPanel Style="{StaticResource FormContainer}">
        <TextBlock 
            HorizontalAlignment="Center"
            Style="{StaticResource H2}"
            Text="Добро пожаловать"/>
        <TextBlock
            HorizontalAlignment="Center"
            Text="Пожалуйста, авторизуйтесь"/>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="42"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="42"/>
                <RowDefinition Height="42"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.25*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0.25*"/>
            </Grid.ColumnDefinitions>
            
            <TextBlock
                Grid.Row="0"
                Grid.Column="1"
                Style="{StaticResource H4}"
                Text="Логин"/>
            <TextBox
                Margin="0,4"
                Grid.Column="1"
                VerticalContentAlignment="Center"
                Text="{Binding Login}"
                Grid.Row="1"/>

            <TextBlock
                Grid.Row="2"
                Grid.Column="1"
                Style="{StaticResource H4}"
                Text="Пароль"/>
            <TextBox
                Margin="0,4"
                Grid.Column="1"
                VerticalContentAlignment="Center"
                Text="{Binding Password}"
                Grid.Row="3"/>

            <Button
                Margin="0,4"
                Grid.Column="1"
                Grid.Row="4"
                Content="Вход"
                Command="{Binding LoginCmd}"/>
        </Grid>
    </StackPanel>
</Page>
