/* --- ESTRUTURA PRINCIPAL E FUNDO --- */
body, html {
  margin: 0;
  font-family: Arial, sans-serif;
  
  /* 1. Define a altura para ser exatamente o tamanho da tela */
  height: 100svh; 
  
  /* 2. Esconde qualquer conteúdo que passe do limite e DESATIVA a rolagem */
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e0f7fa 0%, #b2ebf2 100%);
}

/* --- ÍCONE DO TROFÉU INDEPENDENTE --- */
.trophy-icon {
  position: absolute;
  top: clamp(15px, 3vh, 25px);
  right: clamp(15px, 3vw, 30px);
  height: 40px;
  width: auto;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease-in-out;
}
.trophy-icon:hover { transform: scale(1.1); }


/* --- FORMULÁRIO (AGE COMO CONTAINER PRINCIPAL) --- */
.login-form {
  flex: 1; 
  display: flex;
  flex-direction: column;
  /* ALTERAÇÃO PRINCIPAL: Centraliza todo o conteúdo verticalmente */
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
  width: 100%;
}

/* --- CONTAINER DAS LOGOS CENTRALIZADAS --- */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__logo {
  height: 45px;
  width: auto;
  /* Espaço entre a logo e a gota */
  margin-bottom: clamp(10px, 2vh, 20px);
}

.logo__meio {
  width: auto;
  max-height: clamp(100px, 20vh, 180px);
}

/* --- CONTAINER DOS CAMPOS DO FORMULÁRIO --- */
.fields-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 350px;
  /* Espaço entre a logo central e o início do formulário */
  margin-top: clamp(20px, 4vh, 40px);
}

.fields-container h1 {
  color: #00796b;
  font-size: clamp(1.2rem, 2.4vh, 1.5rem);
  margin: 0;
  margin-bottom: clamp(15px, 3vh, 25px);
}

/* --- ESTILO DOS INPUTS E BOTÃO --- */
.login__input {
  border: 2px solid #b0bec5;
  border-radius: 8px;
  color: #37474f;
  font-size: clamp(0.9rem, 1.5vh, 1rem);
  margin-bottom: clamp(8px, 1.5vh, 12px);
  width: 100%;
  padding: clamp(10px, 1.8vh, 14px);
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.login__input:focus {
  border-color: #008a9c;
}

.login__button {
  background-color: #008a9c;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  padding: clamp(11px, 1.8vh, 14px);
  font-size: clamp(0.95rem, 1.8vh, 1rem);
  transition: background-color 0.3s;
}

.login__button:hover:not(:disabled) { background-color: #006064; }
.login__button:disabled { background-color: #cfd8dc; border: none; color: #90a4ae; cursor: auto; }

/* --- RODAPÉ --- */
footer {
  padding: clamp(5px, 1vh, 8px);
  background-color: rgba(0, 96, 100, 0.8);
  text-align: center;
  color: #eceff1;
  font-size: clamp(0.65rem, 1vh, 0.75rem);
  width: 100%;
  box-sizing: border-box;
}
/* NOVO: Estilo para o link do rodapé */
footer a {
  color: inherit; /* Herda a cor do texto original do footer */
  text-decoration: none; /* Remove o sublinhado padrão do link */
  display: block; /* Garante que a área de clique ocupe todo o rodapé */
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8; /* Adiciona um leve efeito ao passar o mouse */
  cursor: pointer;
}
/* ======================================================= */
/* ✨ O RESTANTE DO CSS (Modal, Select, etc.) PODE SER MANTIDO ✨ */
/* ======================================================= */
select.login__input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300796B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 0.8em;
  padding-right: 40px;
}
select.login__input option { font-size: 0.9rem; }
.ranking__level__select { width: auto; margin-left: auto; margin-right: auto; }
.input-container { position: relative; width: 100%; max-width: 350px; }
.suggestions-container { position: absolute; top: 100%; left: 0; right: 0; background-color: white; border: 2px solid #b0bec5; border-top: none; border-radius: 0 0 8px 8px; z-index: 10; max-height: 180px; overflow-y: auto; }
.suggestions-container.hidden { display: none; }
.suggestion-item { padding: 12px 15px; cursor: pointer; font-size: 0.9rem; color: #37474f; }
.suggestion-item:hover { background-color: #f0f0f0; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0.3s; z-index: 1000; }
.modal-overlay.hidden { opacity: 0; visibility: hidden; }
.modal-content { background-color: white; width: 90%; max-width: 500px; padding: 20px; border-radius: 12px; position: relative; box-sizing: border-box; box-shadow: 0 5px 20px rgba(0,0,0,0.15); color: #333; font-size: 0.95rem; line-height: 1.6; }
.modal-content h2 { color: #1a1a1a; font-size: 1.4rem; text-align: center; margin-top: 0; margin-bottom: 1rem; }
.close-button { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2.5rem; color: #888; cursor: pointer; }
.ranking-list { list-style-type: none; padding-left: 0; text-align: left; max-height: 250px; overflow-y: auto; }
.ranking-list li { color: #333; margin-bottom: 10px; font-size: 0.9em; display: flex; justify-content: space-between; padding-bottom: 5px; border-bottom: 1px solid #ccc; }
@media (min-width: 600px) { .modal-content { padding: 30px; font-size: 1rem; } .modal-content h2 { font-size: 1.6rem; } 
/* NOVO: Estilo para o link do rodapé */
footer a {
  color: inherit; /* Herda a cor do texto original do footer */
  text-decoration: none; /* Remove o sublinhado padrão do link */
  display: block; /* Garante que a área de clique ocupe todo o rodapé */
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8; /* Adiciona um leve efeito ao passar o mouse */
  cursor: pointer;
}
}