{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "name": "Auth Form Fields Showcase",
      "width": 1440,
      "fill": "$bg-page",
      "layout": "vertical",
      "gap": 80,
      "padding": [80, 120],
      "children": [
        {
          "type": "frame",
          "id": "FormFieldSection",
          "name": "Form Fields Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 48,
          "children": [
            {
              "type": "frame",
              "name": "sectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "FORM FIELDS",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "Authentication Form Fields",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                },
                {
                  "type": "text",
                  "name": "shDesc",
                  "fill": "$text-tertiary",
                  "textGrowth": "fixed-width",
                  "width": 600,
                  "content": "Complete form fields with labels, inputs, validation, and helper text.",
                  "lineHeight": 1.6,
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 16
                }
              ]
            },
            {
              "type": "frame",
              "name": "fieldsGrid",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 32,
              "children": [
                {
                  "type": "frame",
                  "id": "EmailFieldRow",
                  "name": "Email Fields Row",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 16,
                  "stroke": { "thickness": 1, "fill": "$border-subtle" },
                  "layout": "vertical",
                  "gap": 24,
                  "padding": 40,
                  "children": [
                    {
                      "type": "text",
                      "name": "rowLabel",
                      "fill": "$text-secondary",
                      "content": "Email Form Field",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "500"
                    },
                    {
                      "type": "frame",
                      "name": "fieldsContainer",
                      "gap": 32,
                      "children": [
                        {
                          "type": "frame",
                          "id": "FormField_Email_Default",
                          "name": "Molecule/FormField/Email/Default",
                          "reusable": true,
                          "width": 360,
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "text",
                              "id": "FormField_Email_Label",
                              "name": "label",
                              "fill": "$text-secondary",
                              "content": "Email",
                              "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",
                                  "name": "inputIcon",
                                  "width": 18,
                                  "height": 18,
                                  "iconFontName": "mail",
                                  "iconFontFamily": "lucide",
                                  "fill": "$text-muted"
                                },
                                {
                                  "type": "text",
                                  "id": "FormField_Email_Placeholder",
                                  "name": "placeholder",
                                  "fill": "$text-muted",
                                  "content": "email@example.com",
                                  "fontFamily": "Roboto",
                                  "fontSize": 14
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "FormField_Email_Filled",
                          "name": "Molecule/FormField/Email/Filled",
                          "reusable": true,
                          "width": 360,
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "text",
                              "name": "label",
                              "fill": "$text-secondary",
                              "content": "Email",
                              "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-focus" },
                              "padding": [0, 16],
                              "gap": 10,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "icon_font",
                                  "name": "inputIcon",
                                  "width": 18,
                                  "height": 18,
                                  "iconFontName": "mail",
                                  "iconFontFamily": "lucide",
                                  "fill": "$orange-primary"
                                },
                                {
                                  "type": "text",
                                  "name": "value",
                                  "fill": "$text-primary",
                                  "content": "user@goodgo.vn",
                                  "fontFamily": "Roboto",
                                  "fontSize": 14
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "FormField_Email_Error",
                          "name": "Molecule/FormField/Email/Error",
                          "reusable": true,
                          "width": 360,
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "text",
                              "name": "label",
                              "fill": "$text-secondary",
                              "content": "Email",
                              "fontFamily": "Roboto",
                              "fontSize": 14,
                              "fontWeight": "500"
                            },
                            {
                              "type": "frame",
                              "name": "inputWrapper",
                              "width": "fill_container",
                              "height": 48,
                              "fill": "$bg-elevated",
                              "cornerRadius": 10,
                              "stroke": { "thickness": 1, "fill": "$status-error" },
                              "padding": [0, 16],
                              "gap": 10,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "icon_font",
                                  "name": "inputIcon",
                                  "width": 18,
                                  "height": 18,
                                  "iconFontName": "mail",
                                  "iconFontFamily": "lucide",
                                  "fill": "$status-error"
                                },
                                {
                                  "type": "text",
                                  "name": "value",
                                  "fill": "$text-primary",
                                  "content": "invalid-email",
                                  "fontFamily": "Roboto",
                                  "fontSize": 14
                                }
                              ]
                            },
                            {
                              "type": "frame",
                              "name": "errorRow",
                              "gap": 6,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "icon_font",
                                  "name": "errorIcon",
                                  "width": 14,
                                  "height": 14,
                                  "iconFontName": "alert-circle",
                                  "iconFontFamily": "lucide",
                                  "fill": "$status-error"
                                },
                                {
                                  "type": "text",
                                  "id": "FormField_Email_ErrorText",
                                  "name": "errorText",
                                  "fill": "$status-error",
                                  "content": "Định dạng email không hợp lệ",
                                  "fontFamily": "Roboto",
                                  "fontSize": 12
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "PhoneFieldRow",
                  "name": "Phone Fields Row",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 16,
                  "stroke": { "thickness": 1, "fill": "$border-subtle" },
                  "layout": "vertical",
                  "gap": 24,
                  "padding": 40,
                  "children": [
                    {
                      "type": "text",
                      "name": "rowLabel",
                      "fill": "$text-secondary",
                      "content": "Phone Form Field",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "500"
                    },
                    {
                      "type": "frame",
                      "name": "fieldsContainer",
                      "gap": 32,
                      "children": [
                        {
                          "type": "frame",
                          "id": "FormField_Phone_Default",
                          "name": "Molecule/FormField/Phone/Default",
                          "reusable": true,
                          "width": 360,
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "text",
                              "name": "label",
                              "fill": "$text-secondary",
                              "content": "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" },
                              "gap": 0,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "frame",
                                  "name": "countryCode",
                                  "height": "fill_container",
                                  "fill": "$bg-interactive",
                                  "cornerRadius": [10, 0, 0, 10],
                                  "padding": [0, 12],
                                  "gap": 6,
                                  "alignItems": "center",
                                  "children": [
                                    {
                                      "type": "text",
                                      "name": "flag",
                                      "content": "🇻🇳",
                                      "fontSize": 16
                                    },
                                    {
                                      "type": "text",
                                      "name": "code",
                                      "fill": "$text-secondary",
                                      "content": "+84",
                                      "fontFamily": "Roboto",
                                      "fontSize": 14,
                                      "fontWeight": "500"
                                    },
                                    {
                                      "type": "icon_font",
                                      "name": "chevron",
                                      "width": 14,
                                      "height": 14,
                                      "iconFontName": "chevron-down",
                                      "iconFontFamily": "lucide",
                                      "fill": "$text-muted"
                                    }
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "name": "inputField",
                                  "width": "fill_container",
                                  "height": "fill_container",
                                  "padding": [0, 12],
                                  "alignItems": "center",
                                  "children": [
                                    {
                                      "type": "text",
                                      "id": "FormField_Phone_Placeholder",
                                      "name": "placeholder",
                                      "fill": "$text-muted",
                                      "content": "912 345 678",
                                      "fontFamily": "Roboto",
                                      "fontSize": 14
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "FormField_Phone_Filled",
                          "name": "Molecule/FormField/Phone/Filled",
                          "reusable": true,
                          "width": 360,
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "text",
                              "name": "label",
                              "fill": "$text-secondary",
                              "content": "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-focus" },
                              "gap": 0,
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "frame",
                                  "name": "countryCode",
                                  "height": "fill_container",
                                  "fill": "$bg-interactive",
                                  "cornerRadius": [10, 0, 0, 10],
                                  "padding": [0, 12],
                                  "gap": 6,
                                  "alignItems": "center",
                                  "children": [
                                    {
                                      "type": "text",
                                      "name": "flag",
                                      "content": "🇻🇳",
                                      "fontSize": 16
                                    },
                                    {
                                      "type": "text",
                                      "name": "code",
                                      "fill": "$text-secondary",
                                      "content": "+84",
                                      "fontFamily": "Roboto",
                                      "fontSize": 14,
                                      "fontWeight": "500"
                                    },
                                    {
                                      "type": "icon_font",
                                      "name": "chevron",
                                      "width": 14,
                                      "height": 14,
                                      "iconFontName": "chevron-down",
                                      "iconFontFamily": "lucide",
                                      "fill": "$text-muted"
                                    }
                                  ]
                                },
                                {
                                  "type": "frame",
                                  "name": "inputField",
                                  "width": "fill_container",
                                  "height": "fill_container",
                                  "padding": [0, 12],
                                  "alignItems": "center",
                                  "children": [
                                    {
                                      "type": "text",
                                      "name": "value",
                                      "fill": "$text-primary",
                                      "content": "912 345 678",
                                      "fontFamily": "Roboto",
                                      "fontSize": 14
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "PasswordFieldRow",
                  "name": "Password Fields Row",
                  "width": "fill_container",
                  "fill": "$bg-surface",
                  "cornerRadius": 16,
                  "stroke": { "thickness": 1, "fill": "$border-subtle" },
                  "layout": "vertical",
                  "gap": 24,
                  "padding": 40,
                  "children": [
                    {
                      "type": "text",
                      "name": "rowLabel",
                      "fill": "$text-secondary",
                      "content": "Password Form Field with Strength Meter",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "500"
                    },
                    {
                      "type": "frame",
                      "name": "fieldsContainer",
                      "gap": 32,
                      "alignItems": "start",
                      "children": [
                        {
                          "type": "frame",
                          "id": "FormField_Password_Default",
                          "name": "Molecule/FormField/Password/Default",
                          "reusable": true,
                          "width": 360,
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "text",
                              "name": "label",
                              "fill": "$text-secondary",
                              "content": "Mật khẩu",
                              "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],
                              "justifyContent": "space_between",
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "frame",
                                  "name": "inputContent",
                                  "gap": 10,
                                  "alignItems": "center",
                                  "children": [
                                    {
                                      "type": "icon_font",
                                      "name": "inputIcon",
                                      "width": 18,
                                      "height": 18,
                                      "iconFontName": "lock",
                                      "iconFontFamily": "lucide",
                                      "fill": "$text-muted"
                                    },
                                    {
                                      "type": "text",
                                      "name": "placeholder",
                                      "fill": "$text-muted",
                                      "content": "Nhập mật khẩu",
                                      "fontFamily": "Roboto",
                                      "fontSize": 14
                                    }
                                  ]
                                },
                                {
                                  "type": "icon_font",
                                  "name": "toggleIcon",
                                  "width": 18,
                                  "height": 18,
                                  "iconFontName": "eye-off",
                                  "iconFontFamily": "lucide",
                                  "fill": "$text-muted"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "FormField_Password_WithStrength",
                          "name": "Molecule/FormField/Password/WithStrength",
                          "reusable": true,
                          "width": 360,
                          "layout": "vertical",
                          "gap": 8,
                          "children": [
                            {
                              "type": "text",
                              "name": "label",
                              "fill": "$text-secondary",
                              "content": "Mật khẩu mớ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-focus" },
                              "padding": [0, 16],
                              "justifyContent": "space_between",
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "frame",
                                  "name": "inputContent",
                                  "gap": 10,
                                  "alignItems": "center",
                                  "children": [
                                    {
                                      "type": "icon_font",
                                      "name": "inputIcon",
                                      "width": 18,
                                      "height": 18,
                                      "iconFontName": "lock",
                                      "iconFontFamily": "lucide",
                                      "fill": "$orange-primary"
                                    },
                                    {
                                      "type": "text",
                                      "name": "masked",
                                      "fill": "$text-primary",
                                      "content": "••••••••",
                                      "fontFamily": "Roboto",
                                      "fontSize": 14,
                                      "letterSpacing": 2
                                    }
                                  ]
                                },
                                {
                                  "type": "icon_font",
                                  "name": "toggleIcon",
                                  "width": 18,
                                  "height": 18,
                                  "iconFontName": "eye-off",
                                  "iconFontFamily": "lucide",
                                  "fill": "$text-muted"
                                }
                              ]
                            },
                            {
                              "type": "frame",
                              "name": "strengthMeter",
                              "width": "fill_container",
                              "layout": "vertical",
                              "gap": 6,
                              "children": [
                                {
                                  "type": "frame",
                                  "name": "strengthBars",
                                  "width": "fill_container",
                                  "gap": 4,
                                  "children": [
                                    {
                                      "type": "frame",
                                      "name": "bar1",
                                      "width": "fill_container",
                                      "height": 4,
                                      "fill": "$status-success",
                                      "cornerRadius": 2
                                    },
                                    {
                                      "type": "frame",
                                      "name": "bar2",
                                      "width": "fill_container",
                                      "height": 4,
                                      "fill": "$status-success",
                                      "cornerRadius": 2
                                    },
                                    {
                                      "type": "frame",
                                      "name": "bar3",
                                      "width": "fill_container",
                                      "height": 4,
                                      "fill": "$status-success",
                                      "cornerRadius": 2
                                    },
                                    {
                                      "type": "frame",
                                      "name": "bar4",
                                      "width": "fill_container",
                                      "height": 4,
                                      "fill": "$bg-interactive",
                                      "cornerRadius": 2
                                    }
                                  ]
                                },
                                {
                                  "type": "text",
                                  "name": "strengthLabel",
                                  "fill": "$status-success",
                                  "content": "Khá mạnh",
                                  "fontFamily": "Roboto",
                                  "fontSize": 12
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-page": { "type": "color", "value": "#0A0A0B" },
    "bg-surface": { "type": "color", "value": "#111113" },
    "bg-elevated": { "type": "color", "value": "#1A1A1D" },
    "bg-interactive": { "type": "color", "value": "#2A2A2E" },
    "border-default": { "type": "color", "value": "#2A2A2E" },
    "border-subtle": { "type": "color", "value": "#1F1F23" },
    "border-focus": { "type": "color", "value": "#FF5C00" },
    "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" },
    "status-error": { "type": "color", "value": "#EF4444" },
    "status-success": { "type": "color", "value": "#22C55E" }
  }
}
