html {
    overscroll-behavior-y: none; 
}

/* Fondo */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #2596be;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Contenedor principal */
  .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  
  /* Caja de login */
  .login-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 500px;
  }
  
  /* Logo */
  .logo img {
    width: 200px; /* Ajusta el tamaño del logo */
    height: auto;
    margin-bottom: 20px; /* Espaciado entre el logo y el título */
  }
  
  /* Título */
  .login-box h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
  }
  
  /* Grupo de formularios */
  .form-group {
    margin-bottom: 15px;
    text-align: left;
  }
  
  /* Etiquetas */
  label {
    font-size: 14px;
    color: #555;
  }
  
  /* Iconos */
  label i {
    margin-right: 8px;
    color: #f59e0b;
  }
  
  /* Campos de entrada */
  input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  /* Estilo al enfocar */
  input[type="text"]:focus, input[type="password"]:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 5px rgba(106, 17, 203, 0.5);
  }
  
  /* Botón de login */
  .btn-login {
    background: #f59e0b;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
  }
  
  /* Efecto hover */
  .btn-login:hover {
    background: #c56e00;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .login-box {
      padding: 20px;
    }
    .btn-login {
      font-size: 14px;
      padding: 8px 12px;
    }
  }

  /* Estilos para mensajes flash */
.flash-messages {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}

.alert {
  padding: 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
  