/* -------------------------------------- base ----------------------------------------*/
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  overflow-x: hidden;
  padding: 1rem;
}

label {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: #333;
}

input, button {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form {
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #f9f9f9;

  display: flex;
  justify-content: center;
}

legend {
  padding: 0 0.5rem;
  font-weight: bold;
  color: #333;
  font-size: 1.1rem;
}

/* ---------------------------- btn ----------------------------------------*/

.btn {
  padding: 6px 16px;
  min-width: 100px;
  height: 36px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #0056b3;
}

/* botão alinhado verticalmente ao meio */
.btndiv {
  display: flex;
  align-items: center;
  margin-top: -15px;
}

/* ----------------------------------- -------------------------------------------*/

/* div que agrupa os inputs + botão */
.formolario {
  display: flex;
  align-items: center; /* alinha verticalmente */
  gap: 1rem;           /* espaço entre elementos */
}

/* inputs e labels em coluna */
.user, .password {
  display: flex;
  flex-direction: column;
}

/*.caixa_login {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}*/

@media (max-width: 480px) {
    .formolario {
        flex-direction: column; /* empilha um em cima do outro */
        align-items: stretch;   /* inputs ocupam toda a largura */
    }

    .formolario input {
        width: 100%; /* inputs expandem */
    }

    .btndiv {
        align-self: center; /* botão fica centrado */
    }
}
