<Window x:Class="NexusShell.Views.NexusEnrollmentWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Nexus Enrollment"
        Width="520" Height="580"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None"
        ResizeMode="NoResize"
        Background="#020712"
        FontFamily="Segoe UI Variable Display, Segoe UI">
    <Grid Background="{StaticResource NexusDesktopBackgroundBrush}">
        <Border VerticalAlignment="Bottom" Height="220" Background="{StaticResource NexusHorizonGlowBrush}" Opacity="0.45"/>
        <Border Style="{StaticResource NexusGlassPanelStyle}"
                MaxWidth="440"
                VerticalAlignment="Center"
                HorizontalAlignment="Center"
                Padding="36">
            <StackPanel>
                <Border Width="72" Height="72" CornerRadius="20" Background="{StaticResource NexusLogoGradientBrush}" HorizontalAlignment="Center" Margin="0,0,0,16">
                    <TextBlock Text="N" FontSize="40" FontWeight="Bold" Foreground="#FFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Border>
                <TextBlock Text="Velkommen til Nexus"
                           FontSize="24"
                           FontWeight="SemiBold"
                           Foreground="{StaticResource NexusTextPrimaryBrush}"
                           HorizontalAlignment="Center"/>
                <TextBlock Text="Registrér denne enhed for at fortsætte"
                           Foreground="{StaticResource NexusTextSecondaryBrush}"
                           HorizontalAlignment="Center"
                           Margin="0,6,0,24"/>

                <TextBlock Text="Organisation" Foreground="{StaticResource NexusTextSecondaryBrush}" Margin="0,0,0,4"/>
                <ComboBox ItemsSource="{Binding Organizations}"
                          SelectedItem="{Binding SelectedOrganization, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                          DisplayMemberPath="Name"
                          IsEnabled="True"
                          Style="{StaticResource NexusComboBoxStyle}"
                          Margin="0,0,0,12"/>

                <TextBlock Text="Bruger" Foreground="{StaticResource NexusTextSecondaryBrush}" Margin="0,0,0,4"/>
                <TextBox Text="{Binding UserName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                         IsReadOnly="False" IsEnabled="True"
                         Style="{StaticResource NexusFormTextBoxStyle}"
                         Margin="0,0,0,12"/>

                <TextBlock Text="Enhedsnavn" Foreground="{StaticResource NexusTextSecondaryBrush}" Margin="0,0,0,4"/>
                <TextBox Text="{Binding DeviceFriendlyName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                         IsReadOnly="False" IsEnabled="True"
                         Style="{StaticResource NexusFormTextBoxStyle}"
                         Margin="0,0,0,12"/>

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

                <Button Content="Registrér"
                        Command="{Binding EnrollCommand}"
                        Style="{StaticResource NexusPrimaryActionButtonStyle}"
                        Margin="0,8,0,0"/>
            </StackPanel>
        </Border>
    </Grid>
</Window>
