@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --red-color: #950101;
  --green-color: #4e9f3d;
  --place-holder-color: rgba(151, 151, 151, 0.61);
}

html {
  font-family: "Noto Sans", sans-serif;
  font-size: 62.5%;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: rgba(230, 231, 231, 0.493);
  font-size: 2rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 50rem;
  border: 0.1rem solid rgb(46, 45, 45);
  padding: 5rem;
  border-radius: 2rem;
  box-shadow: 0 0.5rem 2rem 1rem rgba(110, 109, 109, 0.3);
  background-color: #fff;
}

h2 {
  border-bottom: 0.1rem solid rgba(163, 163, 163, 0.616);
  text-align: center;
  padding-bottom: 1rem;
  color: #16213e;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-control div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label,
small {
  display: block;
  color: #16213e;
}

small {
  font-size: 1.5rem;
  visibility: hidden;
}

input {
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1.8rem;
  border: none;
  box-shadow: 0 0 0 0.2rem rgba(102, 102, 102, 0.527);
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--place-holder-color);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--place-holder-color);
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--place-holder-color);
}

.error {
  visibility: visible;
  color: var(--red-color);
}
.success {
  visibility: visible;
  color: var(--green-color);
}
input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(155, 185, 250, 0.527);
}
.input-error {
  box-shadow: 0 0 0 0.2rem var(--red-color);
}
.input-success {
  box-shadow: 0 0 0 0.2rem var(--green-color);
}

button {
  font-size: inherit;
  margin-top: 1rem;
  padding: 1rem;
  border: none;
  border-radius: 1rem;
  background-color: rgb(212, 235, 255);
  box-shadow: 0 0 1rem rgba(172, 172, 172, 0.349);
  cursor: pointer;
  color: #16213e;
}

button:hover {
  box-shadow: 0 0 1rem rgba(100, 100, 100, 0.349);
  background-color: rgb(136, 195, 243);
}

button:active {
  box-shadow: 0 0 1rem rgba(48, 48, 48, 0.349);
  background-color: rgb(30, 133, 218);
  color: #fff;
}

@media (max-width: 59em) {
  html {
    font-size: 51%;
  }
  .container {
    width: 40rem;
  }
}
@media (max-width: 19em) {
  html {
    font-size: 40%;
  }
  .container {
    width: 35rem;
  }
}
