/* --------------------- */
/* Fundo simulado de céu */
/* --------------------- */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to top, #1a1a1a, #000);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  flex-direction: column;
  position: relative;
}

/* ------------------------ */
/* Estrelas estáticas/cadentes */
/* ------------------------ */
.star, .cading-star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.star {
  width: 2px;
  height: 2px;
  animation: twinkle 2s infinite alternate;
  opacity: 0;
  animation-delay: calc(0.5s * var(--i));
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 1; }
}

/* Posição das estrelas */
.star:nth-child(1) { --i: 1; top: 10%; left: 20%; }
.star:nth-child(2) { --i: 2; top: 30%; left: 80%; }
.star:nth-child(3) { --i: 3; top: 50%; left: 40%; }
.star:nth-child(4) { --i: 4; top: 70%; left: 60%; }
.star:nth-child(5) { --i: 5; top: 80%; left: 30%; }
.star:nth-child(6) { --i: 6; top: 60%; left: 10%; }
.star:nth-child(7) { --i: 7; top: 20%; left: 70%; }
.star:nth-child(8) { --i: 8; top: 40%; left: 90%; }

.cading-star {
  top: -50px;
  width: 3px;
  height: 3px;
  animation: falling 3s linear infinite;
  opacity: 0;
}

@keyframes falling {
  0% {
    top: -50px;
    left: calc(100% * var(--x-pos));
    opacity: 1;
  }
  100% {
    top: 100vh;
    left: calc(100% * var(--x-pos));
    opacity: 0;
  }
}

/* Posições e durações diferentes */
.cading-star:nth-child(1)  { --x-pos: 0.2; animation-duration: 3s; }
.cading-star:nth-child(2)  { --x-pos: 0.3; animation-duration: 4s; }
.cading-star:nth-child(3)  { --x-pos: 0.5; animation-duration: 5s; }
.cading-star:nth-child(4)  { --x-pos: 0.7; animation-duration: 6s; }
.cading-star:nth-child(5)  { --x-pos: 0.8; animation-duration: 4s; }
.cading-star:nth-child(6)  { --x-pos: 0.4; animation-duration: 5s; }
.cading-star:nth-child(7)  { --x-pos: 0.9; animation-duration: 6s; }
.cading-star:nth-child(8)  { --x-pos: 0.6; animation-duration: 7s; }
.cading-star:nth-child(9)  { --x-pos: 0.1; animation-duration: 3.5s; }
.cading-star:nth-child(10) { --x-pos: 0.4; animation-duration: 4s; }
.cading-star:nth-child(11) { --x-pos: 0.7; animation-duration: 5.5s; }
.cading-star:nth-child(12) { --x-pos: 0.6; animation-duration: 6.5s; }

/* Efeito fundo fixo */
body::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: transparent;
  z-index: -1;
}

/* ---------------------- */
/* Estilo da Caixa de Login */
/* ---------------------- */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding-bottom: 50px;
}

.login-box {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  width: 300px;
  text-align: center;
  position: relative;
}

/* Logo */
.login-box .logo img {
  width: 70%; /* AUMENTA O LOGO em relação à caixa de login */
  height: auto; /* Garante que a proporção da imagem seja mantida */
  margin-bottom: 20px;
}

/* Títulos e descrição */
h2 {
  color: #00c7e8;
  font-size: 24px;
  margin-bottom: 10px;
}

p {
  color: #ffffff;
  margin-bottom: 20px;
}



/* Inputs */
input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #2d2d2d;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
}

/* Botão principal */
button {
  width: 100%;
  padding: 12px;
  background-color: #fc062f;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin: 10px 0;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #007b8d;
}

/* -------------------------- */
/* Botões Sociais Estilizados */
/* -------------------------- */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 999px; /* pill style */
  width: 100%;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Botão roxo Twitch */
.twitch-btn {
  background-color: #9146ff;
}

.twitch-btn:hover {
  background-color: #7a39c9;
}

/* Ícone igual ao Google */
.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
}


/* Google botão (caso queira usar estilo manual) */
.google-btn {
  background-color: #4285F4;
  border-radius: 25px;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  width: 100%;
  cursor: pointer;
}

.google-btn:hover {
  background-color: #3367d6;
}

.social-icon {
  width: 32px;         /* tamanho razoável */
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}





