<Window x:Class="PSLauncher.App.Views.OnboardingDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Activation PROSERVE Launcher"
        Width="540" Height="420"
        MinWidth="480" MinHeight="380"
        WindowStartupLocation="CenterOwner"
        ResizeMode="CanResize"
        Background="{StaticResource Brush.Bg.Window}">
    <Grid Margin="32,28">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Text="Activer votre license"
                   FontSize="22" FontWeight="SemiBold"
                   Foreground="{StaticResource Brush.Text.Primary}" />

        <TextBlock Grid.Row="1"
                   Text="Saisis la clé fournie par ASTERION. Elle te donne accès aux téléchargements jusqu'à la date de validité associée."
                   TextWrapping="Wrap"
                   Foreground="{StaticResource Brush.Text.Secondary}"
                   Margin="0,8,0,18" />

        <TextBlock Grid.Row="2" Text="Clé de license"
                   FontSize="12" FontWeight="Bold"
                   Foreground="{StaticResource Brush.Text.Secondary}" />
        <TextBox  Grid.Row="3" x:Name="KeyBox"
                  Margin="0,6,0,16"
                  Padding="10,8"
                  FontFamily="Consolas" FontSize="14"
                  CharacterCasing="Upper"
                  Background="#1A1A20"
                  Foreground="{StaticResource Brush.Text.Primary}"
                  BorderBrush="{StaticResource Brush.Border}"
                  BorderThickness="1"
                  Text="PRSRV-XXXX-XXXX-XXXX-XXXX" />

        <ScrollViewer Grid.Row="4" VerticalScrollBarVisibility="Auto">
            <StackPanel x:Name="StatusPanel">
                <TextBlock x:Name="StatusText"
                           TextWrapping="Wrap"
                           Foreground="{StaticResource Brush.Text.Secondary}" />
            </StackPanel>
        </ScrollViewer>

        <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,18,0,0">
            <Button Style="{StaticResource SecondaryButton}"
                    Content="Plus tard"
                    IsCancel="True"
                    Margin="0,0,12,0"
                    Click="OnLater" />
            <Button Style="{StaticResource AccentButton}"
                    Content="Activer"
                    Padding="32,10"
                    IsDefault="True"
                    Click="OnActivate"
                    x:Name="ActivateButton" />
        </StackPanel>
    </Grid>
</Window>
