* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}
body {
  background: linear-gradient(135deg, #a8e063, #56ab2f);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor principal en 2 columnas */
.container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* ----------------- LEFT (formulario) ----------------- */
.left {
  flex: 1;
  position: relative; /* imprescindible para contener pseudo-elements */
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-right: 1px solid rgba(255,255,255,0.06);
}

/* Panel con glassmorphism */
.login-container {
  width: 350px;
  padding: 40px;
  border-radius: 20px;

  background: rgba(255,255,255,0.12);     
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);

  color: white;
  position: relative;
  z-index: 3; /* sobre las botellas */
  text-align: center;
}

.login-container img { width: 80px; margin-bottom: 15px; }
.login-container h2 { margin-bottom: 20px; color: #fff; }

/* Inputs */
.input-box { margin-bottom: 15px; text-align: left; }
.input-box label { font-size: 14px; color: #eee; }
.input-box input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: 0.3s;
}
.input-box input::placeholder { color: rgba(255,255,255,0.7); }
.input-box input:focus {
  border-color: #a5d6a7;
  box-shadow: 0 0 8px rgba(165,214,167,0.4);
}

/* Botón */
.btn {
  background: linear-gradient(135deg, #56ab2f, #a8e063);
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: scale(1.03); }
.btn::after {
  content: "♻️";
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.35s;
}
.btn:hover::after { right: 12px; }

/* Extras */
.extra { margin-top: 15px; font-size: 14px; color: #ddd; }
.extra a { color: #fff; text-decoration: none; }
.extra a:hover { text-decoration: underline; }

/* Password wrapper */
.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 40px; }
.toggle-password {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: #fff; font-size: 18px;
}

/* ----------------- RIGHT (imagen) ----------------- */
.right {
  flex: 1;
  position: relative;
  background: url("../images/punto-ecologico.jpg") no-repeat center center;
  background-size: cover;
}
.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18); /* overlay sutil */
  pointer-events: none;
  z-index: 0;
}

/* ----------------- Botellas animadas (izquierda) ----------------- */
.left::before,
.left::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('https://cdn-icons-png.flaticon.com/128/824/824239.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1; /* detrás del panel */
  animation: floatUp linear infinite;
}

/* posiciones/velocidades distintas */
.left::before {
  left: 20%;
  animation-duration: 15s;
  animation-delay: 0s;
}
.left::after {
  left: 60%;
  animation-duration: 18s;
  animation-delay: 5s;
}

/* animación: suben de abajo a arriba */
@keyframes floatUp {
  0%   { top: 110%; transform: rotate(0deg); }
  100% { top: -20%; transform: rotate(360deg); }
}

/* ----------------- Responsive ----------------- */
@media (max-width: 768px) {
  .container { flex-direction: column; }
  .left, .right { width: 100%; height: 50vh; }
  .right { display: none; } /* ocultar imagen en móvil */
  .login-container { width: 90%; max-width: 420px; }
}
