@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

d-none {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: montserrat;
}

body {
  margin: 0;
  height: auto;
  width: auto;
  overflow-y: hidden;
  overflow-x: hidden;
  position: relative;
  z-index: -10;
  background: linear-gradient(135deg, #123651, #0d5496, #346597, #3976b2);
}

.avisoChar {
  color: rgb(180, 12, 12);
  width: 100%;
  text-align: center;
  font-weight: 400;
  font-size: 15px;
  display: none;
}

.avisoLog {
  color: rgb(180, 12, 12);
  width: 100%;
  text-align: center;
  font-weight: 400;
  font-size: 15px;
  display: none;
}

#blocks {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: -10;
}

#login-container {
  box-shadow: 3px 3px 5px #123752;
  width: 50%;
  height: 70%;
  z-index: -1;
  display: grid;
  max-width: 800px;
  min-width: 600px;
  max-height: 800px;
  min-height: 600px;
  position: absolute;
  border-radius: 50px;
  grid-template-rows: auto;
  background-color: #f9f9f9;
  grid-template-columns: 50% 50%;

  #backgroundLogin {
    display: none;
  }

  #welcome {
    width: 90%;
    height: 95%;
    min-height: 95%;
    font-size: 30px;
    justify-self: center;
    align-self: center;
    border-radius: 40px;
    background-color: #18476b;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    padding: 40% 10%;

    img {
      top: 80px;
      left: 50px;
      z-index: 0;
      width: 350px;
      opacity: 0.35;
      position: absolute;
      mix-blend-mode: difference;
    }

    p {
      color: white;
      position: relative;
      z-index: 1;
      font-size: 20px;
      font-weight: 300;
    }
  }

  #login {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 40px 0px 0px 0px;

    .infos {
      width: 80%;
      padding: 15px;
      font-size: auto;
      margin: 10px 0px;
      border-radius: 15px;
      border: 1px solid #18476b;

      &::placeholder {
        color: #18476b;
      }

      &:focus {
        outline: 1px solid #18476b;
      }
    }

    #password-container {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 100%;

      #password-icon {
        right: 50px;
        top: -5px;
        width: 25px;
        position: absolute;
        cursor: pointer;

        img {
          width: 100%;
        }
      }
    }

    #entrar {
      border: none;
      width: 50%;
      height: auto;
      color: white;
      padding: 18px 0px;
      border-radius: 15px;
      background-color: #18476b;
      margin: 20px 0px 5px 0px;
      cursor: pointer;
      transition: 0.3s ease;

      &:hover {
        transform: scale(1.1);
      }
    }

    #ajuda {
      color: #18476b;
      font-weight: 300;
      font-size: 13px;
      margin: 15px 0px 0px 0px;

      a {
        color: #18476b;
        font-weight: 600;
        text-decoration: none;
      }
    }

    #esqueceu {
      color: #18476b;
      font-weight: 300;
      font-size: 13px;
      text-decoration: none;
    }

    #pp {
      display: flex;
      transition: 0.25s;
      width: 100%;
      gap: 10px;
      align-items: center;
      position: absolute;
      bottom: 0;
      font-weight: 300;
      justify-content: center;
      font-size: 14px;

      img {
        width: 15px;
      }
    }

    img {
      margin: 30px 0px;
      width: 30%;
    }

    form {
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    #conectado {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: #18476b;

      input {
        transform: scale(1.2);
        border: 1px solid #18476b;
      }

      input:checked {
        background: #18476b;
      }
    }
  }
}

#background {
  height: 100vh;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  .ball {
    position: fixed;
    width: 40vh;
    height: 40vh;
    border-radius: 100%;
    padding: 0;
    box-shadow: 0px 0px 120px 50px rgba(0, 0, 0, 0.2);
    background: linear-gradient(
      #ea7a4e 1%,
      #c36b69 2%,
      #9c5b83 5%,
      #754c9e 12%,
      #4646af,
      #0d20ae,
      #121d76
    );
    opacity: 0.5;
    z-index: 0;

    &.x1 {
      offset-path: path("M12,0 A12,12 0 0,0 12,24 A12,12 0 0,0 12,0");
      offset-rotate: 0deg;
      animation: mover 6s linear infinite;
    }

    &.x2 {
      offset-path: path("M-12,0 A-12,-12 0 1,1 -12,-24 A-12,-12 0 1,1 -12,0");
      offset-rotate: 0deg;
      animation: mover 3s linear infinite;
    }

    &.x3 {
      offset-path: path("M12,0 A12,12 0 1,1 12,24 A12,12 0 1,1 12,0");
      offset-rotate: 0deg;
      animation: mover 3s linear infinite;
    }

    &.x4 {
      offset-path: path("M-12,0 A-12,-12 0 1,1 -12,-24 A-12,-12 0 1,1 -12,0");
      offset-rotate: 0deg;
      animation: mover 7s linear infinite;
    }

    &.x5 {
      offset-path: path("M12,0 A12,12 0 0,0 12,24 A12,12 0 0,0 12,0");
      offset-rotate: 0deg;
      animation: mover 3s linear infinite;
    }

    &.x6 {
      offset-path: path("M-12,0 A-12,-12 0 1,1 -12,-24 A-12,-12 0 1,1 -12,0");
      offset-rotate: 0deg;
      animation: mover 5s linear infinite;
    }

    &.x7 {
      offset-path: path("M12,0 A12,12 0 0,0 12,24 A12,12 0 0,0 12,0");
      offset-rotate: 0deg;
      animation: mover 6s linear infinite;
    }

    &.x8 {
      offset-path: path("M-12,0 A-12,-12 0 1,1 -12,-24 A-12,-12 0 1,1 -12,0");
      offset-rotate: 0deg;
      animation: mover 3s linear infinite;
    }

    &.x9 {
      offset-path: path("M12,0 A12,12 0 0,0 12,24 A12,12 0 0,0 12,0");
      offset-rotate: 0deg;
      animation: mover 7s linear infinite;
    }
  }
}

@keyframes mover {
  0% {
    offset-distance: 0%;
  }

  50% {
    offset-distance: 50%;
  }

  100% {
    offset-distance: 100%;
  }
}

/** LOGIN RESPONSIVIDADE **/
@media only screen and (max-width: 600px) {
  #login-container {
    width: 85%;
    min-width: 320px;
    height: 90vh;
    min-height: 90vh;
    min-height: fit-content;
    max-width: 500px;
    grid-template-columns: 100%;
    overscroll-behavior-y: contain;

    img#backgroundLogin {
      top: 90px;
      left: 80px;
      width: 100%;
      opacity: 0.1;
      position: absolute;
      z-index: -1;
    }

    #backgroundLogin {
      position: absolute;
      height: fit-content;
      width: fit-content;
      display: block;
      top: 40px;
      left: 40px;

      p {
        font-size: 20px;
        color: #18476b;
        font-weight: 500;
      }
    }

    #welcome {
      display: none;
    }

    #login {
      padding: 100px 0px 0px 0px;

      .infos {
        border-radius: 10px;
      }
    }
  }
}
