body {
  font-family: 'Arial', sans-serif;
  background: url('../img/logo.webp') no-repeat center center fixed;
  background-size: cover; /* <-- Esta línea soluciona el problema */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}


.login-container {
  background: rgba(255, 255, 255, 0.8); /* Fondo blanco con 80% de opacidad */
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(5px); /* Efecto de desenfoque para el vidrio */
}

.login-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

.btn:hover {
  background-color: #0056b3;
}

.alert {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.register-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Agregar esto al existente */
.register-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
}

.register-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 1.5rem;
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.login-link a {
  color: #007bff;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Mejora para mensajes de validación HTML5 */
input:invalid {
  border-color: #ff4444;
}

input:valid {
  border-color: #00C851;
} 

--- 
.recuperar-contrasena {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.recuperar-contrasena a {
  color: #007bff;
  text-decoration: none;
}

.recuperar-contrasena a:hover {
  text-decoration: underline;
}

/* Para alinear el checkbox con su label */
.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0; /* Ajusta según necesites */
}

.form-group.checkbox label {
  margin: 0;
  cursor: pointer;
}

/* Opcional: mejorar estilo del checkbox */
.form-group.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}