import PropTypes from 'prop-types';

// material-ui
import { Box, Grid,Typography } from '@mui/material';

// project import
import AuthCard from './AuthCard';
// import Logo from 'components/Logo';
// import AuthFooter from 'components/cards/AuthFooter';

// assets
// import AuthBackground from 'assets/images/auth/AuthBackground';
// import backgroundImage from 'assets/images/hero-printing.png';
import backbroundImg from 'assets/images/bg_ml.jpg'
import 'assets/style/loginStyles.css'
import { Stack } from '../../../node_modules/@mui/material/index';
const BackgroundHead = {
  backgroundImage: `url(${backbroundImg})`,
  width: '100%',
  height: '100%',
  backgroundSize:'cover'
  }

// ==============================|| AUTHENTICATION - WRAPPER ||============================== //

const AuthWrapper = ({ children }) => (
  <Box sx={{ minHeight: '100vh' }}>
    {/* <AuthBackground /> */}
    {/* <img src={banner} alt="banner" width="100%" /> */}
    <div style={BackgroundHead}>
      <Grid
        container
        direction="row"
        justifyContent="space-between"
        alignItems="center"
        sx={{
          minHeight: '100vh'
        }}
      >
        <Grid item xs={12}>
          <Stack direction="row"
            justifyContent="space-between"
            alignItems="center"
            spacing={2}>
            <Grid item xs={12} sx={{ ml: 4, mt: 3 ,display: { xs: 'none', sm: 'block' }}}>
              <Typography style={{textAlign: "center",fontFamily: "微軟正黑體",fontSize: "1.6rem"}}>香港特別行政區政府</Typography>
              <Typography style={{textAlign: "center",fontFamily: "微軟正黑體",fontSize: "1.6rem",fontWeight:"bold"}}>憲報</Typography>
            </Grid>
            <Grid
              item
              xs={12}
              container
              justifyContent="right"
              alignItems="center"
              sx={{ minHeight: { xs: 'calc(100vh - 134px)', md: 'calc(100vh - 112px)' } }}
            >
              <Grid item>
                <AuthCard>{children}</AuthCard>
              </Grid>
            </Grid>
          </Stack>
        </Grid>
      </Grid>
    </div>
    {/* <AuthFooter/> */}
  </Box>
);

AuthWrapper.propTypes = {
  children: PropTypes.node
};

export default AuthWrapper;
