* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #e86617;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
}

/* Centralização e controle da logomarca */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-img {
  max-width: 180px;
  height: auto;
  display: block;
}

/* Card central branco */
.auth-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
}

.auth-card h2 {
  margin-bottom: 20px;
  color: #1a202c;
  text-align: center;
}

/* Campos do formulário */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #4a5568;
  font-size: 14px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

/* Destaque laranja ao focar no campo */
.form-group input:focus {
  outline: none;
  border-color: #e86617;
}

/* Container do input de senha com ícone */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
}

.toggle-password:hover {
  color: #2d3748;
}

.toggle-password svg,
.toggle-password .eye-open,
.toggle-password .eye-closed {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Botões genéricos e específicos */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease;
  background-color: #e86617;
  color: #ffffff;
}

.btn:hover {
  background-color: #cf550d;
}

.btn-primary {
  background-color: #e86617;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #cf550d;
}

.btn-primary:disabled {
  background-color: #f7a977;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  color: #3182ce;
  border: 1px solid #cbd5e0;
  margin-top: 10px;
}

.btn-secondary:hover {
  background-color: #edf2f7;
}

/* Link alternar (Login / Cadastre-se do index) */
.toggle-link {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #4a5568;
}

.toggle-link a {
  color: #3182ce;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.toggle-link a:hover {
  text-decoration: underline;
}

/* Mensagens de feedback */
.message {
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  display: none;
  text-align: center;
}

.message.error {
  display: block;
  background-color: #fed7d7;
  color: #9b2c2c;
  border: 1px solid #feb2b2;
}

.message.success {
  display: block;
  background-color: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

/* Utilitário para ocultar elementos */
.hidden {
  display: none !important;
}

.forgot-password-link {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 14px;
}

.forgot-password-link a {
  font-size: 13px;
  color: #3182ce;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}

/* ========================================================
   ESTILOS EXCLUSIVOS DO MENU PRINCIPAL (DASHBOARD)
   ======================================================== */
body.menu-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
}

header.menu-header {
  background-color: #ffffff;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  width: 100%;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-menu {
  max-height: 48px;
  width: auto;
  display: block;
}

header.menu-header h1 {
  font-size: 20px;
  color: #1a202c;
  font-weight: 700;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

.btn-logout {
  background-color: #e53e3e;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.btn-logout:hover {
  background-color: #c53030;
}

.menu-container {
  padding: 32px 20px;
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.section-title {
  font-size: 19px;
  color: #ffffff;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 8px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.menu-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: #cf550d;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.menu-card h3 {
  font-size: 16px;
  color: #1a202c;
  margin-bottom: 8px;
  font-weight: bold;
}

.menu-card p {
  font-size: 13px;
  color: #718096;
  line-height: 1.4;
}

.menu-card.card-featured {
  border-top: 4px solid #e86617;
}

.app-version {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #e86617; /* Laranja oficial FotoGeo */
  font-weight: 600; /* Levemente em negrito para melhor legibilidade no fundo branco */
  letter-spacing: 0.5px;
}

/* Versão do sistema no cabeçalho */
.app-version-blue {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #1a73e8; /* Azul padrão */
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.btn:disabled {
  background-color: #f7a977; /* Laranja suave */
  cursor: not-allowed;
}