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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  background: black;
  color: white;
}

body, html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* For Chrome, Safari, Opera, and newer Edge versions */
body::-webkit-scrollbar, html::-webkit-scrollbar {
  display: none;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.logo_folhas {
  position: absolute;
  right: 30px;
  top: 30px;
  width: 200px;
  height: auto;
  filter: hue-rotate(75deg) saturate(5) url(#water-distortion);
  will-change: filter;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 5;
}

.hero__content {
  position: relative;
  z-index: 10;
  padding-left: 5vw;
  margin-top: -5vw;
}

.hero__title {
  font-size: clamp(8rem, 20vw, 30rem);
  font-weight: 900;
  color: #fff0b3;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-shadow: 10px 10px 20px rgba(0,0,0,0.3);
  filter: url(#water-distortion);
  will-change: filter;
}

.hero_subtitle {
  font-size: clamp(2rem, 4vw, 7rem);
  font-weight: 900;
  color: #b3ffb3;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  filter: url(#water-distortion);
  will-change: filter;
}

.texto, form, input, label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  color: rgb(0, 66, 0);
  font-size: clamp(1rem, 1.5vw, 3rem);
  width: 100%;
  text-align: left !important;
  line-height: 1.2;
  letter-spacing: 0;
}

#svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at top, #4743cf, #32AA65);;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-container {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #7c35ff, #1edef7, #02ffab);
  border-radius: 2px;
  transition: width 0.1s ease-out;
}

.progress-percentage {
  font-size: 2rem;
  font-weight: 600;
  color: #fff0b3;
  margin-bottom: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.loading-text {
  font-size: 1rem;
  color: rgba(255, 240, 179, 0.7);
  font-weight: 300;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 768px) {
  .hero__content {
    padding-left: 6vw;
  }

  .hero__title {
    font-size: 100px;
  }

  .hero__subtitle {
    font-size: 25px;
  }

  .texto {
    font-size: 22px;
  }

  .logo_folhas {
    width: 40vw;
  }

  .progress-container {
    width: 250px;
  }

  .progress-percentage {
    font-size: 1.5rem;
  }

  .loading-text {
    font-size: 0.9rem;
    padding: 0 20px;
  }
}

.scroll-arrow {
  position: absolute;
  bottom: 50px; /* Position it at the bottom of its container */
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-left: 4px solid #fff; /* The left line of the arrow */
  border-bottom: 4px solid #fff; /* The bottom line of the arrow */
  transform: rotate(-45deg); /* Rotate to make it point down */
  animation: bounce 2s infinite; /* Apply the animation */
  cursor: pointer;
  z-index: 99;
}

/* Keyframes for the bouncing animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0) rotate(-45deg); /* Start and end position (adjust transform-origin if needed) */
  }
  40% {
    transform: translate(-50%, -20px) rotate(-45deg); /* Move up */
  }
  60% {
    transform: translate(-50%, -10px) rotate(-45deg); /* Move down slightly */
  }
}

.principal {
  width: 100vw;
  height: auto;
  padding-top: 5vh;
}

.principal .container {
  display: block;
  background: rgba(255, 254, 192, 0.5);
  text-align: center;
  width: 1400px;
  max-width: 95vw;
  height: auto;
  padding: 30px 50px;
  margin: 0 auto;
  border-radius: 20px;
  margin-bottom: 7vh;
  box-shadow: 10px 30px 20px rgba(0, 0, 0, 0.3);
}

.destaque {
  color: rgb(20, 100, 20);
  font-weight: 900;
}

a {
  color: rgb(247, 247, 0);
  font-weight: bold;
  text-decoration: none;
}

.logo_pmp {
  display: block;
  margin: 10px auto 20px;
  width: 100px;
  height: auto;
}

.login {
  display: flex;
  align-items: center;  
  width: 100vw;
  height: 100vh;
}

.form-signin {
    width: 400px;
    max-width: 90%;
    padding: 15px;
  }
  
  .form-signin .form-floating:focus-within {
    z-index: 2;
  }
  
  .form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
  
  .form-signin button[type="submit"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }