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

:root {
  --red: hsl(4, 100%, 67%);
  --dark-blue: hsl(234, 29%, 20%);
  --blue: hsl(235, 18%, 26%);
  --grey: hsl(0, 0%, 58%);
  --white: hsl(0, 0%, 100%);
}

html {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark-blue);
}

p {
  line-height: 150%;
}

body {
  background-color: var(--dark-blue);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

article {
  background-color: var(--white);
  display: flex;
  width: fit-content;
  border-radius: 2rem;
  margin: 1rem;
}

figure {
  overflow: hidden;
  margin: 1.5rem;
  display: flex;
  justify-content: center;
  border-radius: 1rem;
}

.main-content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  max-width: 23rem;
  margin: 2rem;
}

.title {
  margin: 0.5rem 0;
  font-weight: 700;
  font-size: 3.5rem;
  text-align: left;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  margin-bottom: 0.5rem;
}

li::before {
  content: url("/assets/images/icon-list.svg");
  padding-right: 1rem;
  vertical-align: middle;
}

.email-container {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

form {
  margin-top: 2rem;
  width: 100%;
}

label {
  font-weight: 700;
  font-size: 0.85rem;
}

input {
  max-width: 100%;
  padding: 1rem;
  border: 1px solid var(--grey);
  border-radius: 0.5rem;
}

input::placeholder {
  color: var(--grey);
}

.form-button {
  margin-top: 1.25rem;
  width: 100%;
  border: none;
  background-color: var(--dark-blue);
  color: var(--white);
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.form-button:hover,
.success-container button:hover {
  background-image: linear-gradient(to right, #ff51a8, #ff6347);
  box-shadow: 0px 10px 30px #ff634790;
}

.labels {
  display: flex;
  justify-content: space-between;
}

.label-error {
  color: var(--red);
}

.error {
  background-color: hsl(4, 100%, 67%, 25%);
  border: 1px solid var(--red);
  color: var(--red);
}

.hide {
  display: none !important;
}

.success {
  height: 100vh;
  width: 100vw;
  position: absolute;
  background-color: var(--dark-blue);
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-container {
  background-color: var(--white);
  padding: 3rem;
  max-width: 23rem;
  border-radius: 2rem;
}

.success-container h1 {
  font-size: 3.5rem;
  margin: 1.5rem 0;
}

.success-container p {
  margin: 1.5rem 0;
}

.success-container button {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 0;
  background-color: var(--dark-blue);
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 768px) {
  article {
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    flex-direction: column-reverse;
    margin: 0;
  }

  .main-content-container {
    flex: 1;
    max-width: 100%;
    display: flex;
    margin: 1.5rem;
  }

  figure {
    margin: 0;
    border-radius: 0;
    width: 100%;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }

  .mobile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .main-content-container h1 {
    font-size: 2.5rem;
  }

  .success {
    overflow: hidden;
  }

  .success-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
}
