* {
  margin: 0;
  margin: 0;
  overflow-x: hidden;
}

body {
  width: 100vw;
}

header {
  background: #161922;
}

header ul {
  display: flex;
  flex-direction: row;
}

header ul li {
  list-style: none;
  width: 50%;
}

header ul li.title {
  display: flex;
  align-items: center;
  margin-left: 50px;
  margin-top: 22px;
  margin-bottom: 23px;
}

header ul li.container-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 150px;
  margin-top: 22px;
  margin-bottom: 23px;
}

header ul li h1 {
  color: #fff;
  font-size: 20px;
}

header ul li a {
  font-size: 15px;
  color: #00e2b8;
  font-family: "Karla", sans-serif;
  letter-spacing: 0.02em;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 270px;
  height: 45px;
  border: 2px solid #00e2b8;
  border-radius: 5px;
}

.button:hover {
  background-color: #00e2b8;
}

.button a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.button:hover a {
  color: #fff;
}

.container {
  width: 100%;
  /* height: 937px;; */
  background-image: url("../images/background.png");
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container .card {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 200px;
  margin-bottom: 200px;
  width: 415px;
  height: 449px;
  background-color: white;
  box-shadow: 0px 4px 25px rgba(20, 24, 36, 0.25);
  border-radius: 7px;
}

.container .card h2 {
  font-size: 18px;
  font-family: "Karla", sans-serif;
  color: #161922;
  text-align: center;
  text-transform: uppercase;
  margin-top: 54px;
  width: 343px;
}

.container .card p {
  font-size: 12px;
  font-family: "Open Sans", sans-serif;
  color: #161922;
  margin-top: 21px;
  text-align: center;
  height: 56px;
  width: 332px;
}

.container .card span.error {
  font-size: 12px;
  font-family: "Open Sans", sans-serif;
  text-align: center;
  letter-spacing: 0.02em;
  color: #f90404;
  font-weight: bold;
}

.container .card form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 332px;
}

.container .card input {
  display: flex;
  align-items: center;
  padding-left: 10px;
  width: 100%;
  height: 30px;
  border: 1px solid #c4c4c4;
  box-sizing: border-box;
  border-radius: 5px;
  margin-top: 20px;
}

.container .card input.error {
  border: 1px solid #f90404;
  color: #f90404;
}

.container .card input::placeholder {
  color: #c4c4c4;
  font-family: Open Sans;
  font-size: 12px;
}

.container .card .link {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 90%;
  margin-top: 6px;
}

.container .card .link a {
  color: #161922;
  font-family: "Open Sans", sans-serif;
  font-size: 9px;
  text-align: center;
  letter-spacing: 0.02em;
  text-decoration-line: underline;
}

.container .card .button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 270px;
  height: 45px;
  border: 2px solid #00d3ff;
  border-radius: 5px;
  margin-top: 57px;
  color: #00d3ff;
  font-family: "Karla", sans-serif;
  letter-spacing: 0.02em;
  font-size: 15px;
  text-transform: uppercase;
  background: white;
}

.container .card .button:hover {
  background-color: #00d3ff;
  color: #fff;
  cursor: pointer;
}

footer {
  background: #161922;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-around;
  padding-top: 30px;
  padding-bottom: 30px;
}

footer p {
  display: flex;
  justify-content: center;
  font-family: "Open Sans", sans-serif;
  color: #fff;
  font-size: 18px;
  padding-left: 12.5%;
}

footer nav ul {
  display: flex;
  justify-content: center;
  padding: 0;
  width: 100%;
}

footer nav ul li {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  /* width: 20%; */
  padding-right: 10px;
  padding-left: 10px;
  border-right: 1px solid #fff;
}

footer nav ul li a {
  color: #fff;
  letter-spacing: 0.02em;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  text-decoration: none;
}

@media (max-width: 900px) {
  header {
    height: 20%;
  }

  header ul {
    height: 100%;
  }

  header ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    align-items: center;
    justify-content: space-around;
  }

  header ul li {
    width: 100%;
    margin: 0;
  }

  header ul li.title,
  header ul li.container-button {
    justify-content: center;
    margin: 0;
    width: 90%;
    padding: 0;
  }

  .container .card {
    margin-top: 50px;
    margin-bottom: 50px;
    width: 90%;
  }

  .container .card h2,
  .container .card p {
    width: 95%;
  }

  .container .card form {
    width: 90%;
  }

  .container .card .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    justify-content: space-around;
    height: 60%;
    padding: 0;
  }

  footer p {
    width: 70%;
    text-align: center;
  }

  footer nav ul {
    flex-direction: column;
  }

  footer nav ul li {
    border-right: none;
    padding: 10px 0;
  }
}
