@import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
}
button,
a,
input {
  font-family: "Space Mono", sans-serif;
}
body {
  overflow-x: hidden;
  color: hsl(360, 100%, 95%);
  font-family: "Space Mono", sans-serif;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f24c27;
  background: radial-gradient(
    circle,
    rgba(242, 76, 39, 1) 0%,
    rgba(199, 108, 87, 1) 50%,
    rgba(237, 83, 188, 1) 100%
  );
}
.card {
  font-size: clamp(0.875rem, 0.786rem + 0.238vw, 1rem);
  line-height: 2;
  width: min(80%, 25rem);
  min-height: 40rem;
  background-color: hsla(0, 0%, 0%, 20%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid hsl(360, 100%, 90%);
}
.card .btn-group {
  display: flex;
  justify-content: space-evenly;
  width: 160px;
  height: 40px;
  border-radius: 1rem;
  background-color: hsla(0, 0%, 0%, 25%);
  overflow: hidden;
  box-shadow: 0 0 3rem hsla(0, 0%, 10%, 50%);
  border: 1px solid hsl(360, 100%, 90%);
}
.btn {
  font-weight: bold;
  flex: 1;
  color: inherit;
  background: hsla(0, 0%, 0%, 20%);
  border: none;
  transition: 100ms all ease-in;
  cursor: pointer;
}
.btn-group .btn:nth-child(1) {
  border-right: 1px solid hsl(360, 100%, 90%);
}
.btn:hover,
.btn.active {
  background-color: hsla(0, 0%, 100%, 20%);
}
.input-group label,
input {
  display: block;
  width: 100%;
}
.input-group {
  margin-block: 1rem;
}
.input-group input {
  background: hsla(0, 0%, 0%, 20%);
  border: none;
  box-shadow: none;
  border-radius: 0.35rem;
  min-height: 2.5rem;
}
.input-group input:focus,
input:active {
  box-shadow: none;
  outline: 1px solid hsl(360, 100%, 90%);
}
.form label::after {
  content: "*";
  font-size: 0.625rem;
  color: tomato;
}
.form input,
.form button {
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-family: inherit;
  color: inherit;
}
.form .input-group > input[type="submit"] {
  cursor: pointer;
  background: hsla(0, 0%, 100%, 15%);
  font-weight: bold;
  transition: all 0.2s ease;
}
.form .input-group > input[type="submit"]:hover {
  background: hsla(0, 0%, 100%, 25%);
}
.form-container {
  width: 100%;
  position: relative;
  height: 450px;
}
.form {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(2rem);
  transition: 150ms all ease-in;
  pointer-events: none;
}
.form.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.form h2 {
  margin-top: 1rem;
}

@media (max-width: 25em) {
  body {
    place-items: start;
  }
  .card {
    width: 100%;
  }
}