body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f5f5f5;
}

h1 {
  color: #054284;
  display: flex;
  align-items: center;
  justify-content: center;
}

#login-form {
  background: #fff;
  color: #054284;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  position: relative;
}

label {
  display: block;
  position: relative;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"], input[type="password"], select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Estilo para o campo select */
select {
  background-color: #fff;
  color: #333;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

input[type="checkbox"] {
  margin-right: 5px;
  vertical-align: middle;
}

label[for="remember-me"] {
  margin: 0;
  line-height: 1.2;
  vertical-align: middle;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #003589;
  color: #fff;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0061c9;
}

.error {
  color: red;
  font-size: 0.9em;
  margin-top: 10px;
}

.status-message {
  color: green;
  font-size: 0.9em;
  margin-top: 10px;
}

/* Tela de carregamento */
#loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #160092;
  font-size: 18px;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loader {
  display: flex;
  justify-content: space-between;
  width: 80px;
}

.loader div {
  width: 16px;
  height: 16px;
  background-color: #FF5C35;
  border-radius: 50%;
  animation: grow-shrink 1.5s infinite;
}

.loader div:nth-child(1) {
  background: linear-gradient(135deg, #E9BE42, #c8972e); /* Gradiente amarelo */
  animation-delay: 0s;
}

.loader div:nth-child(2) {
  background: linear-gradient(135deg, #054284, #1e60a8); /* Gradiente azul */
  animation-delay: 0.3s;
}

.loader div:nth-child(3) {
  background: linear-gradient(135deg, #E9BE42, #c8972e); /* Gradiente amarelo */
  animation-delay: 0.6s;
}

@keyframes grow-shrink {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

/* Popup de erro */
#error-popup {
  display: none; /* Começa como oculto */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}


#error-popup button {
  margin-top: 20px;
  padding: 5px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#error-popup button:hover {
  background-color: #0056b3;
}

.popup-container {
  display: none; /* Inicialmente escondido */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fundo semitransparente */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 350px;
  position: relative;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.popup-icon {
  font-size: 40px;
  color: #FF4C4C; /* Ícone de erro vermelho */
  margin-right: 10px;
}

.popup-title {
  font-size: 24px;
  margin: 0;
  color: #333;
}

.popup-content p {
  color: #555;
  font-size: 16px;
}

.popup-close {
  margin-top: 20px;
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.popup-close:hover {
  background-color: #073b74;
}

element {
  white-space: pre-line;
}


.nav-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* Garantir que ocupe a altura total do contêiner */
}

.nav-logo {
  height: 45px; /* Ajuste a altura conforme necessário */
  width: auto; /* Mantém a proporção da imagem */
}

/* Ajuste para o ícone do olho */
label img {
  position: absolute;
  right: 10px;
  top: 48%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 15px;   /* Largura ajustada */
  height: 15px;  /* Altura ajustada */
}

input[type="password"] {
  width: 100%;
  padding-right: 40px; /* Espaço para o ícone do olho */
}

.help-button {
  position: absolute;
  top: -10px;
  right: 0px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.btn-help {
  font-size: 18px;
  color: #1800b8;
  font-style: normal;
  background: none;
  border: none;
  cursor: pointer;
}


/* Desabilitar efeitos ao passar o mouse */
.btn-help:hover {
    color: #555; /* Mantém a mesma cor */
    background: none; /* Nenhuma alteração no background */
}

/* Estilos para o modal */
.modal {
  display: none; /* Oculto por padrão */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Fundo escurecido */

}

.modal-header {
  position: relative; /* Permite o posicionamento do botão de fechar dentro da div */
  text-align: center;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 10px;
  border: 1px solid #888;
  width: 20%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center; /* Centraliza o texto */
}

.close {
  color: #160092;
  float: right;
  font-size: 23px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

h2 {
  margin: 0; /* Remove margens extras */
  margin-left: 15px;
  padding: 0; /* Remove padding */
  text-align: center; /* Centraliza o título */
  font-size: 24px; /* Tamanho ajustável */
  line-height: 1.4; /* Altura da linha para evitar sobreposição */
}

hr {
  border: 0;
  height: 1px;
  background-color: #ddd; /* Cor da linha */
  width: 100%; /* Largura da linha */
  margin-top: 10px;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 600px) {
  .modal-content {
    width: 80%; /* Aumenta a largura do modal em telas menores */
  }
  
  .close {
    font-size: 18px; /* Ajusta o tamanho do botão de fechar */
  }
  
  h2 {
    font-size: 20px; /* Ajusta o tamanho da fonte para dispositivos móveis */
  }
}