/* ----------------- */
/* Rodapé do sistema */
/* ----------------- */
.footer {
  position: relative;
  width: 100%;
  color: #000000;
  font-size: 12px;
  text-align: center;
  padding: 10px 0;
  background-color: #000000;
  margin-top: 20px;
}

/* ------------------------ */
/* Áreas e botões do usuário */
/* ------------------------ */
.user-area {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 40px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #334155;
  color: #e0e7ff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.user-icon {
  font-size: 18px;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  padding: 8px 14px;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #334155;
  border-radius: 8px;
}


/* login.css ou modais.css */

/* Botão Trigger para Login Admin */
.admin-login-trigger {
    background: none;
    border: 1px solid #4a5568; /* Borda sutil */
    color: #94a3b8; /* Cor secundária */
    padding: 5px 10px;
    font-size: 12px; /* Pequeno */
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px; /* Espaço abaixo */
    transition: background-color 0.2s, color 0.2s;
}

.admin-login-trigger:hover {
    background-color: #334155;
    color: #e2e8f0;
}

/* Estilos específicos para o Modal de Admin */
.admin-login-modal-content {
    background-color: #1e293b; /* Fundo escuro igual outros modais */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 350px; /* Largura do modal */
    width: 90%;
    position: relative; /* Para o botão fechar */
    color: #e2e8f0; /* Texto claro */
}

.admin-login-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #93c5fd; /* Azul claro para o título */
}

.admin-login-modal-content .form-group {
    margin-bottom: 15px;
}

.admin-login-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #cbd5e1;
}

.admin-login-modal-content input[type="text"],
.admin-login-modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    background-color: #2d3748; /* Fundo do input */
    border: 1px solid #4a5568; /* Borda do input */
    border-radius: 5px;
    color: #e2e8f0; /* Cor do texto no input */
    font-size: 14px;
}

.admin-login-modal-content .btn-confirmar {
    width: 100%;
    padding: 10px;
    background-color: #2563eb; /* Azul */
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.admin-login-modal-content .btn-confirmar:hover {
    background-color: #1d4ed8; /* Azul mais escuro */
}

.admin-login-modal-content .error-message {
    color: #f87171; /* Vermelho claro para erros */
    background-color: rgba(239, 68, 68, 0.1); /* Fundo vermelho leve */
    border: 1px solid #ef4444;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}


/* Estilo para o Overlay do Modal de Admin */
/* Isso força o modal a sair do fluxo e cobrir a tela inteira */
#adminLoginModal {
    position: fixed;   /* Posição fixa sobre toda a tela (viewport) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Fundo escuro semi-transparente para o overlay */
    background-color: rgba(0, 0, 0, 0.6); 
    
    /* O login.js já usa 'display: flex' para mostrar o modal.
       Estas regras garantem que o conteúdo DENTRO dele (a caixa branca) 
       seja centralizado.
    */
    justify-content: center;
    align-items: center;
    
    z-index: 1000; /* Garante que o modal fique acima de todo o resto */
}


/* ==========================================================
   👇 COLE ESTE BLOCO PARA ESTILIZAR O BOTÃO FECHAR (Círculo) 👇
   ==========================================================
*/

/* Estilo do Botão Fechar (Círculo) - COM SELETOR CORRIGIDO */
/* Estilo do Botão Fechar (Círculo) - COM SELETOR CORRIGIDO */
.admin-login-modal-content #closeAdminModalBtn {
    /* Posicionamento */
    position: absolute;
    top: -15px;  /* Joga ele 15px para CIMA da caixa */
    right: -15px; /* Joga ele 15px para DIREITA da caixa */

    /* Formato (Círculo) */
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Isso o torna redondo */
    
    /* Cor */
    background-color: #e11d48; /* Um vermelho vivo */
    color: #ffffff;           /* 'X' branco */
    
    /* Efeito de Sombra/Glow (como na imagem) */
    box-shadow: 0 0 10px rgba(255, 20, 50, 0.7);
    
    /* Centralização do 'X' */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Texto e Borda */
    border: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1; /* Garante que o 'X' não saia do centro */
    
    /* Animação */
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* Efeito HOVER (quando "em costa") */
.admin-login-modal-content #closeAdminModalBtn:hover {
    transform: scale(1.1); /* Aumenta o botão levemente */
    box-shadow: 0 0 15px rgba(255, 20, 50, 1); /* Aumenta o brilho */
}



#adminLoginModal *,
#adminLoginModal *::before,
#adminLoginModal *::after {
    box-sizing: border-box;
}