@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%);
  --Red-light: hsla(4, 100%, 67%, 0.307);
  --Blue-800: hsl(234, 29%, 20%);
  --Blue-700: hsl(235, 18%, 26%);
  --Grey: hsl(0, 0%, 58%);
  --White: hsl(0, 0%, 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 1rem;
}

body {
  background-color: var(--Blue-700);
  height: 100vh;
  display: grid;
  place-items: center;
}

main {
  background-color: white;
  display: flex;
  padding: 2rem;
  border-radius: 20px;
  height: auto;
  width: 60rem;
}

.signup-section {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 3rem;
}

h1 {
  font-size: 3.5rem;
}

h3 {
  color: var(--Blue-700);
  line-height: 1.5;
}

ul {
  color: var(--Blue-700);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

li {
  margin-left: 2rem;
  list-style-image: url(assets/images/icon-list.svg);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  color: var(--Blue-800);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.error {
  display: none;
  color: var(--Red);
  font-size: 0.8rem;
  font-weight: 700;
}

input {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--Grey);
  border-radius: 5px;
  padding-left: 1rem;
  cursor: pointer;
}

.wrong-input {
  border: 1px solid var(--Red);
  color: var(--Red);
  background-color: var(--Red-light);
}

input:focus {
  outline: none;
  border: 1px solid var(--Blue-800);
}

input:hover {
  border: 1.5px solid var(--Blue-800);
}

button {
  width: 100%;
  height: 3rem;
  background-color: var(--Blue-800);
  color: var(--White);
  border-radius: 5px;
  box-shadow: none;
  border: none;
  cursor: pointer;
}

button:hover {
  background: linear-gradient(to right, rgb(255, 83, 121), var(--Red));
  box-shadow: 0 1rem 1rem hsla(4, 100%, 67%, 0.288);
}

.img-section {
  background-image: url("assets/images/illustration-sign-up-desktop.svg");
  width: 400px;
  height: 593px;
  background-size: cover;
  border-radius: 15px;
}

.subscription {
  display: none;
  place-items: center;
  height: auto;
  width: 30rem;
  background-color: var(--White);
  padding: 4rem;
  border-radius: 15px;
  gap: 2rem;
}

.subscription > img {
  margin-right: auto;
}

.subscription > p {
  color: var(--Blue-700);
  line-height: 1.5;
}

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

@media screen and (max-width: 768px) {
  main {
    flex-direction: column-reverse;
    width: 30rem;
    padding: 0;
  }
  .img-section {
    background-image: url("assets/images/illustration-sign-up-mobile.svg");
    width: 100%;
    height: 284px;
    background-size: cover;
    border-radius: 15px;
    margin: 0 auto;
  }

  .signup-section {
    gap: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }
  .subscription {
    height: 100vh;
    border-radius: 0;
    
  }
  .subscription > button {
    margin-top: auto;
  }
}
