/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Tahoma", Geneva, Verdana, sans-serif;
}

/* BODY */
body {
  background: #000; /* preto */
  color: #fff; /* texto branco */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

/* LOGIN E FORMULÁRIO - Container base */
.login,
.formulario {
  background: #fff; /* fundo branco */
  border: 2px solid #c0392b; /* borda vermelho escuro */
  padding: 30px 25px;
  width: 100%;
  max-width: 400px;
  box-shadow: 2px 2px 0 #c0392b, 4px 4px 0 #c0392b; /* sombra dupla vermelho para relevo */
  user-select: none;
}

/* TÍTULOS */
.login h2,
.formulario label {
  font-weight: normal;
  margin-bottom: 12px;
  color: #c0392b; /* vermelho escuro */
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  user-select: text;
  text-align: center;
  text-shadow: 1px 1px 0 #fff; /* sombra branca para dar relevo */
}

/* LABELS DO FORMULÁRIO */
.formulario label {
  text-align: left;
  display: block;
  margin-top: 18px;
  font-size: 1rem;
}

/* INPUTS */
.login input,
.formulario input[type="text"],
.formulario input[type="number"],
.formulario input[readonly] {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #c0392b;
  background-color: #fff;
  color: #000;
  font-size: 1rem;
  box-shadow: inset 1px 1px 0 #ccc, inset -1px -1px 0 #fff;
  border-radius: 0;
  transition: none;
  user-select: text;
}

.login input::placeholder,
.formulario input::placeholder {
  color: #666;
  font-style: normal;
}

.login input:focus,
.formulario input:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 6px #c0392b;
  background-color: #fceae9;
  color: #000;
}

/* BOTÕES */
.login button,
.formulario button {
  width: 100%;
  padding: 10px 0;
  margin-top: 25px;
  border: 2px solid #c0392b;
  background-color: #fceae9;
  color: #c0392b;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 #c0392b;
  user-select: none;
  border-radius: 0;
  transition: none;
}

.login button:hover,
.formulario button:focus {
  background-color: #c0392b;
  color: #fff;
  border-color: #8e2621;
  box-shadow: 1px 1px 0 #670000 inset;
}

/* MENSAGEM DE ERRO LOGIN */
#loginMsg {
  margin-top: 15px;
  text-align: center;
  color: #ff4c4c;
  font-weight: bold;
  font-size: 1rem;
  user-select: none;
}

/* CONTAINER DE VOLUMES */
#volumesContainer {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

/* CADA VOLUME */
.volume {
  flex: 1 1 45%;
  min-width: 140px;
}

.volume label {
  color: #c0392b;
  font-weight: normal;
  margin-bottom: 4px;
  display: block;
  user-select: text;
}

.volume input {
  width: 100%;
  padding: 7px 10px;
  font-size: 1rem;
  border: 2px solid #c0392b;
  background-color: #fff;
  color: #000;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 #ccc, inset -1px -1px 0 #fff;
  transition: none;
}

.volume input:focus {
  outline: none;
  border-color: #8e2621;
  box-shadow: 0 0 6px #8e2621;
  background-color: #fceae9;
  color: #000;
}

/* RESPONSIVIDADE */
@media (max-width: 460px) {
  .volume {
    flex: 1 1 100%;
  }

  .login,
  .formulario {
    max-width: 100%;
    padding: 25px 15px;
  }

  .login h2,
  .formulario label {
    font-size: 1.4rem;
  }
}
