/* Box-sizing global para evitar problemas con padding y ancho */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Evitar scroll horizontal */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: url('../img/logo.webp') no-repeat center center fixed;
  
  /*background: url('../img/fondo_tymgroup.webp') no-repeat center center fixed;*/
  
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Background fijo solo en pantallas grandes */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

.login-container {
  background: rgba(255, 255, 255, 0.8);
  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);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 420px) {
  .login-container {
    padding: 1rem;
    max-width: 95vw;
  }
}

.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: #fff;
  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,
.login-link,
.recuperar-contrasena {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.register-link a,
.login-link a,
.recuperar-contrasena a {
  color: #007bff;
  text-decoration: none;
}

.register-link a:hover,
.login-link a:hover,
.recuperar-contrasena a:hover {
  text-decoration: underline;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}

.form-group.checkbox label {
  margin: 0;
  cursor: pointer;
}

.form-group.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.forgot-link {
  color: #007bff;          /* Azul típico de enlace */
  text-decoration: none;   /* Sin subrayado por defecto */
  font-weight: 550;        /* Un poco más destacado, opcional */
  cursor: pointer;
  font-size: 0.9rem;       /* Tamaño similar al texto normal */
}

.forgot-link:hover,
.forgot-link:focus {
  text-decoration: underline; /* Subrayado al pasar el cursor */
  outline: none;
}

