:root {
  --Red: hsl(4, 100%, 67%);
  --Blue-800: hsl(234, 29%, 20%);
  --Blue-700: hsl(235, 18%, 26%);
  --Grey: hsl(0, 0%, 58%);
  --White: hsl(0, 0%, 100%);
  --paragraph: 16px;
  --Weights-400: 400;
  --Weights-700: 700;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Regular.ttf"), format("woff2");
}
@font-face {
  font-family: "Roboto-bold";
  src: url("./assets/fonts/Roboto-Bold.ttf"), format("woff2");
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto";
  font-size: var(--paragraph);
  font-weight: var(--Weights-400);
  text-decoration: none;
  color: white;
}

input {
  outline: none;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--Blue-700);
}

main {
  display: flex;
  background-color: var(--White);
  padding-inline: 2rem;
  padding-block: 1.7rem;
  margin-block: 1rem;
  border-radius: 2rem;
  justify-content: space-between;
  align-items: center;
  width: 58.5rem;
}

.text__box {
  margin-left: 2rem;
  flex-basis: 43%;
  margin-top: 2rem;
}

.text__h1 {
  font-size: 3.5rem;
  font-family: "Roboto-bold";
  color: var(--Blue-800);
}

.text__p {
  color: #5f5e6d;
  font-weight: 600;
  margin-block: 1.3rem;
}

ul {
  margin-bottom: 1rem;
}

ul li {
  color: #5f5e6d;
  font-weight: 600;
  margin-block: 0.2rem;
  list-style: none;
}

.list__check {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form__container {
  margin-block: 1rem;
  margin-top: 2.8rem;
}

.email__container h2 {
  color: var(--Blue-800);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: var(--Weights-700);
}

.input__email {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--Grey);
  font: 0.8rem;
  cursor: pointer;
  color: black;
}

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

#error{
  color: var(--Red);
  font-weight: var(--Weights-400);
}

.input__button {
  width: 100%;
  text-align: center;
  color: var(--White);
  background-color: var(--Blue-800);
  margin-block: 1.5rem;
  padding-block: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  transition: 0.5s;
}
.input__button:hover {
  background: linear-gradient(to right, rgb(255, 84, 118), rgb(255, 103, 66));
}

.desktop__img {
  display: block;
}

.mobile__img {
  display: none;
}

.tablet__img {
  display: none;
}

/* sucess message page */
.main {
  width: 30rem;
  padding: 3.5rem;
  border-radius: 1.5rem;
}

.success___container {
  width: 100%;
}

b {
  color: var(--Blue-800);
  font-weight: var(--Weights-700);
}


 

@media screen and (max-width: 1200px) {
  .desktop__img {
    display: none;
    width: 100%;
  }

  .mobile__img {
    display: none;
  }

  .tablet__img {
    display: block;
    width: 100%;
  }

  main {
    padding: 0rem;

    margin-block: 0rem;
    border-radius: 0rem;
    width: 33rem;
    flex-direction: column-reverse;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  }

  .text__box {
    margin: 1rem;
    flex-basis: 42%;
  }

  .text__h1 {
    font-size: 2.5rem;
    margin-block: 1rem;
  }

  /* sucess message page */
  .main {
    width: 25rem;
    border-radius: 0rem;
    height: 100vh;
    display: flex;
    place-content: center;
    padding: 1.5rem;
  }
  .success___container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .middle {
    margin: 0 auto;
    margin-top: 2rem;
  }

  .success__button {
    /* top: 23rem; */
    margin-top: auto;
  }
}

@media screen and (max-width: 530px) {
  .desktop__img {
    display: none;
    width: 100%;
  }

  .mobile__img {
    display: block;
    width: 100%;
  }

  .tablet__img {
    display: none;
  }

  main {
    padding: 0rem;
    margin-block: 0rem;
    width: 23.4rem;
  }
}
