/* ================================================================= */
/* ============================== BASE ============================= */
/* ================================================================= */
:root {
  /* Tema escuro */
  --bg-dark:      #0b0f14;
  --card-dark:    #131a24;
  --text-dark:    #f5f5f5;
  --muted-dark:   #aaaaaa;
  --accent-dark:  #4177A6;
  --border-dark:  #1e2a3a;

  /* Tema claro */
  --bg-light:     #f2f2f2;
  --card-light:   #ffffff;
  --text-light:   #1c1c1c;
  --muted-light:  #555;
  --accent-light: #034C8C;
  --border-light: #d3d3d3;

  /* Cores de status */
  --grave-color:  #F23558;
  --medio-color:  #A63C6D;
  --normal-color: #4177A6;

  /* Estilo geral */
  --radius: 14px;
  --transition: 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* Fallbacks */
  --cor-fundo-card: var(--card-dark);
  --cor-texto:      var(--text-dark);
  --cor-acento:     var(--accent-dark);
  --cor-borda:      var(--border-dark);
  --cor-fundo:      var(--bg-dark);
}
/* ================================================================= */





/* BODY BASE */
body {
  font-family: 'Nunito Sans', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
}

/* BOTÃO TEMA */
#botao-tema {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: 1px solid var(--border-dark);
  background-color: var(--card-dark);
  color: var(--text-dark);
  font-size: 1.2rem;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  z-index: 20;
}

body.light-mode #botao-tema {
  border-color: var(--border-light);
  background-color: var(--card-light);
  color: var(--text-light);
}

#botao-tema:hover {
  background-color: var(--accent-dark);
  color: #fff;
}

/* CONTAINER LOGIN */
.container {
  background-color: var(--card-light);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 380px;
  text-align: center;
  transition: background 0.3s;
}

body.dark-mode .container {
  background-color: var(--card-dark);
}

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

/* LABEL + INPUTS */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

select, input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--accent-dark);
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 1rem;
  box-sizing: border-box;
  background: transparent;
}

.acessos {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.btn-mostrar-senha,
.link-acesso {
  text-decoration: none;
  background: none;
  border: none;
  color: var(--accent-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.btn-mostrar-senha:hover,
.link-acesso:hover {
  text-decoration: underline;
}

/* BOTÃO LOGIN */
.btn-login {
  width: 100%;
  padding: 13px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background-color: #003766;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background-color: var(--accent-dark);
}

/* ERROS */
.erro {
  color: #F23558;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* RESPONSIVIDADE */
@media (max-width: 480px) {
  .container {
    padding: 28px 20px;
    max-width: 95%;
  }

  select,
  input[type="password"],
  input[type="text"] {
    font-size: 0.95rem;
    padding: 11px;
  }

  .btn-login {
    padding: 12px;
  }

  #botao-tema {
    bottom: 15px;
    right: 15px;
    padding: 10px;
    font-size: 1rem;
  }
}