<Page x:Class="SkyTeam.AdminLoginPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
      Title="Admin Login">

    <Grid Margin="40,20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,30">
            <iconPacks:PackIconMaterial Kind="ShieldAccount" Width="40" Height="40" Foreground="#D32F2F" Margin="0,0,15,0"/>
            <TextBlock Text="Admin Login" FontSize="36" FontWeight="Bold" Foreground="#D32F2F"/>
        </StackPanel>

        <Border Grid.Row="1" Background="White" CornerRadius="16" Padding="40" BorderBrush="#D32F2F" BorderThickness="2" VerticalAlignment="Center" HorizontalAlignment="Center">
            <StackPanel Width="300">
                <TextBlock Text="Sicherheits-Check" FontWeight="Bold" Margin="0,0,0,15" HorizontalAlignment="Center"/>

                <Label Content="Vorname (Username):"/>
                <TextBox x:Name="AdminUserBox" Height="35" Margin="0,0,0,10"/>

                <Label Content="E-Mail:"/>
                <TextBox x:Name="AdminEmailBox" Height="35" Margin="0,0,0,10"/>

                <Label Content="Rolle (z.B. Admin):"/>
                <TextBox x:Name="AdminRoleBox" Height="35" Margin="0,0,0,10"/>

                <Label Content="Passwort:"/>
                <PasswordBox x:Name="AdminPassBox" Height="35" Margin="0,0,0,20"/>

                <Button Content="Admin Anmelden" Height="40" Background="#D32F2F" Foreground="White" FontWeight="Bold" Click="AdminLogin_Click"/>
                <Button Content="Abbrechen" Margin="0,10,0,0" Background="Transparent" BorderThickness="0" Click="Back_Click"/>
            </StackPanel>
        </Border>
    </Grid>
</Page>