/*
  Tema global
  Cores padrão do projeto: primária e secundária
*/
:root {
  --primary-color: #193993; /* azul */
  --secondary-color: #ffaf00; /* amarelo */
  --surface-color: #ffffff;
  --text-color: #0f172a;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* Utilitários de tema para uso nas páginas (inclusive com Tailwind) */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.link-primary { color: var(--primary-color) !important; }
.link-primary:hover { color: #0f2e99 !important; }
.badge-primary {
  background-color: rgba(25, 57, 147, 0.10) !important;
  color: var(--primary-color) !important;
}

.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
}

.navbar a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.dashboard-container {
    padding: 20px;
}

.stats-cards {
    display: flex;
    gap: 20px;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    flex: 1;
}

/* ===== Página de Login - visual moderno ===== */
body.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 60% at -10% -10%, rgba(25, 57, 147, 0.18) 0%, rgba(25, 57, 147, 0) 60%),
    radial-gradient(50% 50% at 110% 110%, rgba(255, 175, 0, 0.16) 0%, rgba(255, 175, 0, 0) 60%),
    var(--primary-color);
  overflow: hidden;
}

/* Imagem de fundo com 15% de opacidade */
body.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Usa CSS var com URL absoluta setada inline; fallback relativo caso não exista */
  background-image: url(var(--login-bg-url)), url('../assets/img/bg-login.jpg'), url('../assets/img/bg-login.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.22; /* padrão; ajuste se quiser mais forte ou mais sutil */
  z-index: 1; /* acima do fundo azul e dos shapes */
  pointer-events: none;
}

/* Shapes decorativos adicionais */
body.login-page::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  right: -180px; bottom: -180px;
  background: radial-gradient(circle, rgba(255,175,0,0.25) 0%, rgba(255,175,0,0) 60%);
  filter: blur(10px);
  z-index: 0; /* abaixo da imagem */
}

.login-container {
  position: relative;
  z-index: 2; /* acima da imagem e shapes */
  width: 100%;
  max-width: 420px;
  margin: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.brand {
  text-align: center;
  margin-bottom: 16px;
}

.brand img {
  width: 128px; height: 128px; object-fit: contain; display: block; margin: 0 auto 8px;
}

.brand h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 700;
}

.login-container form input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    height: 44px;
    margin: 8px 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.login-container form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(25, 57, 147, 0.12);
}

.login-container button {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--secondary-color);
    border: none;
    color: #1f2937;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    transition: transform .04s ease, filter .2s ease;
}

.login-container button:hover { filter: brightness(0.95); }
.login-container button:active { transform: translateY(1px); }

/* Grupo de input com ícone */
.input-group {
  position: relative;
}
.input-group { position: relative; }
.input-group .input-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--primary-color);
  opacity: 0.85;
  pointer-events: none; /* evita seleção do ícone ao clicar */
}
.input-group input { padding-left: 56px !important; }

/* Evita que o ícone encoste no texto/label sobreposto */
.login-container label { display: inline-block; margin-bottom: 6px; }

.error {
    color: red;
    font-size: 14px;
}

.site-footer {
  position: fixed;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

