


body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(0, 100%, 98%);
  margin: 0;
  padding: 0;
  height: 100vh; /* full viewport height */

}
.logo{
  margin-bottom: 7rem;

}

h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 4rem;
  letter-spacing: 0.8rem;
  color: hsl(0, 36%, 70%);
  line-height: 1.2;
}

h1 span:nth-child(3), h1 span:nth-child(5) {
  color: hsl(0, 6%, 24%);
  font-weight: 400;
}
/* Container with flex */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
  
}
.card-content h1 {
  margin-bottom: 2rem; 
}
.card-content p {
color:hsl(0, 36%, 70%);
font-size:14px;
font-weight: none;
line-height: 1.6;
margin-top: 1rem;


}

.input-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width:100%;
  max-width: 400px;
  margin-top: 3.2rem;
 
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Left side - logo + card */
.left-side {
  flex: 1; /* 50% width */
  background: url(/images/bg-pattern-desktop.svg);
  background-repeat: no-repeat;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 7rem;
  height: 100vh;
  position: relative; 
}
.email{
  width:100%;
  height:3rem;
  font-family: 'Josefin Sans', sans-serif;
  padding: 0 15rem 0 15rem; /* space for the button */
  padding-left: 1rem;
  font-size: 14px;
  border-radius: 10rem;
  border: 1px solid hsl(0, 36%, 70%);
}
.error-icon {
  position:absolute;
  top:28%;
  right: 4.5rem;
  width: 25px;
  display: none; /* Hide by default */
}

.error-text {
  
  position:relative;
  color: red!important;
  font-size: 14px;
  margin-top: 8px;
  margin-left: 1rem;
  display: none; /* Hide by default */
}
.email.error {
  border: 2px solid hsl(0, 93%, 68%);
}

/* Arrow button */
.submitBtn{
  position:absolute;
  width:4.5rem;
  height:100%;
  top: 0;
  right: 0;
  border-radius: 2rem;
  background-color: hsl(0, 80%, 86%);
  background-image: url('/images/icon-arrow.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem;
  color:white;
  font-size: 18px;
  border-color: white;
  cursor: pointer;

}

/* Default: show desktop, hide mobile */
.hero-desktop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mobile {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attribution { 
    font-size: 11px; text-align: center;
 }
.attribution a {
     color: hsl(228, 45%, 44%);
     }


/* Example media queries for those design widths */

@media (max-width: 375px) {
  /* Styles optimized for mobile design */
}

@media (min-width: 376px) and (max-width: 1440px) {
  /* Styles optimized for tablet to desktop range */
}

@media (min-width: 1441px) {
  /* Styles for very large screens */
}



/* Mobile styles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .right-side {
    display: none; /* hide desktop right side completely */
  }

  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
    margin: 20px 0; /* optional spacing */
  }

  .left-side {
    align-items: center;
    text-align: center;
  }
}