@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");
* {
  transition: 0.3s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1 {
  line-height: 1;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

nav ul {
  list-style: none;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
}

main {
  font-size: 16px;
  font-family: "Josefin Sans";
  background: url("../../images/bg-pattern-desktop.svg");
  background-position: 30rem 40rem;
  display: flex;
  width: 100%;
  height: 100vh;
}
main .model1 {
  display: none;
}
main section {
  padding: 10em;
  margin-right: 8%;
}
main section h1 {
  color: hsl(0, 36%, 70%);
  font-size: 4em;
  font-weight: 200;
  max-width: 25rem;
  letter-spacing: 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
main section h1 span {
  color: black;
  font-weight: 400;
}
main section img {
  margin-top: -6rem;
  margin-bottom: 6rem;
}
main section p {
  color: hsl(0, 36%, 70%);
  line-height: 2rem;
  max-width: 30rem;
  margin-bottom: 2rem;
}
main form {
  position: relative;
  height: 5rem;
}
main form input[type=email] {
  width: 25rem;
  height: 3rem;
  border-radius: 2rem;
  padding-left: 2rem;
  background-color: transparent;
  border: 1px solid #e0dcdc;
  color: #a9a3a3;
}
main form input[type=email]::-moz-placeholder {
  color: #e0dcdc;
}
main form input[type=email]::placeholder {
  color: #e0dcdc;
}
main form input[type=email]:focus {
  outline-color: #e0dcdc;
}
main form .submit {
  background: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
  width: 6rem;
  height: 3rem;
  border-radius: 2rem;
  position: absolute;
  top: 0rem;
  left: 20rem;
  border: 1px solid transparent;
  box-shadow: 0px 7px 25px -5px hsl(0, 36%, 70%);
}
main form .submit img {
  position: absolute;
  top: 6.8rem;
  left: 2.5rem;
  z-index: 1;
}
main form .submit img:hover {
  cursor: pointer;
}
main form .submit input[type=submit] {
  background-color: transparent;
  width: 6rem;
  height: 3rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  position: absolute;
  top: 0rem;
  color: transparent;
}
main form .submit input[type=submit]:hover {
  background-color: #fdc4c4;
  cursor: pointer;
}
main form #tooltip {
  color: red;
}
main form #error {
  position: absolute;
  top: 6.8rem;
  left: 18rem;
}

@media screen and (max-width: 850px) {
  main {
    flex-direction: column-reverse;
    height: -moz-fit-content;
    height: fit-content;
    margin-top: 10rem;
    position: relative;
  }
  main .model {
    height: 40rem;
  }
  main section {
    padding: 0rem;
    margin: 0rem;
    text-align: center;
    align-self: center;
  }
  main section h1 {
    margin-left: 2.3rem;
    margin-top: 3rem;
  }
  main section #logo {
    position: absolute;
    top: 0rem;
    left: 5rem;
  }
}
@media screen and (max-width: 700px) {
  main {
    margin-top: 10rem;
    height: -moz-fit-content;
    height: fit-content;
    position: relative;
  }
  main .model {
    display: none;
  }
  main .model1 {
    display: block;
  }
  main section {
    width: -moz-fit-content;
    width: fit-content;
  }
  main section h1 {
    margin-left: 1.1rem;
    font-size: 2rem;
  }
  main section p {
    max-width: 23rem;
  }
  main section form input[type=email] {
    width: 20rem;
  }
  main section form .submit {
    left: 16rem;
  }
}