:root {
  --primary-color: #4361ee;
  --secondary-color: #4cc9f0;
  --accent-color: #3f37c9;
  --background: #f0f4ff;
  --input-bg: #f9f9f9;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contenedor-login {
  background: white;
  padding: 2rem;
  padding-top: 2.5rem;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  margin: 1rem;
}

.formulario-login h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.formulario-login input {
  width: 90%;
  padding: 14px 16px;
  margin-bottom: 1.4rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--input-bg);
  font-size: 15px;
  transition: 0.3s ease;
}

.formulario-login input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #eef5ff;
}

.captcha-contenedor {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.captcha-contenedor input {
  flex: 1;
}

.captcha-boton {
  width: 100px;
  height: 45px;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: 0.3s ease;
}

.captcha-boton:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.formulario-login button {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: 0.3s ease;
}

.formulario-login button:hover {
  background-color: var(--accent-color);
}

.btn-registrar {
  background-color: var(--secondary-color);
}

.btn-registrar:hover {
  background-color: #3bbce2;
}

.enlace {
  text-align: center;
  margin-top: 0.8rem;
}

.enlace a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.enlace a:hover {
  text-decoration: underline;
}

/* ✅ Responsive */
@media (max-width: 480px) {
  .contenedor-login {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .formulario-login h2 {
    font-size: 20px;
  }

  .captcha-boton {
    width: 80px;
    font-size: 14px;
  }

  .formulario-login input {
    padding: 12px;
    font-size: 14px;
  }

  .formulario-login button {
    font-size: 15px;
    padding: 12px;
  }
}
