{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "space-login",
  "type": "registry:item",
  "title": "Space Login",
  "description": "Split-screen login form with space theme and social authentication options",
  "dependencies": [
    "@mui/icons-material",
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/space-login/space-login.tsx",
      "target": "src/mui-treasury/components/space-login/space-login.tsx",
      "content": "'use client';\n\nimport React, { useState } from 'react';\n\nimport {\n  Facebook,\n  Google,\n  Visibility,\n  VisibilityOff,\n} from '@mui/icons-material';\nimport {\n  Box,\n  Button,\n  Checkbox,\n  Divider,\n  FormControlLabel,\n  IconButton,\n  Link,\n  Stack,\n  TextField,\n  Typography,\n} from '@mui/material';\n\ninterface FormData {\n  email: string;\n  password: string;\n  rememberMe: boolean;\n}\n\ninterface FormErrors {\n  email?: string;\n  password?: string;\n}\n\nexport function SpaceLogin() {\n  const [formData, setFormData] = useState<FormData>({\n    email: '',\n    password: '',\n    rememberMe: false,\n  });\n  const [errors, setErrors] = useState<FormErrors>({});\n  const [showPassword, setShowPassword] = useState(false);\n\n  const handleInputChange =\n    (field: keyof FormData) => (event: React.ChangeEvent<HTMLInputElement>) => {\n      const value =\n        field === 'rememberMe' ? event.target.checked : event.target.value;\n      setFormData((prev) => ({ ...prev, [field]: value }));\n\n      // Clear errors on input\n      if (errors[field as keyof FormErrors]) {\n        setErrors((prev) => ({ ...prev, [field]: undefined }));\n      }\n    };\n\n  const handleSubmit = (event: React.FormEvent) => {\n    event.preventDefault();\n    const newErrors: FormErrors = {};\n\n    if (!formData.email) {\n      newErrors.email = 'Email is required';\n    } else if (!/\\S+@\\S+\\.\\S+/.test(formData.email)) {\n      newErrors.email = 'Please enter a valid email';\n    }\n\n    if (!formData.password) {\n      newErrors.password = 'Password is required';\n    }\n\n    setErrors(newErrors);\n\n    if (Object.keys(newErrors).length === 0) {\n      console.log('Form submitted:', formData);\n    }\n  };\n\n  return (\n    <Box\n      sx={{\n        minHeight: '100vh',\n        display: 'grid',\n        gridTemplateColumns: { xs: '1fr', md: '1fr 1fr' },\n        gridTemplateRows: { xs: 'auto 1fr', md: '1fr' },\n      }}\n    >\n      {/* Left Panel - Space Theme */}\n      <Box\n        sx={{\n          position: 'relative',\n          background: `linear-gradient(135deg, \n            rgba(13, 27, 42, 0.95) 0%, \n            rgba(27, 39, 53, 0.9) 50%, \n            rgba(65, 74, 76, 0.8) 100%\n          )`,\n          color: 'white',\n          display: { xs: 'none', md: 'flex' },\n          flexDirection: 'column',\n          justifyContent: 'center',\n          alignItems: 'center',\n          p: { xs: 3, md: 4 },\n          minHeight: { xs: '40vh', md: '100vh' },\n          textAlign: 'center',\n          overflow: 'hidden',\n          '&::before': {\n            content: '\"\"',\n            position: 'absolute',\n            top: 0,\n            left: 0,\n            right: 0,\n            bottom: 0,\n            backgroundImage: `url(\"https://placehold.co/800x600\")`,\n            backgroundSize: 'cover',\n            backgroundPosition: 'center',\n            backgroundRepeat: 'no-repeat',\n            opacity: 0.3,\n            zIndex: -1,\n          },\n        }}\n      >\n        <Stack spacing={3} sx={{ maxWidth: 400, zIndex: 1 }}>\n          <Typography\n            variant=\"h2\"\n            sx={{\n              fontSize: { xs: '2.5rem', md: '3.5rem' },\n              fontWeight: 300,\n              lineHeight: 1.2,\n              mb: 2,\n            }}\n          >\n            The Future\n            <br />\n            Through Space\n          </Typography>\n\n          <Typography\n            variant=\"body1\"\n            sx={{\n              opacity: 0.9,\n              lineHeight: 1.6,\n              fontSize: { xs: '0.95rem', md: '1rem' },\n            }}\n          >\n            Lorem ipsum dolor sit amet consectetur. Lorem posuere at odio nullam\n            pulvinar enim consequat at vitae. Elit ullamcorper ultrices magna\n            malesuada erat.\n          </Typography>\n        </Stack>\n\n        {/* Progress Indicators */}\n        <Stack\n          direction=\"row\"\n          spacing={1}\n          sx={{\n            position: 'absolute',\n            bottom: 24,\n            left: '50%',\n            transform: 'translateX(-50%)',\n          }}\n        >\n          <Box\n            sx={{\n              width: 32,\n              height: 4,\n              bgcolor: 'white',\n              borderRadius: 2,\n            }}\n          />\n          <Box\n            sx={{\n              width: 16,\n              height: 4,\n              bgcolor: 'rgba(255, 255, 255, 0.4)',\n              borderRadius: 2,\n            }}\n          />\n          <Box\n            sx={{\n              width: 16,\n              height: 4,\n              bgcolor: 'rgba(255, 255, 255, 0.4)',\n              borderRadius: 2,\n            }}\n          />\n        </Stack>\n      </Box>\n      {/* Right Panel - Login Form */}\n      <Box\n        sx={{\n          display: 'flex',\n          alignItems: 'center',\n          justifyContent: 'center',\n          p: { xs: 3, md: 4 },\n          bgcolor: 'background.paper',\n        }}\n      >\n        <Box sx={{ maxWidth: 400, mx: 'auto' }}>\n          <Stack spacing={3}>\n            <Box sx={{ textAlign: 'center', mb: 2 }}>\n              <Typography\n                variant=\"h2\"\n                sx={{\n                  fontWeight: 600,\n                  mb: 1,\n                  color: 'text.primary',\n                }}\n              >\n                Welcome Back\n              </Typography>\n              <Typography\n                variant=\"body2\"\n                sx={{\n                  color: 'text.secondary',\n                }}\n              >\n                Enter your email and password to access your account\n              </Typography>\n            </Box>\n\n            <Box component=\"form\" onSubmit={handleSubmit}>\n              <Stack spacing={2.5}>\n                <TextField\n                  fullWidth\n                  required\n                  label=\"Email\"\n                  placeholder=\"Enter your email\"\n                  value={formData.email}\n                  onChange={handleInputChange('email')}\n                  error={!!errors.email}\n                  helperText={errors.email}\n                  variant=\"outlined\"\n                />\n\n                <TextField\n                  fullWidth\n                  required\n                  label=\"Password\"\n                  placeholder=\"Enter your password\"\n                  type={showPassword ? 'text' : 'password'}\n                  value={formData.password}\n                  onChange={handleInputChange('password')}\n                  error={!!errors.password}\n                  helperText={errors.password}\n                  variant=\"outlined\"\n                  slotProps={{\n                    input: {\n                      endAdornment: (\n                        <IconButton\n                          aria-label={\n                            showPassword ? 'Hide password' : 'Show password'\n                          }\n                          onClick={() => setShowPassword(!showPassword)}\n                          edge=\"end\"\n                        >\n                          {showPassword ? <VisibilityOff /> : <Visibility />}\n                        </IconButton>\n                      ),\n                    },\n                  }}\n                />\n\n                <Stack\n                  direction=\"row\"\n                  sx={{\n                    justifyContent: 'space-between',\n                    alignItems: 'center',\n                    mt: 1,\n                    flexWrap: 'wrap',\n                  }}\n                >\n                  <FormControlLabel\n                    control={\n                      <Checkbox\n                        checked={formData.rememberMe}\n                        onChange={handleInputChange('rememberMe')}\n                        size=\"small\"\n                      />\n                    }\n                    label=\"Remember me\"\n                    sx={{\n                      '& .MuiFormControlLabel-label': {\n                        fontSize: '0.875rem',\n                      },\n                    }}\n                  />\n                  <Link\n                    href=\"#\"\n                    variant=\"body2\"\n                    sx={{\n                      ml: 'auto',\n                      color: 'text.primary',\n                      textDecoration: 'none',\n                      '&:hover': {\n                        textDecoration: 'underline',\n                      },\n                    }}\n                  >\n                    Forgot password? <strong>Change now</strong>\n                  </Link>\n                </Stack>\n\n                <Button\n                  fullWidth\n                  type=\"submit\"\n                  variant=\"contained\"\n                  size=\"large\"\n                >\n                  Sign In\n                </Button>\n\n                <Stack\n                  direction=\"row\"\n                  spacing={0.5}\n                  sx={{\n                    justifyContent: 'center',\n                    mt: 2,\n                    flexWrap: 'wrap',\n                  }}\n                >\n                  <Typography\n                    variant=\"body2\"\n                    sx={{\n                      color: 'text.secondary',\n                    }}\n                  >\n                    Don&apos;t have an account?\n                  </Typography>\n                  <Link\n                    href=\"#\"\n                    variant=\"body2\"\n                    sx={{\n                      ml: 'auto',\n                      color: 'text.primary',\n                      textDecoration: 'none',\n                      fontWeight: 500,\n                      '&:hover': {\n                        textDecoration: 'underline',\n                      },\n                    }}\n                  >\n                    Sign Up\n                  </Link>\n                </Stack>\n\n                <Divider sx={{ color: 'text.secondary', fontSize: '0.875rem' }}>\n                  or\n                </Divider>\n\n                <Stack spacing={1.5}>\n                  <Button fullWidth variant=\"outlined\" startIcon={<Google />}>\n                    Google\n                  </Button>\n                  <Button fullWidth variant=\"outlined\" startIcon={<Facebook />}>\n                    Facebook\n                  </Button>\n                </Stack>\n              </Stack>\n            </Box>\n          </Stack>\n        </Box>\n      </Box>\n    </Box>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/space-login/index.ts",
      "target": "src/mui-treasury/components/space-login/index.ts",
      "content": "export * from './space-login';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "screenshot": "/og/space-login.png",
    "category": "block",
    "exportName": "SpaceLogin",
    "subcategory": "authentication"
  }
}