* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --Desaturated-Red: hsl(0, 36%, 70%);
  --Soft-Red: hsl(0, 93%, 68%);
  --Dark-Grayish-Red: hsl(0, 6%, 24%);
  --gradient-1: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
  --gradient-2: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
}

body {
  font-family: "Josefin Sans", sans-serif;
  background: var(--gradient-1);
  overflow: hidden;
}



main {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.left-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem;
  margin-left: 2rem;
  overflow: hidden;
}

.left-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/bg-pattern-desktop.svg') no-repeat center;
  background-size: cover;
  z-index: 0;
  opacity: 1;
}

.logo {
  width: 120px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.text-content {
  max-width: 480px;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 5rem;
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--Desaturated-Red);
  margin-bottom: 1rem;
}

h1 strong {
  font-weight: 700;
  color: var(--Dark-Grayish-Red);
}

p {
  font-size: 1rem;
  color: var(--Desaturated-Red);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--Desaturated-Red);
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
}

input[type="email"]::placeholder {
    color: var(--Desaturated-Red);
    opacity: 1;
}

input.error {
  border-color: var(--Soft-Red);
}

.error-icon {
  position: absolute;
  right: 8rem;
  width: 20px;
  display: none;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border: none;
    border-radius: 25px;
    padding: 1rem 2.5rem;
    cursor: pointer;
    margin-left: -2.5rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: var(--gradient-2);
    transform: scale(1.01);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    filter: brightness(1.15);
}




.error-message {
  color: var(--Soft-Red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.success {
  color: var(--Dark-Grayish-Red);
}



.right-hero {
  height: 100%;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-mobile {
  display: none;
  
}

/* Mobile */
@media (max-width: 375px) {
  body {
    overflow: auto;
  }

  main {
    height: auto;
  }

  .container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-mobile {
    display: block;
    width: 100vw;        
    height: auto;
    margin: 0 -2rem 2rem;  
  }

  .right-hero {
    display: none;
  }

  .hero {
    height: auto;
  }

  .left-content {
    padding: 2rem;
    margin-left: 0;
    background: none;
  }

  .left-content::before {
    display: none;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }

  p {
    font-size: 0.95rem;
    text-align: center;
  }

  .text-content {
    align-items: center;
    text-align: center;
  }

  .input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: row; 
  }

  input[type="email"] {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 1rem; 
    font-size: 1rem;
    border-radius: 25px;
  }

  .error-icon {
    position: absolute;
    right: 4rem; 
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    display: none;
  }

  button {
    margin-left: -2.5rem;
    padding: 1rem 1.5rem;
    
    z-index: 1;
  }
}

