{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "BranchLoginPage",
      "name": "Branch Login Page - Desktop",
      "width": 1440,
      "height": 900,
      "fill": "$bg-page",
      "layout": "horizontal",
      "children": [
        {
          "type": "frame",
          "name": "brandPanel",
          "width": 640,
          "height": "fill_container",
          "fill": {
            "type": "gradient",
            "gradientType": "linear",
            "rotation": 180,
            "colors": [
              { "color": "#FF5C00", "position": 0 },
              { "color": "#FF8A4C", "position": 0.5 },
              { "color": "#FFB347", "position": 1 }
            ]
          },
          "layout": "vertical",
          "justifyContent": "center",
          "alignItems": "center",
          "padding": 80,
          "children": [
            {
              "type": "frame",
              "name": "brandContent",
              "layout": "vertical",
              "gap": 32,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "name": "logoContainer",
                  "width": 100,
                  "height": 100,
                  "fill": "#FFFFFF20",
                  "cornerRadius": 24,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "fill": "$text-primary",
                      "content": "a",
                      "fontFamily": "Roboto",
                      "fontSize": 56,
                      "fontWeight": "700"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "name": "textContent",
                  "layout": "vertical",
                  "gap": 12,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "fill": "$text-primary",
                      "content": "aPOS Branch Portal",
                      "fontFamily": "Roboto",
                      "fontSize": 32,
                      "fontWeight": "700"
                    },
                    {
                      "type": "text",
                      "fill": "#FFFFFFCC",
                      "textGrowth": "fixed-width",
                      "width": 380,
                      "content": "Quản lý chi nhánh chuyên nghiệp, báo cáo thời gian thực, kiểm soát vận hành hiệu quả.",
                      "lineHeight": 1.6,
                      "textAlign": "center",
                      "fontFamily": "Roboto",
                      "fontSize": 16
                    }
                  ]
                },
                {
                  "type": "frame",
                  "name": "stats",
                  "gap": 40,
                  "padding": [24, 0, 0, 0],
                  "children": [
                    {
                      "type": "frame",
                      "layout": "vertical",
                      "alignItems": "center",
                      "gap": 4,
                      "children": [
                        {
                          "type": "text",
                          "fill": "$text-primary",
                          "content": "1,200+",
                          "fontFamily": "Roboto",
                          "fontSize": 28,
                          "fontWeight": "700"
                        },
                        {
                          "type": "text",
                          "fill": "#FFFFFFAA",
                          "content": "Chi nhánh",
                          "fontFamily": "Roboto",
                          "fontSize": 12
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "layout": "vertical",
                      "alignItems": "center",
                      "gap": 4,
                      "children": [
                        {
                          "type": "text",
                          "fill": "$text-primary",
                          "content": "50K+",
                          "fontFamily": "Roboto",
                          "fontSize": 28,
                          "fontWeight": "700"
                        },
                        {
                          "type": "text",
                          "fill": "#FFFFFFAA",
                          "content": "Đơn/ngày",
                          "fontFamily": "Roboto",
                          "fontSize": 12
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "layout": "vertical",
                      "alignItems": "center",
                      "gap": 4,
                      "children": [
                        {
                          "type": "text",
                          "fill": "$text-primary",
                          "content": "99.9%",
                          "fontFamily": "Roboto",
                          "fontSize": 28,
                          "fontWeight": "700"
                        },
                        {
                          "type": "text",
                          "fill": "#FFFFFFAA",
                          "content": "Uptime",
                          "fontFamily": "Roboto",
                          "fontSize": 12
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "name": "authPanel",
          "width": "fill_container",
          "height": "fill_container",
          "fill": "$bg-surface",
          "layout": "vertical",
          "justifyContent": "center",
          "alignItems": "center",
          "padding": 60,
          "children": [
            {
              "type": "frame",
              "name": "loginCard",
              "width": 400,
              "layout": "vertical",
              "gap": 32,
              "children": [
                {
                  "type": "frame",
                  "name": "cardHeader",
                  "width": "fill_container",
                  "layout": "vertical",
                  "gap": 8,
                  "children": [
                    {
                      "type": "text",
                      "fill": "$text-primary",
                      "content": "Đăng nhập Chi nhánh",
                      "fontFamily": "Roboto",
                      "fontSize": 28,
                      "fontWeight": "600"
                    },
                    {
                      "type": "text",
                      "fill": "$text-tertiary",
                      "content": "Quản lý và theo dõi chi nhánh của bạn",
                      "fontFamily": "Roboto",
                      "fontSize": 14
                    }
                  ]
                },
                {
                  "type": "frame",
                  "name": "formSection",
                  "width": "fill_container",
                  "layout": "vertical",
                  "gap": 20,
                  "children": [
                    {
                      "type": "frame",
                      "name": "emailField",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 8,
                      "children": [
                        {
                          "type": "text",
                          "fill": "$text-secondary",
                          "content": "Email hoặc số điện thoại",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "500"
                        },
                        {
                          "type": "frame",
                          "name": "inputWrapper",
                          "width": "fill_container",
                          "height": 48,
                          "fill": "$bg-elevated",
                          "cornerRadius": 10,
                          "stroke": { "thickness": 1, "fill": "$border-default" },
                          "padding": [0, 16],
                          "gap": 10,
                          "alignItems": "center",
                          "children": [
                            {
                              "type": "icon_font",
                              "width": 18,
                              "height": 18,
                              "iconFontName": "building-2",
                              "iconFontFamily": "lucide",
                              "fill": "$text-muted"
                            },
                            {
                              "type": "text",
                              "fill": "$text-muted",
                              "content": "branch@company.com",
                              "fontFamily": "Roboto",
                              "fontSize": 14
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "name": "passwordField",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 8,
                      "children": [
                        {
                          "type": "frame",
                          "name": "labelRow",
                          "width": "fill_container",
                          "justifyContent": "space_between",
                          "alignItems": "center",
                          "children": [
                            {
                              "type": "text",
                              "fill": "$text-secondary",
                              "content": "Mật khẩu",
                              "fontFamily": "Roboto",
                              "fontSize": 14,
                              "fontWeight": "500"
                            },
                            {
                              "type": "text",
                              "fill": "$orange-primary",
                              "content": "Quên mật khẩu?",
                              "fontFamily": "Roboto",
                              "fontSize": 13
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "name": "inputWrapper",
                          "width": "fill_container",
                          "height": 48,
                          "fill": "$bg-elevated",
                          "cornerRadius": 10,
                          "stroke": { "thickness": 1, "fill": "$border-default" },
                          "padding": [0, 16],
                          "justifyContent": "space_between",
                          "alignItems": "center",
                          "children": [
                            {
                              "type": "frame",
                              "gap": 10,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "icon_font",
                                  "width": 18,
                                  "height": 18,
                                  "iconFontName": "lock",
                                  "iconFontFamily": "lucide",
                                  "fill": "$text-muted"
                                },
                                {
                                  "type": "text",
                                  "fill": "$text-muted",
                                  "content": "••••••••",
                                  "fontFamily": "Roboto",
                                  "fontSize": 14
                                }
                              ]
                            },
                            {
                              "type": "icon_font",
                              "width": 18,
                              "height": 18,
                              "iconFontName": "eye-off",
                              "iconFontFamily": "lucide",
                              "fill": "$text-muted"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "name": "submitButton",
                  "width": "fill_container",
                  "height": 48,
                  "fill": {
                    "type": "gradient",
                    "gradientType": "linear",
                    "rotation": 135,
                    "colors": [
                      { "color": "#FF5C00", "position": 0 },
                      { "color": "#FF8A4C", "position": 1 }
                    ]
                  },
                  "cornerRadius": 10,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "fill": "$text-primary",
                      "content": "Đăng nhập",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "600"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "name": "footerLinks",
                  "width": "fill_container",
                  "justifyContent": "center",
                  "gap": 4,
                  "children": [
                    {
                      "type": "text",
                      "fill": "$text-tertiary",
                      "content": "Chưa có tài khoản chi nhánh?",
                      "fontFamily": "Roboto",
                      "fontSize": 14
                    },
                    {
                      "type": "text",
                      "fill": "$orange-primary",
                      "content": "Liên hệ",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "500"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-page": { "type": "color", "value": "#0A0A0B" },
    "bg-surface": { "type": "color", "value": "#111113" },
    "bg-elevated": { "type": "color", "value": "#1A1A1D" },
    "border-default": { "type": "color", "value": "#2A2A2E" },
    "orange-primary": { "type": "color", "value": "#FF5C00" },
    "text-primary": { "type": "color", "value": "#FFFFFF" },
    "text-secondary": { "type": "color", "value": "#ADADB0" },
    "text-tertiary": { "type": "color", "value": "#8B8B90" },
    "text-muted": { "type": "color", "value": "#6B6B70" }
  }
}
