/* Estilos Base */
body {
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(rgba(98, 0, 238, 0.5), rgba(11, 203, 94, 0.9)),
    url(../img/bg-hero.png) center center no-repeat;
  background-size: cover;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  z-index: 0;
}

.webp body {
  background: linear-gradient(rgba(98, 0, 238, 0.5), rgba(11, 203, 94, 0.9)),
    url(../img/bg-hero.webp) center center no-repeat;
  z-index: -1;
}

/* Links */
a {
  text-decoration: none;
  color: #060000;
  font-size: 16px;
  font-weight: 500;
}

a:hover {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

/* Centraliza a div de fundo do spinner */
#spinner {
  opacity: 1; /* Estado visível inicial */
  visibility: visible;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100vh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999; /* Certifica-se de que está acima de outros elementos */
}

/* Classe oculta para transição */
#spinner.hidden {
  opacity: 0; /* Estado oculto */
  visibility: hidden;
}

/* Classe oculta para transição */
#spinner.hidden {
  opacity: 0; /* Estado oculto */
  visibility: hidden;
}

/* Centraliza o spinner e define o tamanho */
#spinner img {
  width: 10rem;
  height: 10rem;
}

/* Container SVG */
.svg-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 10%;
  min-height: 10%;
  z-index: 1;
}

/* Ajustes para o SVG */
#animated-svg {
  width: 100%; /* Ocupa 100% da largura do container */
  height: auto; /* Ajusta altura automaticamente */
  fill: url(#gradient_svg); /* Aplica o gradiente corretamente */
}

/* Ajustes para as linhas e elementos dentro do SVG */
.lines-group {
  fill: none;
  stroke-width: 0.5px;
  stroke: url(#gradient_svg); /* Aplica o gradiente às linhas */
}

/* Layout Principal */
.container-fluid.hero-header {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
  z-index: 1;
}

/* Texto Vertical */
.vertical-text {
  writing-mode: vertical-rl; /* Orientação vertical da direita para a esquerda */
  text-orientation: mixed; /* Garante que o texto fique legível verticalmente */
  position: absolute; /* Posiciona o texto independentemente de outros elementos */
  top: 15%; /* Centraliza verticalmente */
  right: 0; /* Alinha à direita da tela */
  transform: translateY(-50%); /* Ajusta para centralização vertical */
  color: #cebdeb; /* Cor personalizada */
  z-index: 2; /* Garante que esteja acima de outros elementos */
  margin: 0 1rem; /* Ajusta o espaçamento em relação à borda */
}

/* Título e Slogan */
.title-and-slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 15px;
  z-index: 2;
}

.slogan {
  border: 2px solid red;
  border-radius: 25px;
  padding: 0.3em 0.6em;
  color: #fe0101;
  background-color: rgba(0, 255, 234, 0.7);
  font-size: 1.2rem;
}

.login-container {
  position: absolute;
  top: calc(50% - 30px);
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 10;
}

.wave-background {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.wave-background svg {
  width: 100%;
  height: 100%;
}

.form-signin {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 1;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.wave-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* Campos de Entrada */
.input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-control {
  width: 100%;
  height: 50px;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1; /* Camada mais baixa para não sobrepor o label */
}

.form-control:focus {
  outline: none;
  border-color: #6200ee;
  box-shadow: 0 0 0 1px #6200ee;
}

.form-control::placeholder {
  color: transparent;
}

.form-control + label {
  position: absolute;
  top: 15px;
  left: 12px;
  font-size: 16px;
  color: #aaa;
  pointer-events: none;
  transition: top 0.3s, font-size 0.3s, color 0.3s, transform 0.3s;
  background: transparent;
  padding: 0 5px;
  z-index: 2;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
  top: -1px;
  font-size: 12px;
  color: #6200ee;
  background: transparent;
  transform: scale(1.1);
}

.form-signin-button {
  min-width: 260px;
  padding: 0.75rem 2rem;
  background: linear-gradient(45deg, #6200ee, #03dac6);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.form-signin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mensagens */
.success-message,
.error-message {
  min-height: 20px;
  width: 100%;
  text-align: center;
  white-space: normal;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  word-break: break-word;
  display: none;
}

.forgot-password {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.forgot-password a {
  color: #0c2553; /* Cor consistente para o link */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #512391; /* Cor de destaque ao passar o mouse */
}

/* Spinner */
.spinner-grow {
  width: 3rem;
  height: 3rem;
}

/* Botão de reset */
.btn {
  white-space: nowrap;
}

/* Responsividade */
@media (max-width: 1024px) {
  .title-and-slogan h1 {
    font-size: 2rem;
    max-width: 90%;
  }
  .slogan {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .form-signin {
    width: 90%;
    padding: 1.5rem;
  }
  .form-signin-button {
    width: 100%;
    min-width: unset;
  }
  .title-and-slogan h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .form-signin {
    width: 95%;
    padding: 1rem;
  }
  .title-and-slogan {
    top: 10%;
  }
  h2 {
    font-size: 1rem;
  }
  p {
    font-size: 0.875rem;
  }
}
