@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  color: hsl(234, 29%, 20%);
}

body {
  background-color: hsl(235, 18%, 26%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

ul {
  list-style: none;
  font-weight: 400;
}

li {
  display: flex;
  align-items: center;
  gap: 20px;
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  justify-content: space-between;
  background-color: #fff;
  padding: 20px 30px 20px 30px;
  border-radius: 20px;
}

.success-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  justify-content: space-between;
  background-color: #fff;
  padding: 30px 50px 60px 50px;
  border-radius: 20px;
  gap: 30px;
}

h1.success-header {
  font-size: 3.0rem;
}

.success-container .success-image {
  width: 55px;
  height: 55px;
}

p.success-paragraph {
  font-size: 0.9rem;
  font-weight: 450;
  color: hsl(235, 18%, 26%);
}

.left-container {
  display: flex;
  flex-direction: column;
  padding: 60px 40px 40px 40px;
  gap: 25px;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.list-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.header-section {
  color: hsl(234, 29%, 20%);
  font-size: 3.4rem;
  font-weight: 700;
}

.description {
  font-size: 1rem;
  line-height: 1.5;
}

.email-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.email-line {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.email-warning {
  font-weight: 700;
  font-size: 0.8rem;
  color: tomato;
  display: none;
}

.email-title {
  font-weight: 700;
  font-size: 0.8rem;
}

.email-input {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid hsl(234, 29%, 20%);
}

.email-input.error {
  background-color: #ff63474a;
  border-color: red;
  opacity: 1;
  border: 1px solid red;
}

.email-input.error::placeholder {
  color: rgb(0, 0, 0);
  opacity: 1;
}

.btn {
  width: 100%;
  height: 60px;
  font-size: 1rem;
  font-weight: 700;
  background-color: hsl(234, 29%, 20%);
  color: #fff;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}

.success-btn {
  width: 100%;
  height: 60px;
  font-size: 1rem;
  font-weight: 700;
  background-color: hsl(234, 29%, 20%);
  color: #fff;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: hsl(4, 100%, 67%);
  color: #fff;
  box-shadow: 0 6px 12px rgba(255, 82, 82, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success-btn:hover {
  background-color: hsl(4, 100%, 67%);
  color: #fff;
  box-shadow: 0 6px 12px rgba(255, 82, 82, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  body {
    background-color: #fff;
    padding: 0;
    align-items: flex-start;
    min-height: 100vh;
  }

  .container {
    flex-direction: column;
    padding: 0;
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
    width: 100vw;
  }

  .right-container {
    order: -1;
    margin-bottom: 0;
  }

  .image-container {
    margin-bottom: 0;
    width: 100%;
  }

  .image-container img {
    width: 100%;
    height: auto;
    border-radius: 0 0 20px 20px;
  }

  .image-container .image {
    content: url('./assets/images/illustration-sign-up-mobile.svg');
  }

  .left-container {
    padding: 40px 25px 40px 25px;
    gap: 25px;
    flex: 1;
  }

  .header-section {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .description {
    font-size: 1rem;
    line-height: 1.5;
  }

  .list-section {
    gap: 12px;
  }

  .email-section {
    gap: 10px;
    margin-top: 20px;
  }

  .success-container {
    max-width: 100%;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 150px 25px 40px 25px;
    border-radius: 0;
    justify-content: flex-start;
    gap: 25px;
  }

  .success-container .success-image {
    width: 60px;
    height: 60px;
  }

  h1.success-header {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  p.success-paragraph {
    font-size: 1rem;
    line-height: 1.5;
  }

  .success-btn {
    margin-top: auto;
    margin-bottom: 20px;
  }

  /* .btn{
    margin-top: 70px;
  } */

  .left-container {
    justify-content: space-between;
  }
}