/* 1. Reset / defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
}

/* 2. Mensagens */
.msg {
  padding: 10px;
  text-align: center;
  font-weight: bold;
  margin: 20px auto;
  width: 90%;
  max-width: 400px;
  border-radius: 4px;
}
.msg--error {
  background-color: red;
  color: white;
}
.msg--success {
  background-color: green;
  color: white;
}

/* 3. Header / Main head (se precisar) */
.main-head {
  height: 150px;
  background: #FFF;
}

/* 4. Sidebar */
.sidenav {
  height: 100%;
  background-color: #000080; /* seu azul escuro */
  overflow-x: hidden;
  padding-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s ease;
}
.login-main-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-direction: column;
  text-align: center;
  height: 100%;
}
.login-main-text img {
  width: 80%;
  max-width: 200px;
}
.login-main-text pre {
  color: #fff;
  margin-top: 10px;
  font-size: 1rem;
}

/* 5. Conteúdo principal */
.main {
  /* mantém padding e margin-left já existentes */
  padding: 10px;
  margin-left: 0;
  
  /* novas regras para centrar */
  display: flex;
  align-items: center;      /* centra verticalmente */
  justify-content: center;  /* centra horizontalmente */
  min-height: 100vh;        /* garante altura total */
  transition: margin-left 0.3s ease;
}

/* 6. Botão */
.btn-black {
  background-color: #141854 !important; /* mantido */
  color: #fff !important;
  border: none;
}

/* 7. Responsividade geral */
@media screen and (min-width: 768px) {
  .sidenav {
    width: 40%;
    max-width: none;
  }
  .main {
    margin-left: 40%;
  }
}

/* 8. Ajustes para telas pequenas */
@media screen and (max-width: 450px) {
  .login-form,
  .register-form {
    margin-top: 10%;
  }
}

/* 9. Altura reduzida */
@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
}

@media screen and (min-width: 768px) {
  .main {
    margin-left: 40%;      /* já existia */
    min-height: 100vh;     /* mantém a centralização em desktop */
  }
}
