<Window x:Class="NexusShell.Views.NexusWindowsUnlockWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Nexus Windows Unlock"
        Width="420" Height="340"
        WindowStartupLocation="CenterOwner"
        WindowStyle="None"
        ResizeMode="NoResize"
        Background="#020712"
        FontFamily="Segoe UI Variable Display, Segoe UI">
    <Grid Background="{StaticResource NexusDesktopBackgroundBrush}">
        <Border Style="{StaticResource NexusGlassPanelStyle}" Margin="24" Padding="28">
            <StackPanel>
                <TextBlock Text="Lås Windows op (POC)"
                           FontSize="20"
                           FontWeight="SemiBold"
                           Foreground="{StaticResource NexusTextPrimaryBrush}"
                           HorizontalAlignment="Center"/>
                <TextBlock Text="{Binding HintText}"
                           Foreground="{StaticResource NexusTextSecondaryBrush}"
                           TextWrapping="Wrap"
                           TextAlignment="Center"
                           Margin="0,8,0,20"/>

                <TextBlock Text="Admin PIN" Foreground="{StaticResource NexusTextSecondaryBrush}" Margin="0,0,0,4"/>
                <PasswordBox x:Name="PinBox"
                             Height="42"
                             Padding="12,8"
                             Background="#12081428"
                             Foreground="{StaticResource NexusTextPrimaryBrush}"
                             BorderBrush="#3800D9FF"
                             BorderThickness="1"
                             PasswordChanged="PinBox_OnPasswordChanged"/>

                <TextBlock Text="{Binding ErrorMessage}"
                           Foreground="{StaticResource NexusCyanBrush}"
                           TextWrapping="Wrap"
                           Margin="0,10,0,0"
                           MinHeight="18"/>

                <Grid Margin="0,20,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Button Grid.Column="0"
                            Content="Annuller"
                            Command="{Binding CancelCommand}"
                            Style="{StaticResource NexusGlassButtonStyle}"
                            HorizontalAlignment="Left"/>
                    <Button Grid.Column="1"
                            Content="Lås op"
                            Command="{Binding UnlockCommand}"
                            Style="{StaticResource NexusPrimaryActionButtonStyle}"
                            MinWidth="120"/>
                </Grid>
            </StackPanel>
        </Border>
    </Grid>
</Window>
