form {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

form .window {
  margin-bottom: auto;
  gap: 0.5rem;
  & label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
  }
  & input {
    font-size: 1rem;
    padding-inline: 0.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--clr-neutral-700);
    &:not(:placeholder-shown):focus:invalid {
      outline: none;
    }
    &:not(:placeholder-shown):invalid {
      outline: 1px solid red;
    }
  }
}

.loading {
  margin-top: auto;
  margin-bottom: auto;
  display: none;
  color: white;
}

.loading {
  display: none;
  flex-direction: column;
  align-items: center;
  color: white;
  gap: 1rem;
  .loading__image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
  }
  img {
    animation: loading ease-in-out 1s infinite;
  }
  strong {
    font-size: 1rem;
  }
}

@keyframes loading {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.1;
  }
}
