/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Corpo da página */
body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  background-attachment: fixed;
  color: #fff;
}

/* Cabeçalho */
header {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);

  font-family: Arial, sans-serif;
  text-decoration: none;
}

h1 {
  font-size: 2em;
  font-weight: bold;
}

/* Rodapé */
footer {
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

/* Container Central */
.container {
  width: 350px;
  display: block;
  position: absolute;
  top: 25%;
  left: 50%;
  translate: -50%;
  margin: auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Botões de Aba */
.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab-button.active {
  border-bottom: 3px solid #4ca1af;
}

/* Formulários */
.formulario {
  display: none;
}

.formulario.ativo {
  display: block;
}

h2 {
  margin-bottom: 15px;
}

input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  color: rgb(82, 86, 90);
}

button,
label {
  width: 100%;
  padding: 10px;
  background: #4ca1af;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #367a8d;
}

label:hover {
  background: #367a8d;
}

.link {
  margin-top: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #ddd;
}

/* Estilhos para o overlay de carrregamento de dados */

/* Estilização do Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px); /* Efeito de desfoque */
  background-color: rgba(0, 0, 0, 0.4); /* Fundo semi-transparente */
  display: none; /* Inicialmente oculto */
  justify-content: center;
  align-items: center;
  z-index: 1004;
}

/* Loader Giratório */
.loader {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
