@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap');

*,
*::before,
*::after {box-sizing:border-box;}

/* CUSTOM PROPERTIES */

:root {
  --ff-sans:'Josefin Sans', sans-serif;

  --fw-light : 300;
  --fw-reg : 400;
  --fw-bold : 600;

  --fs-body : 16px; 
  --fs-att : 11px;
  
  --clr-white :hsl(0, 0%, 100%);
  --clr-primary-red : hsl(0, 36%, 70%);
  --clr-primary-soft-red : hsl(0, 93%, 68%);
  --clr-neutral-dark-gray: hsl(0, 6%, 24%);
  --clr-a: hsl(228, 45%, 44%);

  --clr-linear-grad1 : 135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%);
  --clr-linear-grad2 : 135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%);
  
}
   
body {
  font-family: var(--ff-sans);
  font-size:var(--fs-body);
  color: var(--clr-primary-red);
  font-weight:var(--fw-reg);
  margin : 0 auto;
  background: linear-gradient(var(--clr-linear-grad1));
  height: 100vh;
}
  
.container {
  display:flex;
  height: 100%;
  position: relative;
}

h1 {margin:0;}

/* MAIN  */

.main {
  padding: 0 5rem;
  width: 60%;
  background-image: url(/base-apparel-coming-soon/images/bg-pattern-desktop.svg);
  background-repeat:no-repeat;
  background-size: cover;
}

.logo {
  margin: 5rem 0;
  width: 180px;
}

.main-title {
  text-transform: uppercase;
  font-size: 3.5rem;
  color: var(--clr-neutral-dark-gray);
  letter-spacing: 15px ;
  padding-top: 2rem;
  opacity: 0;
  animation: reveal 3s ease forwards;
}

.main-title span {
  display:block;
  color: var(--clr-primary-red);
  font-weight: var(--fw-light);
}

.main-content {
  padding: 1rem 0;
  letter-spacing: 1px;
  line-height: 2.2ch;
  max-width: 50ch;
  min-width: 300px;
}

.hero-img{
  width: 40%;
  background-image: url(/base-apparel-coming-soon/images/hero-desktop.jpg);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
}

.mobile-img{display:none;}

/* FORM */

form {
  position:relative;
  min-width: 200px;
  max-width: 50ch;
  transform: translateX(-100px);
  animation: glidein 2s cubic-bezier(0, 0.46, 0.76, 1.28) forwards;
}

input {
  font-family: inherit;
  font-size:inherit;
  border-radius:  50px;
  width: 100%;
  padding: 1rem 2rem;
  border: 1px  solid var(--clr-primary-red);
  background-color: transparent;
  height: 50px;
}

input:focus {
  outline:none;
  box-shadow: 0px 0px 10px hsla(0, 36%, 70%, 0.8);
}

input::placeholder {color: var(--clr-primary-red);}

.btn {
  background: linear-gradient(var(--clr-linear-grad2));
  padding: 1rem;
  border:none;
  border-radius: 50px;
  width: 100px;
  cursor:pointer;
  position:absolute;
  top: 0;
  right:0;
  height: 52px;
  box-shadow: 2px 5px 10px hsla(0, 36%, 70%, 0.8);
  transition: opacity 200ms ease;
}

.btn:hover,
.btn:active {opacity: 0.7;}
.btn:focus {outline:none;}

.toast-success {
  position: absolute;
  top: 100px;
  left: 20%;
  background: linear-gradient(var(--clr-linear-grad2));
  padding: 1rem 2rem;
  color: var(--clr-neutral-dark-gray);
  border-radius: 10px;
  font-size: 1rem;
  text-align:center;
  display:none;
}

.show {display:block;}

.toast-success p {margin: 0;}

/* FORM ERROR  */

/* input:invalid {border: 2px solid var(--clr-primary-soft-red);} */

.error-icon {
  position: absolute;
  transform:translateY(-150%);
  right: 110px;
  display:none;
}

.error-text {
  color: var(--clr-primary-soft-red);
  font-size: 0.9rem;
  margin-left:1.5rem;
  display:none;
}

.error input {border: 2px solid var(--clr-primary-soft-red);}

.error .error-icon {
  display:block;
  opacity: 0;
  animation: reveal 1s ease forwards;
}

.error .error-text {
  display:block;
  opacity: 0;
  animation: reveal 1.5s ease forwards;
}

/* FOOTER */
.footer {
  position: absolute;
  bottom: 0;
  left: 15%;
  font-weight:var(--fw-light);
  color: var(--clr-neutral-gray-blue);
  font-size: var(--fs-att);
  margin: 1rem;
}

.footer a {color :var(--clr-a);}

/* MEDIA QUERIES */

@media(max-width: 700px) {

  .inner-container {
    margin: 0 auto;
    text-align:center;
  }

  .main {
    width: 100%;
    padding: 0rem 1rem;
  }
 
  .logo {
    margin: 2rem 0;
    width: 120px;
  }
  
  .mobile-img {
    display:block;
    width: 100%;
    margin-right: -1rem;
    margin-left: -1rem;
    width: calc(100% + 2rem);
  }
  
  .main-title {font-size: 2rem;}
  .btn {width: 80px;}

  .error-icon {
    transform:translateY(-150%);
    right: 90px;
  }

  .error-text {text-align:left;}
  .hero-img {display:none;}
  .footer {display:none;}
}

/* ANIMATIONS */

@keyframes reveal {
  to {
    opacity: 1;
  }
}

@keyframes glidein {
  to {
    transform:translateX(0);
  }
}


