<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>

<BorderPane fx:id="mainPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="300.0" prefWidth="400.0" style="-fx-background-color: rgb(245,245,245);" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="top.r3944realms.docchecktoolrefactored.ui.LoginStageController">
    <padding>
        <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
    </padding>

    <top>
        <Label alignment="CENTER" text="数字化验收工具" textAlignment="CENTER" textFill="rgb(66,133,244)" BorderPane.alignment="TOP_CENTER">
            <font>
                <Font name="Microsoft YaHei" size="24.0" />
            </font>
            <BorderPane.margin>
                <Insets bottom="20.0" />
            </BorderPane.margin>
        </Label>
    </top>

    <center>
        <GridPane alignment="CENTER" hgap="10.0" style="-fx-background-color: rgb(245,245,245);" vgap="15.0">
            <children>
                <Label text="用户名:" GridPane.columnIndex="0" GridPane.rowIndex="0">
                    <font>
                        <Font name="Microsoft YaHei" size="14.0" />
                    </font>
                </Label>

                <TextField fx:id="usernameField" style="-fx-background-color: white; -fx-border-color: rgb(222,226,230); -fx-border-width: 1; -fx-padding: 5 10 5 10;" GridPane.columnIndex="1" GridPane.rowIndex="0">
                    <font>
                        <Font name="Microsoft YaHei" size="14.0" />
                    </font>
                </TextField>

                <Label text="密码:" GridPane.columnIndex="0" GridPane.rowIndex="1">
                    <font>
                        <Font name="Microsoft YaHei" size="14.0" />
                    </font>
                </Label>

                <PasswordField fx:id="passwordField" style="-fx-background-color: white; -fx-border-color: rgb(222,226,230); -fx-border-width: 1; -fx-padding: 5 10 5 10;" GridPane.columnIndex="1" GridPane.rowIndex="1">
                    <font>
                        <Font name="Microsoft YaHei" size="14.0" />
                    </font>
                </PasswordField>

                <Button fx:id="loginButton" onAction="#handleLogin" prefHeight="46.0" prefWidth="158.0" style="-fx-background-color: rgb(66,133,244); -fx-padding: 5 15 5 15;" text="登录" textFill="WHITE" GridPane.columnIndex="1" GridPane.rowIndex="2">
                    <font>
                        <Font name="Microsoft YaHei" size="14.0" />
                    </font>
                </Button>
            </children>
         <columnConstraints>
            <ColumnConstraints />
            <ColumnConstraints />
         </columnConstraints>
         <rowConstraints>
            <RowConstraints />
            <RowConstraints />
            <RowConstraints />
         </rowConstraints>
        </GridPane>
    </center>
   <bottom>
      <HBox prefHeight="13.0" prefWidth="360.0" BorderPane.alignment="CENTER">
         <children>
            <Label text="版本号：" />
            <Label fx:id="versionL" text="&lt;&gt;" />
         </children>
      </HBox>
   </bottom>
</BorderPane>
