/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #cdd8c5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  background-color: #fff;
  width: 100%;
  max-width: 1000px;
  display: flex;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-direction: row;
}

/* FORMULÁRIO */
.form-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section .logo {
  max-width: 100%;
  width: 400px;
  margin-bottom: 20px;
}

.form-section h2 {
  color: #030303;
  font-weight: 500;
  margin-bottom: 10px;
}

.divider {
  width: 50px;
  border: 2px solid #b04392;
  margin-bottom: 30px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.links {
  margin-bottom: 20px;
}

.portal-link {
  color: #b04392;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  padding: 10px 20px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
}

.acessar {
  background-color: #b04392;
  color: white;
}

.parceiro {
  background-color: #0848f8;
  color: white;
}

/* IMAGEM COMO BACKGROUND DESKTOP*/
.image-section {
  flex: 1;
  min-height: 400px;
  background-image: url("imagem2_D.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* RESPONSIVO PARA TELAS MOBILE */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    height: auto;
  }

  .form-section {
    order: 1;
    padding: 30px 20px;
  }

  .image-section {
    order: 2;
    width: 100%;
    min-height: 350px;
    background-image: url("imagem2_M.jpg");
    flex: none;
  }

  .form-section .logo {
    display: none; /* Esconde a logo padrão no mobile */
  }

  .mobile-logo {
    display: block !important; /* Exibe a logo mobile */
    width: 250px;
    margin: 0 auto 20px;
  }

  body {
    height: auto;
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
  .form-section {
    padding: 20px 15px;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  button {
    width: 100%;
  }
  
  .image-section {
    min-height: 250px;
    background-image: url("imagem2_M.jpg");
  }
  
  .mobile-logo {
    width: 200px;
  }
}