@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
  --white: #fff;
  --black: #000;

  --orange-main: #ff8a00;
  --orange-hover-bright: #ffbb6e;
  --orange-hover-dark: #834600;

  --blue-main: #0500ff;
  --blue-hover-bright: #5c59ff;
  --blue-hover-dark: #0300a0;

  --green-main: #05ff00;
  --green-hover-bright: #65ff62;
  --green-hover-dark: #03a500;

  --gray-main: #d9d9d9;
  --gray-hover-dark: #8a8a8a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--white);
  height: 100vh;
  width: 100vw;
}

/* Media query para celulares */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5vh;
}

header #logo {
  max-width: 100vw;
}

.LoginForm form {
  background-color: var(--blue-main);
  width: 320px;
  height: 500px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px rgb(0, 0, 0, 0.25);
}

.LoginForm .LoginTitle {
  color: var(--white);
  text-align: center;
  font-size: 40px;
  margin: 0 auto 33px;
}

.LoginForm label {
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
  line-height: normal;
}

.LoginForm .UserContainer,
.PasswordContainer {
  margin: 0 auto;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.PasswordContainer {
  margin-top: 25px;
}

.LoginForm input {
  height: 36px;
  padding: 10px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  border: 0;

  font-size: 15px;
}

.LoginForm .ForgotPasswordContainer {
  margin-top: 18px;
  text-align: end;
}

.LoginForm .ForgotPasswordContainer a {
  color: var(--white);
  font-size: 15px;
  font-weight: 300;
  text-decoration-line: underline;
}

.EnterButton {
  display: block;
  width: 161px;
  height: 48px;
  margin: 38px auto;
  border-radius: 6px;
  background: var(--orange-main);
  border: 0;
  cursor: pointer;

  color: var(--white);
  font-size: 25px;
  font-weight: 700;
}

.ContainerLinkToRegistrationPage {
  color: var(--white);
  font-size: 15px;
  font-weight: 300;
  text-align: center;
}

.ContainerLinkToRegistrationPage a {
  color: var(--white);
  font-weight: 300;
  text-decoration-line: underline;
}

/* Media query para tablets */
@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
  }

  header #logo {
    width: 400px;
  }
}

/* Media query para desktops */
@media screen and (min-width: 1024px) {
  body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
  }

  header #logo {
    width: 600px;
  }

  .LoginForm form {
    width: 380px;
    height: 550px;
  }

  .LoginForm .LoginTitle {
    font-size: 42px;
    margin: 0 auto 40px;
  }

  .LoginForm label {
    color: var(--white);
    font-size: 25px;
    font-weight: 500;
    line-height: normal;
  }

  .LoginForm .UserContainer,
  .PasswordContainer {
    margin: 0 auto;
    width: 100%;
    gap: 18px;
  }

  .PasswordContainer {
    margin-top: 30px;
  }

  .LoginForm input {
    height: 40px;
  }

  .EnterButton {
    margin: 45px auto;
  }

  .loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  @keyframes spin {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  .fade-out {
    animation: fadeOut 0.5s ease forwards;
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
}
