html, body {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Fundo e alinhamento geral */
body {
  background-image: url('/images/migone.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  padding: 12px; /* respiro em telas pequenas */
}

/* Formulário mais compacto e responsivo */
form {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  width: min(100%, 420px);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 12px;
  min-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease-in, transform 0.6s ease-in;
}

form.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Título mais compacto e responsivo */
h2 {
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: clamp(22px, 4vw + 8px, 36px);
  text-transform: uppercase;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.5px;
}

h2 em {
  font-style: normal;
  color: #f5a425;
  font-weight: 900;
}

/* Labels e mensagens */
label {
  display: block;
  text-align: left;
  margin-bottom: 4px;
  font-weight: 700;
  color: #333;
  font-size: 0.95rem;
}

.error {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Ajustes responsivos */
@media (max-width: 992px) {
  form { padding: 18px; border-radius: 14px; }
}

@media (max-width: 768px) {
  form { padding: 16px; border-radius: 12px; width: min(100%, 380px); }
  label { font-size: 0.9rem; }
}

@media (max-width: 576px) {
  body { padding: 8px; }
  form { padding: 14px; width: 100%; }
  h2 { letter-spacing: 0.3px; }
}

/* ===== Login page overrides ===== */
/* Coluna para empurrar o footer para o rodapé e centralizar o formulário */
body.page-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;     /* centraliza horizontalmente */
  justify-content: flex-start; /* evita centralizar tudo verticalmente */
}

/* Centraliza o formulário verticalmente entre topo e footer */
body.page-login form {
  margin-top: auto;
  margin-bottom: auto;
}

/* Garante o footer colado ao rodapé e largura cheia */
body.page-login footer {
  margin-top: auto;
  width: 100%;
}
