@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
}

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

:root {
  font-size: 16px;

  /* Colors */
  --clr-white: #ffffff;
  --clr-primary: #fb7f50;
  --clr-primary-2: hsl(14, 100%, 60%);
  --clr-bg: #236747;
  --clr-light-gray: rgb(128, 128, 128);
  --clr-border: rgb(198, 198, 198);
  --clr-dark-text: rgb(84, 84, 84);

  /* Fonts */
  --ff-heading: "Poppins", sans-serif;
  --ff-body: "Roboto", sans-serif;
  --ff-alt: "Montserrat", sans-serif;
}

body {
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
  background-color: var(--clr-bg);
  font-family: var(--ff-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

form {
  background-color: var(--clr-white);
  display: flex;
  flex-direction: column;
  width: 380px;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

h1,
h3 {
  font-family: var(--ff-heading);
  font-weight: normal;
  text-align: center;
  margin-top: 0.75rem;
}

p,
input,
label {
  font-family: var(--ff-body);
}

label {
  color: var(--clr-light-gray);
  font-size: 0.625rem;
  margin: 0.9375rem 0 0 1.25rem;
}

input {
  color: dark;
  margin: 0.3125rem 1.25rem 0 1.25rem;
  padding: 0.625rem;
  border: 1px solid var(--clr-border);
  border-radius: 0.3125rem;
  font-size: 1rem;
}

input::placeholder {
  color: var(--clr-border);
}

button {
  background-color: var(--clr-primary);
  border-color: var(--clr-white);
  color: var(--clr-white);
  border-style: solid;
  padding: 0.625rem;
  margin: 1.25rem 2.5rem;
  border-radius: 0.625rem;
  font-size: 1rem;
}

button:hover {
  background-color: var(--clr-primary-2);
  cursor: pointer;
}

.footerForm {
  color: var(--clr-dark-text);
  text-align: center;
  margin: 0 1.25rem;
  font-size: 0.875rem;
}

a {
  color: var(--clr-primary);
  font-size: 0.875rem;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#footer {
  margin-top: 1.25rem;
  color: var(--clr-white);
  font-size: 1rem;
}

#footerLink {
  color: var(--clr-primary);
  font-size: 1rem;
}

.error {
  color: var(--clr-primary);
  font-size: 0.875rem;
  margin: 0.3125rem 0 0 1.25rem;
}

.message {
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  margin: 0.1rem 1.25rem;
}

.message.success {
  background-color: var(--clr-white);
  border: 1px solid var(--clr-bg);
  color: var(--clr-bg);
}

.message.error {
  background-color: var(--clr-white);
  border: 1px solid var(--clr-primary);
  color: var(--clr-primary);
}
