<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2026, Jiri Eischmann <jiri@eischmann.cz> and the meshy contributors -->
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.0"/>
  <object class="AdwDialog" id="dialog">
    <property name="content-width">360</property>
    <property name="content-height">280</property>
    <property name="child">
      <object class="AdwToolbarView">
        <child type="top">
          <object class="AdwHeaderBar"/>
        </child>
        <property name="content">
          <object class="GtkBox" id="content">
            <property name="orientation">vertical</property>
            <property name="spacing">12</property>
            <property name="margin-start">16</property>
            <property name="margin-end">16</property>
            <property name="margin-top">12</property>
            <property name="margin-bottom">12</property>

            <!-- Login fields -->
            <child>
              <object class="GtkListBox" id="login_list">
                <property name="selection-mode">none</property>
                <style>
                  <class name="boxed-list"/>
                </style>
                <child>
                  <object class="AdwPasswordEntryRow" id="password_entry">
                    <property name="title" translatable="yes">Password</property>
                  </object>
                </child>
                <child>
                  <object class="AdwSwitchRow" id="save_switch">
                    <property name="title" translatable="yes">Save password</property>
                  </object>
                </child>
              </object>
            </child>

            <!-- Status -->
            <child>
              <object class="GtkBox" id="status_box">
                <property name="spacing">8</property>
                <property name="halign">center</property>
                <property name="margin-top">4</property>
                <child>
                  <object class="GtkSpinner" id="spinner"/>
                </child>
                <child>
                  <object class="GtkLabel" id="status_label">
                    <style>
                      <class name="dim-label"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>

            <!-- Login button -->
            <child>
              <object class="GtkButton" id="login_btn">
                <property name="label" translatable="yes">Login</property>
                <property name="halign">center</property>
                <style>
                  <class name="suggested-action"/>
                </style>
              </object>
            </child>

          </object>
        </property>
      </object>
    </property>
  </object>
</interface>
