import { StudioContainer } from '@/components'
import { Button, Text } from '@/shared/components'
import { SvgSigninIllustration } from '@/shared/illustrations'
import { media, colors, sizes } from '@/shared/theme'
import styled from '@emotion/styled'
import { Link } from 'react-router-dom'

export const StyledContainer = styled(StudioContainer)`
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
  ${media.medium} {
    flex-direction: row;
    justify-content: space-between;
  }
  ${media.xlarge} {
    max-width: 1700px;
    left: 150px;
  }
  ${media.xxlarge} {
    margin-top: 128px;
  }
`

export const LogoContainer = styled.div`
  display: inline-flex;
  ::after {
    align-self: center;
    padding: 2px 4px;
    margin-left: ${sizes(3)};
    background-color: ${colors.gray[600]};
    font-size: 10px;
    content: 'studio';
  }
`

export const Header = styled.header`
  max-width: 550px;
`

export const StyledHero = styled(Text)`
  margin-top: ${sizes(8)};
`

export const StyledSignInIllustrationSVG = styled(SvgSigninIllustration)`
  margin-top: 60px;
  align-self: center;
  width: 100%;
  ${media.medium} {
    position: relative;
    left: -50px;
    margin-top: 0;
  }
  ${media.large} {
    max-width: 1000px;
  }
  ${media.xxlarge} {
    max-width: unset;
  }
`

export const ButtonGroup = styled.div`
  margin-top: ${sizes(12)};
  display: flex;
  flex-direction: column;
  ${media.small} {
    flex-direction: row;
  }
`
export const SignInButton = styled(Button)`
  margin-bottom: ${sizes(4)};
  ${media.small} {
    margin-bottom: unset;
    margin-right: ${sizes(4)};
  }
`

export const SubTitle = styled(Text)`
  margin-top: ${sizes(4)};
  color: ${colors.gray[200]};
`

export const BackLink = styled(Link)`
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  text-decoration: none;

  margin-top: ${sizes(5)};

  path {
    stroke: ${colors.gray[300]};
  }
`
