/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: url('../img/fondo.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Container */
.container {
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Image Section */
.image-section {
  flex: 1 1 40%;
  background-color: #e0f7fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-section .logo {
  width: 60px; /* Reducido de 80px */
  margin-bottom: 15px;
}

.image-section .illustration {
  width: 100%;
  max-width: 220px; /* Ligero ajuste */
}

/* Form Section */
.form-section {
  flex: 1 1 60%;
  padding: 30px 40px; /* un poco más espacio lateral */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Botones toggle de cambio */
.toggle-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  gap: 10px;
}

.toggle-buttons button {
  background-color: #00b386; /* verde principal */
  color: white;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  flex: 1;
  max-width: 140px;
}

.toggle-buttons button.active,
.toggle-buttons button:hover {
  background-color: #007957; /* verde oscuro */
}

/* Contenedor formulario */
.form-container form {
  display: flex;
  flex-direction: column;
}

/* Logo dentro del formulario (pequeño y centrado) */
.logovai {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.logovai img {
  width: 50px; /* más pequeño que en la imagen principal */
  height: auto;
}

/* Agrupar label + input para mejor orden */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #004d40;
  font-size: 0.9rem;
}

.form-group input {
  padding: 10px 12px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #00b386;
  outline: none;
}

/* Captcha */
.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.captcha span {
  background-color: #007957;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  user-select: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  min-width: 80px;
}

/* Botones enviar */
.form-container button[type="submit"] {
  background-color: #00b386;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.form-container button[type="submit"]:hover {
  background-color: #007957;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .image-section, 
  .form-section {
    flex: 1 1 100%;
  }

  .image-section {
    padding: 15px;
  }

  .form-section {
    padding: 25px 20px;
  }

  .toggle-buttons {
    flex-direction: column;
  }

  .toggle-buttons button {
    max-width: 100%;
    margin-bottom: 10px;
  }
}
