/* Sobrescreve as variáveis do tema escuro nativo para os valores claros */
:root,
.dark,
.theme-dark,
html.theme-dark {
  --accent: #067062 !important;
  --surfacePrimary: #ffffff !important; /* Barra lateral branca */
  --surfaceSecondary: #f5f5f5 !important; /* Fundo principal Whitesmoke */
  --textPrimary: #222222 !important; /* Texto escuro */
  --textSecondary: #555555 !important; /* Texto secundário */
  --background: #f5f5f5 !important;
  --action: #053630 !important; /* Cor azul personalizada */
  --icon-blue: #067062 !important; /* Cor azul personalizada */
  --blue: #067062 !important; /* Cor azul personalizada */
  --dark-blue: #044e44 !important; /* Cor azul personalizada */
}
/* ==========================================
   2. PÁGINA DE LOGIN (MANTIDA ORIGINAL)
   ========================================== */
#login {
  background-image: url("img/bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#login form {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: absolute;
}

#login h1 {
  color: #067062;
  text-shadow: 2px 4px 10px white;
  margin-bottom: 1.5rem;
}

#login input[type="text"],
#login input[type="password"] {
  background-color: #f5f5f5;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease-in-out;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus {
  border-color: #067062;
  box-shadow: 0 0 0 3px rgba(6, 112, 98, 0.2);
  outline: none;
}

#login input[type="submit"] {
  background-color: #067062;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

#login input[type="submit"]:hover {
  background-color: #055449;
}

/* ==========================================
   3. TOAST (AVISO DE ERRO)
   ========================================== */
#login .wrong {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 300px;
  max-width: 90vw;
  border-radius: 0.5rem !important;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    top: -50px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}
