/* reset */

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

* {
  font-family: sans-serif;
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* end of reset */

body {
  display: grid;
  place-content: center;
  width: 100%;
  height: 100vh;
  background: #FF4654;
  background: linear-gradient(135deg, rgba(255, 70, 84, 1) 40%, rgba(15, 26, 38, 1) 60%);
}

form {
  display: flex;
  flex-direction: column;
  width: 400px;
  padding: 2rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

form * {
  color: #454545;
}

input, select {
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid lightgray;
  border-radius: 3px;
  transition: all 200ms ease;
}

select {
  color: #454545;
  padding: 0 0.8rem;
}

input:focus-visible, select:focus-visible {
  outline: none;
  border: 1px solid gray;
}

input.invalid, select.invalid {
  background: #ff172a1d;
  border: 1px solid #ff172a;
}

button {
  border: none;
  border-radius: 3px;
  background: #ff4654;
  color: white;
  margin-top: 1rem;
  padding: 0.8rem;
  cursor: pointer;
}

button:hover {
  filter: brightness(120%);
}

.error-message {
  color: #ff1c59;
  margin-bottom: 1.2rem;
  height: 0.8rem;
  font-size: 0.7rem;
  font-style: italic;
}