body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f2f2f4;
}

#container_principal {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-login {
  display: flex;
  flex-direction: column; /* mobile first: coluna */
  width: 90%;
  max-width: 700px;
  background-color: #ffffff;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3),
    -3px -3px 5px rgba(255, 246, 246, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

/* Lado esquerdo (logomarca) */
.left-side {
  background: linear-gradient(135deg, #002c4e, #005faa 95%);
  padding: 40px 20px;
  text-align: center;
}

.left-side img {
  width: 70%;
  margin-top: 20px;
  max-width: 300px;
  margin-bottom: 20px;
}

.left-side h1 {
  font-size: 24px;
  color: white;
  margin: 0;
}

/* Lado direito (formulário) */
.right-side {
  padding: 30px 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form h1 {
  text-align: center;
  margin-bottom: 20px;
}

input {
  padding: 12px;
  border-radius: 20px;
  border: none;
  background-color: #f2f2f4;
  width: 100%;
}

button {
  padding: 12px;
  border-radius: 20px;
  border: none;
  background-color: #005faa;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #00437b;
}

.error-message {
  background-color: #ff4d4d;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
}

/* 🖥 Versão desktop: com layout lado a lado */
@media (min-width: 768px) {
  .container-login {
    flex-direction: row;
    width: 60vw;
    height: 80vh;
  }

  .left-side,
  .right-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .left-side h1 {
    font-size: 32px;
  }

  .right-side {
    padding: 0 40px;
  }
}
