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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ButtonBar?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>

<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.LoginController">
   <children>
      <VBox prefHeight="400.0" prefWidth="600.0">
         <children>
            <GridPane vgap="20.0">
              <columnConstraints>
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                <ColumnConstraints hgrow="SOMETIMES" maxWidth="350.0" minWidth="350.0" prefWidth="350.0" />
              </columnConstraints>
              <rowConstraints>
                <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
              </rowConstraints>
               <children>
                  <Label text="Identity:" GridPane.halignment="CENTER" />
                  <TextField id="Identity" fx:id="identityField" maxWidth="350.0" minWidth="350.0" prefWidth="350.0" promptText="sip:" GridPane.columnIndex="1" GridPane.halignment="CENTER" />
                  <Label text="Password:" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
                  <PasswordField fx:id="passwordField" promptText="password" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                  <HBox alignment="CENTER" prefHeight="60.0" prefWidth="200.0" spacing="50.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
                     <children>
                        <RadioButton id="TlsRadio" fx:id="tlsRadio" mnemonicParsing="false" selected="true" text="TLS">
                           <toggleGroup>
                              <ToggleGroup fx:id="TransportGroup" />
                           </toggleGroup>
                        </RadioButton>
                        <RadioButton id="TcpRadio" fx:id="tcpRadio" mnemonicParsing="false" text="TCP" toggleGroup="$TransportGroup" />
                        <RadioButton id="UdpRadio" fx:id="udpRadio" mnemonicParsing="false" text="UDP" toggleGroup="$TransportGroup" />
                     </children>
                  </HBox>
                  <Label text="Transport:" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
               </children>
            </GridPane>
            <GridPane VBox.vgrow="ALWAYS">
              <columnConstraints>
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
              </columnConstraints>
              <rowConstraints>
                <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
              </rowConstraints>
               <children>
                  <Label id="LoginText" fx:id="loginLabel" alignment="TOP_LEFT" GridPane.halignment="CENTER" />
                  <Label fx:id="registrationLabel" alignment="TOP_LEFT" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
               </children>
            </GridPane>
            <Separator prefWidth="200.0" />
            <ButtonBar prefHeight="40.0" prefWidth="200.0">
              <buttons>
                  <Button fx:id="loginButton" defaultButton="true" mnemonicParsing="false" onMouseClicked="#onLoginClicked" text="Login" />
                  <Button fx:id="logoutButton" cancelButton="true" disable="true" mnemonicParsing="false" onMouseClicked="#onLogoutClicked" text="Logout" />
              </buttons>
            </ButtonBar>
         </children>
         <padding>
            <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
         </padding>
      </VBox>
   </children>
</Pane>
