html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  position: relative;
  font-size: calc(0.7vw + 0.5vh); /* Ajusta a base proporcionalmente */
}

img.fundo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.form-container {
  position: absolute;
  top: 50%;
  right: 12vw;
  transform: translateY(-50%);
  width: 22vw;
  min-width: 380px;  /* garante mínimo */
  max-width: 450px;  /* garante máximo */
}

form {
  width: 100%;
  background-color: white;
  padding: clamp(20px, 3vw, 50px);
  border-radius: 1vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-formulario {
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 40px);
}

.logo-Pauta {
  text-align: center;
}

form label {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.3vw;
  color: black;
  font-weight: bold;
  display: block;
}

.logo-formulario img {
  height: clamp(60px, 5vw, 80px);
  width: auto;
}

.logo-Pauta img {
  height: clamp(30px, 3vw, 60px);
  width: auto;
}

input[type="text"],
input[type="password"],
form input[type="email"] {
  width: 100%;
  padding: clamp(12px, 1.2vw, 20px) clamp(18px, 2vw, 30px);
  font-size: clamp(14px, 1rem, 18px);
  border-radius: 0.7vw;
  border: 0.25vw solid #3e0066;
  box-sizing: border-box;
  text-align: left;
  margin-bottom: 1.5vw;
}

form button {
  width: 100%; /* botão ocupa toda a largura */
  padding: clamp(12px, 1.5vw, 20px);
  font-size: clamp(14px, 1.1rem, 18px);
  border-radius: 0.7vw;
  border: none;
  background-color: #265DA6;
  color: white;
  cursor: pointer;
  margin: 2vw 0;
}

form button:hover {
  background-color: #1d3e81;
}

.flash-messages {
    margin-bottom: 15px;
    text-align: center;
}

.flash-messages .error {
    color: #e74c3c;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

.flash-messages .success {
    color: #fff;
    background: #2ecc71;
    padding: 10px;
    border-radius: 5px;
}
