@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
  padding: 20px; /* Adiciona um respiro em telas muito pequenas */
}

.main-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  min-height: 85vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Lado Esquerdo: Formulário --- */
.login-wrapper {
  flex: 1; /* Ocupa metade do espaço */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.login-content {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.logo-container {
  display: flex;
  align-items: start;
  justify-content: center;
  margin-bottom: 25px;
  gap: 5px; /* Espaçamento entre logo e texto */
}

.logo {
  width: 50px;
}

/* Estilos de texto simplificados */
.logo-container h1, .logo-container h3 {
  font-size: 22px;
  color: #333;
  margin: 0;
}

.logo-container h1 {
  font-weight: 400;
}

.logo-container h3 {
  font-weight: 800;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.input-container {
  text-align: left;
  margin-bottom: 20px;
}

.input-container label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.input-container input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 25px;
}
.remember-forgot > div {
  display: flex;
  align-items: center;
}

.remember-forgot a {
  text-decoration: none;
  color: #007bff;
}

.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background: #0056b3;
}

.register-link {
  font-size: 14px;
  margin-top: 20px;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

/* --- Lado Direito: Slideshow --- */
.side-content {
  flex: 1; /* Ocupa a outra metade */
  position: relative; /* Contexto para posicionamento absoluto dos filhos */
  overflow: hidden; /* ESSENCIAL: Esconde as imagens que saem da tela */
  border-radius: 15px; /* Bordas arredondadas */
}

.imgs-slideshow-container {
  display: flex; /* Alinha as imagens lado a lado */
  width: 300%; /* Largura total = 100% * nº de imagens */
  height: 100%;
  /* A transição é o que cria a animação de slide */
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 1;
}

.imgs-slideshow-container img {
  width: calc(100% / 3); /* Cada imagem ocupa 1/3 do container */
  height: 100%;
  object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
}

.radio-slideshow-container {
  display: none; /* Os inputs radio ficam escondidos */
}

/* Container dos botões de navegação (bolinhas) */
.label-slideshow-container {
  position: absolute; /* Posicionamento sobre a imagem */
  bottom: 30px; /* Distância da base */
  left: 50%;
  transform: translateX(-50%); /* Centraliza horizontalmente */
  display: flex;
  gap: 12px;
  z-index: 10; /* Garante que fiquem acima das imagens */
}

.slideshow-btn {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: all 0.4s;
  cursor: pointer;
}

.slideshow-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Estilo do botão ativo */
.slideshow-btn.active {
  width: 30px; /* Fica mais largo */
  border-radius: 10px;
  background-color: white;
}


/* --- Media Query para Responsividade Celular --- */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column; /* Empilha os containers verticalmente */
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .login-wrapper {
    /* Garante que o padding não seja excessivo em telas pequenas */
    padding: 40px 20px;
  }

  .side-content {
    display: none;
    width: 100%;
    height: 300px; /* Altura fixa para o slideshow no mobile */
    border-radius: 0;
  }
}