@import url("https://fonts.googleapis.com/css2?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&display=swap");
@import url("../fonts/MingCute.css");
* {
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  border: none;
  line-height: 1;
}
body {
  background: #21262b;
  color: #fff;
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px 0;
}
p {
  text-wrap: balance;
  line-height: 1.2;
}
section {
  width: 100%;
  max-width: 800px;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  flex-direction: column;
  gap: 100px;
}
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 50px;
  .logo {
    width: 300px;
  }
}

#resposta {
  position: fixed;
  top: 10px;
  left: 50%;
  width: 100%;
  max-width: 700px;
  transform: translateX(-50%);
  padding: 20px 40px;
  border-radius: 10px;
  display: none;
  text-align: center;
  &.sucesso {
    background: #defae8;
    border: 1px solid #2f784b;
    color: #2f784b;
    box-shadow: 0 10px 50px #45be7350;
    animation: fadeInDown 0.5s ease forwards;
  }
  &.info {
    background: #d9ebfc;
    border: 1px solid #3d63bd;
    color: #3d63bd;
    box-shadow: 0 10px 50px #4876e250;
    animation: fadeInDown 0.5s ease forwards;
  }
  &.erro {
    background: #fce2e7;
    border: 1px solid #b23835;
    color: #b23835;
    box-shadow: 0 10px 50px #b2383550;
    animation: fadeInDown 0.5s ease forwards;
  }
}

form,
label,
input {
  width: 100%;
  display: block;
  position: relative;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  margin-bottom: 15px;
}
input,
button[type="submit"] {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  margin-top: 5px;
}
.listaPrevisao,
#mensagem-senha,
button[type="submit"] {
  grid-column: span 2;
}
.buscaLabel{
  display: flex;
  align-items: center;
  gap: 10px;
  span{
    font-size: .8rem;
  }
}

#requisitos-senha {
  margin-top: 10px;
  p {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
  }
  #lista-requisitos {
    list-style: none;

    li {
      width: 100%;
      font-size: 12px;
      font-weight: 400;
      color: #ffffff30;
      transition: all 0.3s ease;
    }
    .requisito-valido {
      color: #89c140 !important;
      text-decoration: line-through;
    }

    .requisito-invalido {
      color: #757575 !important;
      text-decoration: none;
    }
  }
}

.confirmarSenha {
  position: relative;
  #mensagem-senha {
    margin-top: 7px;
    font-size: 10px;
    color: #ff4945;
    padding: 5px;
    width: 100%;
    border-radius: 3px;
    text-transform: uppercase;
    display: none;
  }
}
.toggle-password {
  position: absolute;
  top: 34px;
  right: 10px;
  background: none;
  font-size: 21px;
  color: #505c69;
  cursor: pointer;
  &:hover,
  &:focus {
    outline: none !important;
    color: #89c140;
  }
}

button[type="submit"] {
  background: #89c140;
  color: #fff;
  border: none;
  text-transform: uppercase;
  font-weight: 700;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: 0.3s all ease;
  outline: none !important;
  &:hover {
    background: #72a332;
  }
  &:disabled {
    background: #505c69;
    opacity: 0.6;
    cursor: not-allowed;
  }
}

.cf-turnstile {
  grid-column: span 2;
}

#search {
  margin-bottom: 15px;
}
.btnSearch {
  position: absolute;
  top: 26px;
  right: 6px;
  border-radius: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  font-size: 1.2rem;
  color: #fff;
  background: #72a332;
  cursor: pointer;
}

.selected-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
}

.selected-item {
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
  color: white;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remove-btn {
  background: transparent;
  border: none;
  color: #ff6363;
  cursor: pointer;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-size: 1rem;
  &:hover,
  &:focus {
    outline: 2px solid #ff636380;
  }
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(33 38 43 / 90%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #1d2126;
  padding: 50px;
  border-radius: 10px;
  color: #fff;
  width: 90%;
  max-width: 500px;
  h3 {
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
  }
  h4 {
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
  }
}

.modal-results {
  max-height: 300px;
  overflow-y: auto;
  margin: 15px 0;
  padding: 10px;
}

.modal-item {
  background: #21262b;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
}

.modal-item.selected {
  background: #89c140;
  outline: 0px solid transparent !important;
}

.modal-item:hover,
.modal-item:focus {
  outline: 2px solid #89c14080;
}

#close-modal {
  padding: 20px 20px;
  font-size: 14px;
  width: calc(100% - 20px);
  margin: 0 auto;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: #2f353c;
  display: flex;
  align-items: center;
  justify-content: center;
}

input:hover,
button:hover,
input:focus,
button:focus {
  outline: 3px solid #89c14080;
}

#loading {
  background: #21262b;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s all ease;
  opacity: 0;
  pointer-events: none;
  &.active {
    opacity: 1;
    pointer-events: inherit;
  }
}
.loader {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
}
.loader:before,
.loader:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}
.loader:after {
  color: #89c140;
  transform: rotateY(70deg);
  animation-delay: 0.4s;
}

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

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

@keyframes spin {
  0%,
  100% {
    box-shadow: 0.2em 0px 0 0px currentcolor;
  }
  12% {
    box-shadow: 0.2em 0.2em 0 0 currentcolor;
  }
  25% {
    box-shadow: 0 0.2em 0 0px currentcolor;
  }
  37% {
    box-shadow: -0.2em 0.2em 0 0 currentcolor;
  }
  50% {
    box-shadow: -0.2em 0 0 0 currentcolor;
  }
  62% {
    box-shadow: -0.2em -0.2em 0 0 currentcolor;
  }
  75% {
    box-shadow: 0px -0.2em 0 0 currentcolor;
  }
  87% {
    box-shadow: 0.2em -0.2em 0 0 currentcolor;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    margin-top: -100px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    margin-top: 0;
  }
  to {
    opacity: 0;
    margin-top: -100px;
  }
}

.fadeOut {
  animation: fadeOutUp 0.5s ease forwards !important;
}

@media (width <= 800px) {
  body {
    display: block;
  }
  body,
  section {
    align-items: inherit;
    justify-content: inherit;
  }
  section {
    gap: 50px;
    padding: 20px;
    .logo {
      max-width: 200px;
    }
  }
  label,
  .form-group {
    grid-column: span 2;
  }
  button[type="submit"] {
    margin-bottom: 50px;
  }

  #resposta {
    max-width: 90%;
  }
}

@media (min-height: 100dvh) {
  body {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 50px;
  }
  section {
    justify-content: flex-start;
    height: auto;
  }
}

.clear {
  clear: both;
}
